// ==UserScript== // @name AucFox搜索影视插件 - 支持腾讯视频、爱奇艺、芒果、优酷、搜狐影视快捷搜索到AucFox影视 // @namespace http://tampermonkey.net/ // @version 12.26 // @description AucFox影视搜索是一个轻量型的搜剧引擎。安装脚本后在播放页右下角可以看到AucFox影视搜索框,可以跳转到AucFox影视搜索看剧 // @author AucFox搜索 // @match *://v.qq.com/* // @match *://*.iqiyi.com/* // @match *://*.mgtv.com/* // @match *://*.youku.com/* // @match *://*.le.com/* // @match *://*.bilibili.com/* // @match *://tv.sohu.com/* // @icon https://www.aucfox.fun/mxtheme/images/favicon.png // @require http://code.jquery.com/jquery-2.1.1.min.js // @grant none // @license AGPL License // @downloadURL none // ==/UserScript== (function() { 'use strict'; var url = `https://www.aucfox.fun` var html = `
AUC搜索
` var llqurl = window.location.href //爱奇艺 if(llqurl.indexOf(`iqiyi.com`) !== -1){ var timeFun = setTimeout(function () { $("meta").each(function(){ let title = $(this).attr("name") if(title == "irAlbumName"){ title = $(this).attr("content") $("#inputs").val(title) } }) clearTimeout(timeFun) }, 5000); $(".iqp-player-videolayer-inner").prepend(html) } //腾讯视频 if(llqurl.indexOf(`v.qq.com`) !== -1){ $("#player").prepend(html) let title = $(".playlist-intro__title").text() $("#inputs").val(title) } //芒果 if(llqurl.indexOf(`mgtv.com`) !== -1){ $("container").prepend(html) let title = $("div.m-aside-header.m-aside-header-ie > h2 > div").text() $("#inputs").val(title) } //优酷 if(llqurl.indexOf(`youku.com`) !== -1){ $(".play-paction-wrap").prepend(html) let title = $("#module_basic_dayu_sub > div > div.thesis-wrap > a").text() $("#inputs").val(title) } //乐视 if(llqurl.indexOf(`le.com`) !== -1){ $("#video").prepend(html) let title = $("div.juji_bar.j_jujiName").text() $("#inputs").val(title) } //哔哩哔哩 if(llqurl.indexOf(`bilibili.com`) !== -1){ $("#bilibili-player").prepend(html) let title = $("#viewbox_report > h1").text() $("#inputs").val(title) } //搜狐 if(llqurl.indexOf(`sohu.com`) !== -1){ $(".x-player").prepend(html) let timeFun = setTimeout(function () { $("meta").each(function(){ let title = $(this).attr("name") if(title == "album"){ title = $(this).attr("content") $("#inputs").val(title) } }) clearTimeout(timeFun) }, 5000); } $("#myc").click(function(){ let tit = $("#inputs").val() window.open(`${url}/vodsearch/-------------.html?wd=${tit}`); }) })();