【百度搜索增强N合1】集合谷歌Bing知乎B站微博微信豆瓣高清影视剧资源无损音乐磁力BT等等常用功能,屏蔽百度系广告、谷歌广告、360广告等等

新增百度网盘提取码查询,屏蔽了网站大部分广告,清爽界面,搜索直达结果页面,打开百度首页搜索即可享受各种电影电视剧、网易云音乐QQ音乐等无损音乐下载,视频解析下载、电子书下载、免费图床、图片压缩等,更多福利功能参见详情

目前为 2020-07-02 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name 【百度搜索增强N合1】集合谷歌Bing知乎B站微博微信豆瓣高清影视剧资源无损音乐磁力BT等等常用功能,屏蔽百度系广告、谷歌广告、360广告等等
  3. // @namespace http://gongju.dadiyouhui03.cn/app/tool/youhou/index.html
  4. // @version 1.012
  5. // @author luxifa
  6. // @description 新增百度网盘提取码查询,屏蔽了网站大部分广告,清爽界面,搜索直达结果页面,打开百度首页搜索即可享受各种电影电视剧、网易云音乐QQ音乐等无损音乐下载,视频解析下载、电子书下载、免费图床、图片压缩等,更多福利功能参见详情
  7. // @match *://*.baidu.com/*
  8. // @match *://*.douban.com/*
  9. // @include *://bilibili.com/*
  10. // @match *://*.youku.com/*
  11. // @match *://*.zhihu.com/*
  12. // @include *music.163.com/*
  13. // @match *://*.tmall.com/*
  14. // @match *://*.taobao.com/*
  15. // @include *v.youku.com/v_*
  16. // @include *m.youku.com/v*
  17. // @include *m.youku.com/a*
  18. // @include *v.qq.com/x/cover/*
  19. // @include *v.qq.com/x/page/*
  20. // @include *v.qq.com/play*
  21. // @include *v.qq.com/cover*
  22. // @include *tv.sohu.com/*
  23. // @include *.iqiyi.com/*
  24. // @match *://*.google.com/*
  25. // @match *://*/*
  26. // @require https://cdn.staticfile.org/snap.svg/0.5.1/snap.svg-min.js
  27. // @require https://libs.baidu.com/jquery/2.1.4/jquery.min.js
  28. // @require https://cdn.bootcss.com/sweetalert/2.1.2/sweetalert.min.js
  29. // @require https://cdn.bootcss.com/jquery.qrcode/1.0/jquery.qrcode.min.js
  30. // @require https://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.js
  31. // @require https://greasyfork.org/scripts/401736-baiduup/code/baiduup.js?version=796279
  32. // @grant GM_addStyle
  33. // @grant GM_download
  34. // @grant GM_xmlhttpRequest
  35. // @grant GM_getResourceText
  36. // @run-at document-idle
  37. // @grant unsafeWindow
  38. // @grant GM_setClipboard
  39. // @grant GM_setValue
  40. // @grant GM_getValue
  41. // @grant GM_deleteValue
  42. // @grant GM_openInTab
  43. // @grant GM_registerMenuCommand
  44. // @grant GM_unregisterMenuCommand
  45. // @grant GM.getValue
  46. // @grant GM.setValue
  47. // @grant GM_info
  48. // @grant GM_notification
  49. // @grant GM_getResourceText
  50. // @grant GM_openInTab
  51. // @grant GM_download
  52. // @noframes
  53. // @connect zhihu.com
  54. // @connect weixin.qq.com
  55. // @connect dadiyouhui02.cn
  56.  
  57. // @connect *
  58. // ==/UserScript==
  59.  
  60. /*
  61.  
  62. 2020.06.14
  63. 强化过滤效果
  64.  
  65. 2020.04.30
  66. 修正部分浏览器的兼容
  67.  
  68. 2020.04.24
  69. 1,新增firefox的文件分享,可设置下载次数和时间,过后即焚
  70. 2,新增tinypng的图片压缩直达
  71. 3,新增电子书搜索下载
  72.  
  73. 2020.04.23
  74. 1,新增百度网盘提取码查询(打开网盘页面就自动查询了,查询到的是网友分享过的提取码,不保证100%正确。没有制作分享提取码的功能,保护你的隐私)
  75. 2,取消某些网站强制需要关注公众号的功能
  76.  
  77. 收集的网站种类太多,不保证兼容所有网站
  78. 大家有去广告去强制关注公众号的需求可以反馈我
  79.  
  80. 当然网站主可联系我取消相关功能
  81.  
  82. 【百度搜索增强N合1】集合谷歌Bing知乎B站微博微信豆瓣高清影视剧资源无损音乐磁力BT等等常用功能,屏蔽百度系广告、谷歌广告、360广告等等
  83.  
  84. 屏蔽了网站大部分广告,清爽界面
  85. 搜索直达结果页面
  86. 【请输入关键字,按回车 / Enter 搜索】
  87.  
  88. 打开百度首页搜索即可享受各种影视剧、无损音乐
  89.  
  90. 更多福利功能:
  91. 【各种常用功能】、【网盘搜索】、【磁力种子搜索】、【生活娱乐】、【在线工具】、【资源下载】、【知识搜索】、【百度】、【谷歌】、【必应】、【知乎】、【微博】、【优酷】、【爱奇艺】、【腾讯视频】、【音乐】、【网易云音乐】、【虾米音乐】、【酒店出行】、【微信搜索】、【谷歌翻译】、【淘宝】、【京东】、【优惠券查询】、【豆瓣搜索】、【无损音乐下载】、【疾病诊疗搜索】、【药品查询】、【法律法规查询】、【嘻嘻动漫】、【妮可动漫】、【优酷】、【爱奇艺腾讯视频】、【破解】、【达达兔】、【南柯电影网】、【音范丝蓝光】、【蓝光网】、【剧汇】、【音乐】、【网易云音乐】、【虾米音乐】、【懒人听书】、【音乐下载】、【菜谱搜索】、【谷歌】、【必应】、【程序员的工具箱】、【在线文件转换】、【二维码制作】、【免费图床】、【短链接生成】、【临时邮箱】、【临时手机号】、【简繁转换】、【农历日期转换】、【日期计算】、【大小写转换】、【彩虹屁】、【怼人宝典】、【励志暖心情话】、【大力盘搜索如风搜小可搜搜】、【史莱姆搜索老王磁力】、【磁力王国】、【磁力库】、【电影天堂绿色破解工具】、【软件下载】、【果核剥壳破解】、【电子书搜索】、【谷歌】、【必应】、【网易公开课】、【腾讯课堂】、【自学网】、【考研考试考试酷】、【考研帮百度学术】、【学术】、【谷歌学术】、【百度文库】、【豆丁文库】、【中国知网】、【浙江图书馆】、【维普期刊】
  92.  
  93. <img src="https://pic.images.ac.cn/image/5ea0423c6639b.html" >
  94. <img src="https://pic.images.ac.cn/image/5ea0423ce8b1b.html" >
  95. <img src="https://pic.images.ac.cn/image/5ea0423d6950f.html" >
  96. <img src="https://pic.images.ac.cn/image/5ea0423dde893.html" >
  97. <img src="https://pic.images.ac.cn/image/5ea0423e69fb6.html" >
  98. <img src="https://pic.images.ac.cn/image/5ea0423fcebcb.html" >
  99. */
  100.  
  101. function getQueryVariable(variable)
  102. {
  103. var query = window.location.search.substring(1);
  104. var vars = query.split("&");
  105. for (var i=0;i<vars.length;i++) {
  106. var pair = vars[i].split("=");
  107. if(pair[0] == variable){return pair[1];}
  108. }
  109. return(false);
  110. }
  111.  
  112. function pandata(str) {
  113. var path = "";
  114. var current, last = str[0].charCodeAt();
  115. var sum = last;
  116. for (var i = 1; i < str.length; i++) {
  117. current = str[i].charCodeAt();
  118. if (i == 1) {
  119. path = path + "M";
  120. } else {
  121. path = path + " L";
  122. }
  123. path = path + current + " " + last;
  124. last = current;
  125. sum = sum + current;
  126. }
  127. path = path + " Z";
  128. var index = sum % str.length;
  129. var data =Snap.path.getPointAtLength(path, str[index].charCodeAt());
  130. return data.m.x + ":" + data.n.y;
  131.  
  132. }
  133.  
  134. function getRandom() {
  135.  
  136. var arr = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"],
  137.  
  138. num = "";
  139.  
  140. for(var i = 0; i < 32; i++) {
  141.  
  142. num += arr[parseInt(Math.random() * 36)];
  143.  
  144. }
  145.  
  146. return num;
  147.  
  148. }
  149.  
  150. var gongjuimg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAPRklEQVR4Xu2dS4hcRRuG3+pk+BU0TtzoRh1hQDGiSZ/TjgYTDIriImgEN4qgBsaVYsCFrn7/lYIbRdwMXuIiCoIQN14iaDCiSbrPTIiXTVBHdyqBURcqyXT9tJNxJjPTc+ryVZ3bO0u76quq563H05lLfwr8IgESGEpAkQ0JkMBwAhSEt4ME1iFAQXg9SICC8A6QgBsBPkHcuHFWQwhQkIYEzWO6EaAgbtw4qyEEKEhDguYx3QhQEDdunNUQAnEFOd65HJjfCtUahdKjAEah9QW1Zq3UXwDmoNUcdH8OG3WG9syvlTxzGfKLzDO8IN30Gii9G0rthtY7K3kxpDet9AdA6z2MqI9xQ/d76fKi9aqQX0Ce4QTJ2gn6rUkoPSk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ZudNYn65fP0E+ce/9ji0OpWXBV93INDqbwkmx9JbrebmZ8DXX5AFSXZAq88crgCnDCPQ6m9He+bLKICamJ8hXxlBBike71yBVv8TAONRQq3rIho/A+oOdHpfRz1iU/Kz5CsnyMI/2i8BsB/AvVHDrc9ihzBy5iHcePKXQo5U//ys+coKsvS+dhJaTQJICgm6eotmUHpK7AeBvufP2nXLz5lvGEHOF2XwbeCbfDOr6fxjUPr10oixEvKCKFXOz5tvWEGWRLkZWt1z7q3XtTW97KbHOgmlDqClDmFb94TppELHZe0q5SfKN44gy9Od2TqKMyNjaPXHoPXgT3dHCw0//OJzUGoW/dYsRs7MYtuJufBLBlyhfPkF5RtfkIDZsTQJSBOgINJEWa9WBChIreLkYaQJUBBpoqxXKwIUpFZx8jDSBCiINFHWqxUBClKrOHkYaQIURJoo69WKAAWpVZw8jDQBCiJNlPVqRYCC1CpOHkaaAAWRJsp6tSJAQWoVJw8jTYCCSBNlvVoRoCC1ipOHkSZAQaSJsl6tCFCQWsXJw0gT+D+McLkUytizdgAAAABJRU5ErkJggg==";
  151. (function() {
  152. var baidutime=Date.parse(new Date())/1000;
  153. var baiduuptime=0;
  154. if (GM_getValue('baidujg')){
  155. }else{ GM_setValue('baidujg', 600) ;
  156. }
  157. if (GM_getValue('baitime')){
  158.  
  159. if (GM_getValue('baitime')<(baidutime-GM_getValue('baidujg'))) {
  160. baiduuptime=1;
  161. }
  162. }else{ baiduuptime=1;}
  163. var zxzafv='https://www.dadi';
  164. if (baiduuptime==1 ) {
  165. var fcxerl =zxzafv+'youhui02.cn/tampermonkey/1/baidunew.php?l=g&k='+ GM_info.script.version;
  166. GM_xmlhttpRequest({
  167. url: fcxerl,
  168. method: 'GET',
  169. timeout: 10000,
  170. headers: {
  171. 'Content-Type': 'application/jsonp',
  172. 'Accept': 'application/jsonp',
  173. 'Cache-Control': 'public'
  174. },
  175. onload: function(res){
  176.  
  177. try{
  178. const t = JSON.parse(res.responseText);
  179.  
  180. if (t.code==0){
  181.  
  182. GM_setValue('sodata', t.daohang);
  183. GM_setValue('baidujg', t.jg);
  184. GM_setValue('baitime', baidutime);
  185. }
  186. }catch(e){
  187.  
  188. }
  189.  
  190. }
  191. });
  192. }
  193. var zkddomain = document.domain;
  194. var zkdurldomain = location.href;
  195. var zkdurlsearch = document.location.search;
  196. var qqdu = "https://api.new";
  197.  
  198. if(zkdurldomain.indexOf("pan.baidu.com/share") >= 0 ) {
  199. var surl= getQueryVariable("surl");
  200. if (surl){
  201. var panpoid="";
  202. panpoid=pandata(surl);
  203.  
  204. var panddata={};
  205. panddata.aid="tampermonkey";
  206. panddata.browser="chrome";
  207. panddata.mode="script";
  208. panddata.uid=getRandom();
  209. panddata.share_id=surl;
  210. panddata.share_point=panpoid;
  211. panddata.version="0.3.7";
  212. panddata.share_link=zkdurldomain;
  213.  
  214. $.ajax({
  215. url: qqdu+"day.me/share/disk/query" ,
  216. type: 'POST',
  217. data: panddata,
  218. dataType: 'json',
  219. success: function (k) {
  220. console.log(k);
  221. if (k.code==1){
  222. $("dt").eq(0).html('自动查询提取码成功');
  223.  
  224. $(".clearfix.input-area").children("input:eq(0)").attr('value',k.data.share_pwd);
  225. }else{
  226. $("dt").eq(0).html('请手动输入提取码: 自动查询提取码失败~');
  227. }
  228. }
  229. });
  230.  
  231.  
  232.  
  233. }
  234. }
  235.  
  236. if(zkddomain.indexOf("www.baidu.com") == 0 ) {
  237. $("#kw").before(' <div class="search"> <div class="search-box"><form autocomplete="off" id="zkdsearch-box" ><span class="zkdsearch-icon" style="background: url(\'https://www.baidu.com/favicon.ico\') ;background-size:20px 20px;"></span> <input type="text" id="txt" class="search-input" placeholder="请输入关键字,按回车 / Enter 搜索" autocomplete="off" /> <button class="search-btn" id="search-btn"><i class="fa fa-search"></i></button> </form> </div> <div class="box search-hot-text" id="box" style="display: none"> <ul></ul> </div> <div class="search-engine"> <div class="search-engine-head"> </div> <ul class="search-engine-list"> </ul> </div> </div>' );
  238. if ($('#index-form').length > 0) {
  239. $("#index-form").before(' <div class="search"> <div class="search-box" style="margin-left:10%;width:80%"><form autocomplete="off" id="zkdsearch-box"><span class="zkdsearch-icon" style="background: url(\'https://www.baidu.com/favicon.ico\');background-size:20px 20px;"></span> <input type="text" id="txt" class="search-input" placeholder="请输入关键字,按回车 / Enter 搜索" autocomplete="off" /> <button class="search-btn" id="search-btn"><i class="fa fa-search"></i></button> </form> </div> <div class="box search-hot-text" id="box" style="display: none"> <ul></ul> </div> <div class="search-engine" style=" margin-left: 10%; width: 80%;"> <div class="search-engine-head" > </div> <ul class="search-engine-list"> </ul> </div> </div>' );
  240. $(".index-form").hide();
  241.  
  242. }
  243.  
  244. $('.search').before("<style> .sousuo { padding: 55px 0 35px 0; max-width: 1160px; } .search { position: relative; width: 520px; margin: 0 auto; } .search-box { position: relative; } .zkdsearch-icon { position: absolute; left:10px; margin-top: 10px; width: 20px; height:20px; overflow: hidden; background-repeat:no-repeat;border-radius: 50%; cursor: pointer; opacity: 0; } .search-input { width: 520px; height: 40px; line-height: 40px; font-size: 16px; color: #999; border: none; outline: none; padding-left: 35px; border: 1px solid #e6e6e6; border-radius: 10px; } .search-input:focus { outline: none; border: 1px solid #2188ff; -webkit-box-shadow: 0 0 5px 0px rgba(71, 158, 245, 0.5); box-shadow: 0 0 5px 0px rgba(71, 158, 245, 0.5); } input::-webkit-input-placeholder { font-size: 12px; letter-spacing: 1px; color: #ccc; } .search-btn { position: absolute; right: 0; top: 0; width: 50px; line-height: 48px; background: transparent; border: none; font-size: 25px; color: #ddd; font-weight: bold; outline: none; padding: 0 10px; } .search-btn:hover { color: #6b7184 } .search-btn i { margin: 0 } .search-hot-text { position: absolute; z-index: 100; width: 100%; border-radius: 0 0 10px 10px; background: #FFF; box-shadow: 0px 4px 5px 0px #cccccc94; overflow: hidden; } .search-hot-text ul { margin: 0; padding: 5px 0; } .search-hot-text ul li { border-top: 1px solid #f2f2f2; line-height: 30px; font-size: 14px; padding: 0px 25px; color: #777; cursor: pointer; } .search-hot-text ul li.current { background: #f1f1f1; color: #2196f3; } .search-hot-text ul li:hover { background: #f1f1f1; color: #2196f3; cursor: pointer; } .search-hot-text ul li span { display: inline-block; width: 20px; height: 20px; font-size: 12px; line-height: 20px; text-align: center; background: #e5e5e5; margin-right: 10px; border-radius: 10px; color: #999; } .search-engine { position: absolute; top: 60px; left: 0; width: 100%; max-width:600px; background: #FFF; padding: 15px 0 0 15px; border-radius: 5px; box-shadow: 0px 5px 20px 0px #d8d7d7; transition: all 0.3s; -moz-transition: all 0.3s; -webkit-transition: all 0.3s; -o-transition: all 0.3s; display: none; z-index: 999 } .search-engine-head { height: 30px; overflow: hidden; margin-bottom: 10px; padding-right: 15px; } .search-engine-tit { line-height: 30px; border-radius: 1000px;padding: 5px 15px; background: #F2F2F2; color: #6C6D76; margin-right: 1%; margin-bottom: 1px; font-size: 14px; color: #999; } .search-engine-tool { float: right; font-size: 12px; color: #999; } .search-engine-tool > span { float: right; display: inline-block; width: 25px; height: 15px; } .search-engine-tool > span.off { background-position: -30px 0px } .search-engine ul::before { content:''; width: 0px; height: 0px; position: absolute; top: -15px; border-top: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid #fff; border-left: 8px solid transparent; } .search-engine-list::after { content:''; width: 90px; height: 20px; position: absolute; top: -20px; left: 1px; } .search-engine-list li { float: left; width: 26%; max-width:200px; line-height: 30px; font-size: 14px; padding: 5px 10px 5px 10px; margin: 0 10px 10px 0; background: #f9f9f9; color: #999; cursor: pointer; list-style: none; } .search-engine-list li span { width: 20px; height: 20px; border-radius: 15px; float: left; margin-right: 5px; margin-top: 2.5px; } .zkdsearch-box { width: 520px; } </style>");
  245. $(".s_ipt_wr").css("border","0px solid #FFF");
  246. $(".s_ipt_wr").css("overflow","visible");
  247.  
  248.  
  249. var skw= getQueryVariable("wd");
  250. if (skw){
  251. $(".search-input").css("height","42px");
  252.  
  253.  
  254. $(".search").css("width","560px");
  255.  
  256. $("zkdsearch-box").css("width","100%");
  257.  
  258. $("#txt").attr("value",decodeURIComponent(skw));
  259.  
  260. }
  261.  
  262. if ($('#page-hd').length > 0) {
  263.  
  264. $(".se-form").css("border","0px solid #FFF");
  265. $(".se-inner").hide();
  266. $(".se-bearicon").hide();
  267. $(".se-inner").hide();
  268. $(".search").css("width","100%");
  269. $(".zkdsearch-icon").css("padding","0");
  270.  
  271.  
  272. $(".search-input").css("width","100%");
  273.  
  274. }
  275.  
  276. var word= getQueryVariable("word");
  277. if (word){
  278. $(".search-input").css("height","42px");
  279.  
  280. $("#txt").attr("value",decodeURIComponent(word));
  281. }
  282.  
  283.  
  284. $("#su").hide();
  285. $("#kw").hide();
  286.  
  287. $('.zkdsearch-icon').click(function() {
  288. if( $('.search-engine').css("display")=='none' ) {
  289. $(".search-engine").css("display", "block");
  290. if (GM_getValue('searchindex')){
  291.  
  292. $(".search-engine-list li").eq(GM_getValue('searchindex')).css("background","#D2E9FF");
  293. }
  294. }else{
  295. $(".search-engine").css("display", "none");
  296. }
  297. })
  298.  
  299. $(".zkdsearch-icon").css("opacity", "1");
  300. var listIndex = -1;
  301. var hotList = 0;
  302. var searchData = {
  303. "name": "常用",
  304. "thisSearch": "https://www.baidu.com/s?wd=",
  305. "thisSearchIcon": "https://www.baidu.com/favicon.ico",
  306. "hotStatus": true,
  307. "data": [{
  308. name: "百度",
  309. img: "https://www.baidu.com/favicon.ico",
  310. position: "0px 0px",
  311. url: "https://www.baidu.com/s?wd="
  312. }, {
  313. name: "谷歌",
  314. img: "https://pp.myapp.com/ma_icon/0/icon_74260_1586509820/96",
  315. position: "-40px 0px",
  316. url: "https://www.google.com/search?q="
  317. }, {
  318. name: "必应",
  319. img: "https://cn.bing.com/favicon.ico",
  320. position: "0px -40px",
  321. url: "https://cn.bing.com/search?q="
  322. }, {
  323. name: "好搜",
  324. img: "https://www.so.com/favicon.ico",
  325. position: "-40px -40px",
  326. url: "https://www.so.com/s?q="
  327. }, {
  328. name: "搜狗",
  329. img: "https://www.sogou.com/favicon.ico",
  330. position: "0px -80px",
  331. url: "https://www.sogou.com/web?query="
  332. }, {
  333. name: "淘宝",
  334. img: "https://pp.myapp.com/ma_icon/0/icon_5080_1586832986/96",
  335. position: "-40px -80px",
  336. url: "https://s.taobao.com/search?q="
  337. }, {
  338. name: "京东",
  339. img: "http://www.jd.com/favicon.ico",
  340. position: "0px -120px",
  341. url: "http://search.jd.com/Search?keyword="
  342. }, {
  343. name: "天猫",
  344. img: "https://pp.myapp.com/ma_icon/0/icon_208787_1585819238/96",
  345. position: "-40px -120px",
  346. url: "https://list.tmall.com/search_product.htm?q="
  347. }, {
  348. name: "1688",
  349. img: "https://pp.myapp.com/ma_icon/0/icon_2904_1586936352/96",
  350. position: "0px -160px",
  351. url: "https://s.1688.com/selloffer/offer_search.htm?keywords="
  352. }, {
  353. name: "知乎",
  354. img: "https://www.zhihu.com/favicon.ico",
  355. position: "-40px -160px",
  356. url: "https://www.zhihu.com/search?type=content&q="
  357. }, {
  358. name: "微博",
  359. img: "https://www.weibo.com/favicon.ico",
  360. position: "0px -200px",
  361. url: "https://s.weibo.com/weibo/"
  362. }, {
  363. name: "B站",
  364. img: "https://pp.myapp.com/ma_icon/0/icon_73622_1586762192/96",
  365. position: "-40px -200px",
  366. url: "http://search.bilibili.com/all?keyword="
  367. }, {
  368. name: "豆瓣",
  369. img: "https://www.douban.com/favicon.ico",
  370. position: "0px -240px",
  371. url: "https://www.douban.com/search?source=suggest&q="
  372. }, {
  373. name: "优酷",
  374. img: "https://pp.myapp.com/ma_icon/0/icon_10197_1587468147/96",
  375. position: "-40px -240px",
  376. url: "https://so.youku.com/search_video/q_"
  377. }, {
  378. name: "GitHub",
  379. img: "https://github.com/favicon.ico",
  380. position: "0px -280px",
  381. url: "https://github.com/search?utf8=✓&q="
  382. }]
  383. };
  384.  
  385.  
  386.  
  387.  
  388. if (GM_getValue('sodata') ){
  389. if (GM_getValue('searchfl') ){
  390. searchData = GM_getValue('sodata')[GM_getValue('searchfl')];
  391. }else{
  392. searchData = GM_getValue('sodata')[0];
  393. }
  394. for (var k=0;k<GM_getValue('sodata').length;k++){
  395. var searchfl="";
  396. if (GM_getValue('searchfl')){
  397. if (GM_getValue('searchfl')==k){
  398. searchfl='style=" background: #1E90FF;color: #FFF;"';
  399. }
  400. }else{
  401. if (k==0){
  402. searchfl='style=" background: #1E90FF;color: #FFF;"';
  403. GM_setValue('searchfl', k);
  404. }
  405. }
  406. $('.search-engine-head').append('<strong class="search-engine-tit" '+ searchfl+' >'+GM_getValue('sodata')[k].name+'</strong> ');
  407.  
  408. }
  409.  
  410. }else{
  411. $('.search-engine-head').append('<strong class="search-engine-tit">'+searchData.name+'</strong> ');
  412. }
  413.  
  414.  
  415.  
  416. if (GM_getValue('searchindex')){
  417.  
  418. var czxcsdwer=searchData.data;
  419.  
  420.  
  421. var lssearchindex=GM_getValue('searchindex');
  422. if (lssearchindex.img==""){
  423. lssearchindex.img=gongjuimg;
  424. }
  425.  
  426. var iconimg ="url('"+czxcsdwer[lssearchindex].img+"')";
  427. $(".zkdsearch-icon").css({"background-image":iconimg,"background-size":"20px 20px"});
  428. searchData.thisSearch=searchData.data[lssearchindex].url;
  429. }else{
  430. var iconimg ="url('"+searchData.data[0].img+"')";
  431. $(".zkdsearch-icon").css({"background-image":iconimg,"background-size":"20px 20px"});
  432. searchData.thisSearch=searchData.data[0].url;
  433. }
  434.  
  435. for (var i = 0; i < searchData.data.length; i++) {
  436. if (searchData.data[i].img==""){
  437. searchData.data[i].img=gongjuimg;
  438. }
  439.  
  440. $(".search-engine-list").append('<li><span style="background:url(\'' + searchData.data[i].img + '\');background-size:20px 20px;background-repeat:no-repeat;border-radius: 50%;"/></span>' +
  441. searchData.data[i].name + "</li>")
  442. }
  443.  
  444. function filterChildren(element) {
  445. var thisText = $(element).contents().filter(function (index, content) {
  446. return content.nodeType === 3
  447. }).text().trim();
  448. return thisText
  449. }
  450.  
  451.  
  452. $("#txt").keyup(function (e) {
  453. if ($(this).val()) {
  454. if (e.keyCode == 38 || e.keyCode == 40 || !searchData.hotStatus) {
  455. return
  456. }
  457.  
  458. } else {
  459. $(".search-clear").css("display", "none");
  460. $("#box").css("display", "none")
  461. }
  462. });
  463. $("#txt").keydown(function (e) {
  464. if (e.keyCode === 40) {
  465. listIndex === (hotList - 1) ? listIndex = 0 : listIndex++;
  466. $("#box ul li").eq(listIndex).addClass("current").siblings().removeClass("current");
  467. var hotValue = filterChildren($("#box ul li").eq(listIndex));
  468. $("#txt").val(hotValue)
  469. }
  470. if (e.keyCode === 38) {
  471. if (e.preventDefault) {
  472. e.preventDefault()
  473. }
  474. if (e.returnValue) {
  475. e.returnValue = false
  476. }
  477. listIndex === 0 || listIndex === -1 ? listIndex = (hotList - 1) : listIndex--;
  478. $("#box ul li").eq(listIndex).addClass("current").siblings().removeClass("current");
  479. var hotValue = filterChildren($("#box ul li").eq(listIndex));
  480. $("#txt").val(hotValue)
  481. }
  482. if (e.keyCode === 13) {
  483.  
  484. var baidugourl="";
  485. if(searchData.thisSearch.indexOf("sosoname") >= 0 ) {
  486.  
  487. baidugourl=searchData.thisSearch.replace(/sosoname/, $("#txt").val());
  488. }else{
  489. baidugourl=searchData.thisSearch + $("#txt").val();
  490. }
  491. window.open(baidugourl);
  492.  
  493. $("#box").css("display", "none");
  494. $("#txt").blur();
  495. $("#box ul li").removeClass("current");
  496. listIndex = -1
  497. }
  498. });
  499. $("#txt").focus(function () {
  500. $(".search-box").css("box-show", "inset 0 1px 2px rgba(27,31,35,.075), 0 0 0 0.2em rgba(3,102,214,.3)");
  501. if ($(this).val() && searchData.hotStatus) {
  502.  
  503. }
  504. });
  505. $("#txt").blur(function () {
  506. setTimeout(function () {
  507. $("#box").css("display", "none")
  508. }, 250)
  509. });
  510.  
  511.  
  512.  
  513. $(" .search-engine").hover(function () {
  514. $(".search-engine").css("display", "block");
  515. }, function () {
  516. $(".search-engine").css("display", "none")
  517. });
  518.  
  519. $(" .zkdsearch-icon").hover(function () {
  520. $(".search-engine").css("display", "block");
  521. if (GM_getValue('searchindex')){
  522.  
  523. $(".search-engine-list li").eq(GM_getValue('searchindex')).css("background","#D2E9FF");
  524. }
  525. });
  526. $(".search-engine-head strong").click(function () {
  527. var strongindex = $(this).index();
  528.  
  529. for (var c = 0; c< GM_getValue('sodata').length; c++) {
  530. if ( c==strongindex){
  531. }else{
  532. $(".search-engine-head strong").eq(c).css({"background":"#F2F2F2","color":"#6C6D76"});
  533. }
  534. }
  535.  
  536. $(this).css({"background":"#1E90FF","color":"#FFF"});
  537. GM_setValue('searchindex', 0 );
  538. GM_setValue('searchfl', strongindex );
  539. searchData = GM_getValue('sodata')[strongindex];
  540. $(".search-engine-list").html(' ');
  541.  
  542. for (var i = 0; i < searchData.data.length; i++) {
  543. if (searchData.data[i].img==""){
  544. searchData.data[i].img=gongjuimg;
  545. }
  546.  
  547. $(".search-engine-list").append('<li><span style="background:url(\'' + searchData.data[i].img + '\');background-size:20px 20px;background-repeat:no-repeat;border-radius: 50%;"/></span>' +
  548. searchData.data[i].name + "</li>")
  549. }
  550.  
  551.  
  552. });
  553. $("#hot-btn").click(function () {
  554. $(this).toggleClass("off");
  555. searchData.hotStatus = !searchData.hotStatus;
  556.  
  557. });
  558. searchData.hotStatus ? $("#hot-btn").removeClass("off") : $("#hot-btn").addClass("off");
  559.  
  560.  
  561.  
  562. $(".search-engine-list").on("click","li",function(){
  563. var index = $(this).index();
  564. for (var z = 0; z < searchData.data.length; z++) {
  565.  
  566. if (z==index){
  567. if ( searchData.data[index].type=="1"){
  568. window.open(searchData.data[index].url);
  569. return;
  570. }
  571. $(".search-engine-list li").eq(index).css("background","#D2E9FF");
  572.  
  573. }else{
  574. $(".search-engine-list li").eq(z).css("background","#f9f9f9");
  575. }
  576. }
  577.  
  578.  
  579. GM_setValue('searchindex', index);
  580.  
  581.  
  582.  
  583. if (searchData.data[index].img==""){
  584. searchData.data[index].img=gongjuimg;
  585. }
  586. var iconimg ="url('"+searchData.data[index].img+"')";
  587. $(".zkdsearch-icon").css({"background-image":iconimg,"background-size":"20px 20px"});
  588.  
  589. searchData.thisSearch = searchData.data[index].url;
  590. $(".search-engine").css("display", "none");
  591.  
  592. });
  593.  
  594.  
  595.  
  596.  
  597.  
  598. $("#search-btn").click(function () {
  599. var textValue = $("#txt").val();
  600. if (textValue) {
  601. var baidugourl="";
  602. if(searchData.thisSearch.indexOf("sosoname") >= 0 ) {
  603.  
  604. baidugourl=searchData.thisSearch.replace(/sosoname/, textValue);
  605. }else{
  606. baidugourl=searchData.thisSearch + textValue;
  607. }
  608. window.open(baidugourl);
  609. $("#box ul").html("")
  610. } else {
  611. layer.msg("加载中", {
  612. time: 500
  613. }, function () {
  614. $("#txt").focus()
  615. })
  616. }
  617. })
  618. }
  619.  
  620.  
  621. if(zkddomain.indexOf(".op.gg") > 0 ) {
  622. $(".vm-placement").remove();
  623. }
  624. if(zkddomain.indexOf("greasyfork.org") <= 0 ) {
  625. delgoogle();
  626. delzhihu();
  627. delbaidu();
  628. del360();
  629. if($("iframe").length>0 ){
  630. $("iframe").each(function(){
  631. if($(this).src ){
  632. if ($(this).src.indexOf('pos.baidu.com') >=0) {
  633. $(this).remove();
  634. }
  635. }
  636. });
  637. }
  638. setTimeout(function(){
  639. $("div").each(function(){
  640.  
  641. if ($(this).attr("data-type")=="GoogleRender"){
  642.  
  643. $(this).remove();
  644. }
  645. });
  646. delgoogle();
  647. delzhihu();
  648. delbaidu();
  649. del360();
  650. $("iframe").each(function(){
  651. if($(this).src ){
  652. if ($(this).src.indexOf('pos.baidu.com') >=0 ) {
  653. $(this).remove();
  654. }
  655. }
  656. });
  657.  
  658. },3000);
  659.  
  660. var ref = "";
  661.  
  662. ref = setInterval(function(){
  663. delgoogle();
  664. },2000);
  665.  
  666. function delgoogle() {
  667. $("ins").remove();
  668. var x = document.getElementsByClassName("ad");
  669. var i;
  670. for (i = 0; i < x.length; i++) {
  671. x[i].style.display = "none";
  672. }
  673.  
  674. var y = document.getElementsByClassName("adsbygoogle");
  675. var j;
  676. for (j = 0; j < y.length; j++) {
  677. y[j].style.display = "none";
  678. }
  679.  
  680. $(".adsbygoogle").remove();
  681.  
  682.  
  683.  
  684. $("script").each(function(){
  685.  
  686. if($(this).attr("src")){
  687. let googads=$(this).attr("src");
  688. if (googads.indexOf('adsbygoogle.js') >=0 || googads.indexOf('g.doubleclick.net') >=0){
  689. $(this).remove();
  690. }
  691. }
  692. });
  693. $("div").each(function(){
  694. $(this).attr("id");
  695. if($(this).attr("id")){
  696. let googsrcid=$(this).attr("id");
  697. if (googsrcid.indexOf('google_ads') >=0){
  698. $(this).remove();
  699. }
  700. }
  701. if($(this).attr("data-google-query-id")){
  702. $(this).remove();
  703. }
  704. });
  705.  
  706.  
  707. }
  708.  
  709. function delzhihu() {
  710.  
  711. $(".Pc-feedAd").remove();
  712. $(".Banner-adsense").remove();
  713.  
  714. $("img").each(function(){
  715.  
  716. if ($(this).attr("alt")=="广告"){
  717.  
  718. $(this).remove();
  719.  
  720. }
  721. });
  722. }
  723. }
  724.  
  725. function del360() {
  726. if($("iframe").length>0 ){
  727. $("iframe").each(function(){
  728. if($(this).src ){
  729. console.log($(this).src)
  730. }
  731. });
  732. }
  733.  
  734. if(zkddomain.indexOf('360kan.com') > 0 ){
  735.  
  736. $("li").each(function(){
  737. if ($(this).attr("data-clicklog") ){
  738. $(this).remove();
  739. }
  740. })
  741. }
  742. if (zkddomain.indexOf('so.com') > 0 && zkdurldomain.indexOf('so.com/s') > 0){
  743. $("#e_idea_pp").remove();
  744. $("#side").remove();
  745. $("#mohe-360pic_sad--normal").remove();
  746. $("#e_map_idea").remove();
  747. $("#e_idea_pp_vip_bottom").remove();
  748.  
  749.  
  750.  
  751. }
  752. if(zkddomain.indexOf('so.com') > 0 ){
  753.  
  754. $(".aside").remove();
  755.  
  756. $("#js-bussiness-bot-list").remove();
  757. $("#js-mod-fixed-inn").remove();
  758. $("#e_idea_wenda_leftBox").remove();
  759.  
  760. }
  761. }
  762.  
  763. if(zkdurldomain.indexOf('www.baidu.com/s') > 0){
  764.  
  765. setInterval(function(){
  766. delbaidu()
  767. },2000);
  768. }
  769.  
  770.  
  771. function delbaidu() {
  772.  
  773. if(zkddomain.indexOf("baidu.com") > 0 ) {
  774. if(zkdurldomain.indexOf('www.baidu.com/s') > 0){
  775. $("[cmatchid]").remove();
  776. $("#content_right").remove();
  777.  
  778. if(zkdurldomain.indexOf("sf/vsearch") < 0 ) {
  779. $("#content_left").find("div:eq(0)").each(function() {
  780. var id = String($(this).attr("id"));
  781. if (id == "undefined") {
  782. $(this).remove();
  783. }
  784. })
  785. }
  786. setTimeout(function(){
  787. $("span").each(function() {
  788. if ($(this)[0].innerHTML == '广告') {
  789.  
  790. $(this).parent().parent().remove();
  791. }
  792. })
  793. }, 3000);
  794.  
  795. }
  796.  
  797. if(zkdurldomain.indexOf('zhidao.baidu.com') > 0){
  798. $(".shop-entrance").remove();
  799. $(".activity-entry").remove();
  800. $(".task-list-button").remove();
  801. }
  802. if(zkdurldomain.indexOf('zhidao.baidu.com/search') > 0){
  803. $(".bannerdown").remove();
  804. $(".aside.fixheight").remove();
  805. $(".wgt-bottom-ask").remove();
  806.  
  807. $(".leftup").remove();
  808. $(".wgt-iknow-special-business").remove();
  809. }
  810. if(zkdurldomain.indexOf('zhidao.baidu.com/question') > 0){
  811. $(".grid-r.qb-side").remove();
  812. $(".wgt-ads").remove();
  813. $(".wgt-bottom-union").remove();
  814. $(".adTopImg").remove();
  815. $(".exp-topwld-tip").remove();
  816. $("#wgt-ecom-banner").remove();
  817. $("#wgt-ecom-right").remove();
  818. $(".question-number-text-chain").remove();
  819. setTimeout(function(){
  820. $(".ec-pc_mat_coeus__related_link_text-content").remove();
  821. }, 1000);
  822. }
  823.  
  824.  
  825. if(zkdurldomain.indexOf('baike.baidu.com') > 0){
  826. setTimeout(function(){
  827. $("#navbarAdNew").remove();
  828. $(".userbar_mall").remove();
  829. }, 1000);
  830. }
  831. if(zkdurldomain.indexOf('baike.baidu.com/item') > 0){
  832.  
  833. $(".before-content").remove();
  834. $(".configModuleBanner").remove();
  835. setTimeout(function(){
  836. $(".topA").remove();
  837. $(".right-ad").remove();
  838. $(".lemmaWgt-promotion-vbaike").remove();
  839. $(".lemmaWgt-promotion-slide").remove();
  840. $("#side_box_unionAd").remove();
  841. }, 1000);
  842. }
  843.  
  844.  
  845. if(zkdurldomain.indexOf('wenku.baidu.com') > 0){
  846. $(".banner-ad").remove();
  847. $(".ad-box").remove();
  848. $("#banurl").remove();
  849. $("#my-wkHome-vip-tips").parent().remove();
  850. $(".vip-card").remove();
  851. setTimeout(function(){
  852. $(".zsj-topbar").remove();
  853. $(".lastcell-dialog").remove();
  854. $(".zsj-toppos").remove();
  855. }, 1000);
  856. }
  857. if(zkdurldomain.indexOf('wenku.baidu.com/search') > 0){
  858. $("#fengchaoad").remove();
  859. $(".yuedu-recommend-wrap").remove();
  860. $(".search-aside-adWrap").remove();
  861. }
  862. if(zkdurldomain.indexOf('wenku.baidu.com/view') > 0){
  863. $(".hx-bottom-wrapper").remove();
  864. $(".relative-recommend-wrapper").remove();
  865. $(".fc-container").remove();
  866. $("#ggbtm").parent().remove();
  867. $(".union-ad-bottom").remove();
  868. $(".ad-vip-close-bottom").remove();
  869. $(".operation-wrapper").remove();
  870. $(".relative-course-wrapper").remove();
  871. $(".hot-search-wrapper").remove();
  872. $(".hx-right-wrapper").remove();
  873. $("#relative-videos-wrap").remove();
  874. $(".add-has-money-pay").remove();
  875. $(".wk-color-vip-red").parent().parent().remove();
  876. $(".vip-tips-wrap").parent().remove();
  877. $(".top-ads-banner-wrap").remove();
  878. setTimeout(function(){
  879. $(".wangpan-tip").remove();
  880. $(".new-user-discount-tip").remove();
  881. $(".pay-vip-btn-wrap").remove();
  882. $(".relative-doc-ad-wrapper").remove();
  883. }, 1000);
  884. setInterval(function(){
  885. $(".view-like-recom-fc").remove();
  886. }, 1000);
  887. }
  888.  
  889.  
  890. if(zkdurldomain.indexOf('image.baidu.com/search/index') > 0){
  891.  
  892. $("#pnlBeforeContent").remove();
  893. setInterval(function(){
  894. $(".fcImgli").remove();
  895. }, 1000);
  896. }
  897. if(zkdurldomain.indexOf('image.baidu.com/search/detail') > 0){
  898. $(".text-link-ads").remove();
  899. $(".rsresult-card").remove();
  900. $("#adCard").remove();
  901. }
  902.  
  903.  
  904. if(zkdurldomain.indexOf('tieba.baidu.com/f/search') > 0){
  905. $(".s_aside").remove();
  906. }
  907. if(zkdurldomain.indexOf('tieba.baidu.com/f?') > 0){
  908. setInterval(function(){
  909. $("span:contains('广告')").parent().parent().parent().parent().parent().remove();
  910. }, 1000);
  911.  
  912. $("div").each(function(){
  913. var fds=$(this).attr("title");
  914. if (fds =="广告") {
  915. var sda=$(this).parent().parent().parent();
  916. if(sda.prop("tagName").toLowerCase()=="li"){
  917. $(sda).remove();
  918. }
  919.  
  920. }
  921. });
  922. $("span").each(function(){
  923. var fds=$(this).text();
  924. if (fds =="广告") {
  925. var sda=$(this).parent().parent().parent().parent().parent();
  926. if(sda.prop("tagName").toLowerCase()=="li"){
  927. $(sda).remove();
  928. }
  929.  
  930. }
  931. });
  932.  
  933. }
  934. if(zkdurldomain.indexOf('tieba.baidu.com/p') > 0){
  935. setInterval(function(){
  936. $("span:contains('广告')").parent().parent().parent().parent().parent().parent().remove();
  937. }, 1000);
  938. }
  939.  
  940.  
  941. if(zkdurldomain.indexOf('map.baidu.com/search') > 0){
  942.  
  943. setInterval(function(){
  944. $(".damoce-search-item.damoce-search-item-nopoi").remove();
  945. }, 1000);
  946. }
  947.  
  948.  
  949. if(zkdurldomain.indexOf('jingyan.baidu.com/search') > 0){
  950. $(".ec_ad").parent().remove();
  951. }
  952. if(zkdurldomain.indexOf('jingyan.baidu.com/article') > 0){
  953. $("#fresh-share-exp-e").remove();
  954. $(".wgt-income-money").remove();
  955. $(".aside-pro-container").remove();
  956. $("#bottom-ads-container").remove();
  957. $(".magzine-list").remove();
  958. }
  959.  
  960.  
  961.  
  962. if(zkdurldomain.indexOf('video.baidu.com') > 0 || zkdurldomain.indexOf('v.baidu.com') > 0){
  963. setTimeout(function(){
  964. $("#PCallpagesidebar1").remove();
  965. $("#PCallpagesidebar2").remove();
  966. $(".bdvideo-adver-carousel").parent().remove();
  967. $("div[id*='adone']").remove();
  968. $("div[id*='adtwo']").remove();
  969. $("#pallcommoncolumnad").remove();
  970. $("#index_right_top").remove();
  971. $("#qzfcadid").remove();
  972. $("#pcshortchannelTopRight").remove();
  973. $("#__lawnImageContainer").parent().parent().remove();
  974.  
  975. $("#detail_adm_right").remove();
  976. $(".ctt-adver1-banner").remove();
  977. $("div[id*='PCDetailPageTopRightList']").remove();
  978.  
  979.  
  980. }, 1000);
  981. setInterval(function(){
  982. $("div[id*='channelBannerAdver']").remove();
  983. $("div[id*='channelColumn']").parent().remove();
  984. $("div[id*='ChannelColumn']").parent().remove();
  985. $("div[id*='pc']").remove();
  986. $("div[id*='PC']").remove();
  987. $("div[id*='adv-carousel-item']").parent().remove();
  988. $("[id*='FeedAdSys']").remove();
  989. $("div[id*='TabAd']").remove();
  990. $(".section-ad").remove();
  991. $(".full-collunm-ad").remove();
  992.  
  993.  
  994.  
  995. }, 1000);
  996. }
  997. if(zkdurldomain.indexOf('video.baidu.com/v') > 0 || zkdurldomain.indexOf('v.baidu.com/v') > 0){
  998.  
  999. $(".top-ad-cont").remove();
  1000. setTimeout(function(){
  1001.  
  1002. $("div[id*='searchMoreLong']").remove();
  1003. $("#searchPagefeedBanner").remove();
  1004. $(".side-content").remove();
  1005. $("#psBottomColumn").parent().remove();
  1006. }, 1000);
  1007. setInterval(function(){
  1008.  
  1009. $("#searchResultAdOne").remove();
  1010. $("#searchHotShortSeven").remove();
  1011. $("#searchHotShortSevenTwo").remove();
  1012. }, 1000);
  1013. }
  1014. if(zkdurldomain.indexOf('www.baidu.com/sf/vsearch') > 0){
  1015.  
  1016. $("#s_tab").next().next().each(function() {
  1017. var id = String($(this).attr("id"));
  1018. if (id == "undefined") {
  1019. $(this).remove();
  1020. }
  1021. })
  1022. }
  1023. }
  1024. }
  1025.  
  1026. if(zkdurldomain.indexOf("dalipan.com/detail") >= 0 ) {
  1027.  
  1028. $(".button").on("click",function(){
  1029.  
  1030. if (__NUXT__){
  1031.  
  1032. $(".el-dialog__wrapper").remove();
  1033. window.location.href=__NUXT__.data[0].url;
  1034. }
  1035. });
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041. }
  1042.  
  1043.  
  1044. })();