一键VIP视频解析、去广告(全网),一站式音乐搜索下载,上学吧答案显示,百度云离线跳转,淘宝京东优惠券 2019-08-13 更新,报错请及时反馈

在视频播放页悬浮VIP按钮,可在线播放vip视频;支持优酷vip,腾讯vip,爱奇艺vip,芒果vip,乐视vip等常用视频...一站式音乐搜索解决方案,网易云音乐,QQ音乐,酷狗音乐,酷我音乐,虾米音乐,百度音乐,蜻蜓FM,荔枝FM,喜马拉雅,优惠券查询

As of 13/08/2019. See the latest version.

  1. // ==UserScript==
  2. // @name 一键VIP视频解析、去广告(全网),一站式音乐搜索下载,上学吧答案显示,百度云离线跳转,淘宝京东优惠券 2019-08-13 更新,报错请及时反馈
  3. // @namespace http://www.wandhi.com/
  4. // @version 3.4.1
  5. // @description 在视频播放页悬浮VIP按钮,可在线播放vip视频;支持优酷vip,腾讯vip,爱奇艺vip,芒果vip,乐视vip等常用视频...一站式音乐搜索解决方案,网易云音乐,QQ音乐,酷狗音乐,酷我音乐,虾米音乐,百度音乐,蜻蜓FM,荔枝FM,喜马拉雅,优惠券查询
  6. // @author Wandhi
  7. // @icon https://www.wandhi.com/favicon.ico
  8. // @include *://m.youku.com/v*
  9. // @include *://m.youku.com/a*
  10. // @include *://v.youku.com/v_*
  11. // @include *://*.iqiyi.com/v_*
  12. // @include *://*.iqiyi.com/w_*
  13. // @include *://*.iqiyi.com/a_*
  14. // @include *://*.iqiyi.com/adv*
  15. // @include *://*.le.com/ptv/vplay/*
  16. // @include *v.qq.com/x/cover/*
  17. // @include *v.qq.com/x/page/*
  18. // @include *v.qq.com/play*
  19. // @include *v.qq.com/cover*
  20. // @include *://*.tudou.com/listplay/*
  21. // @include *://*.tudou.com/albumplay/*
  22. // @include *://*.tudou.com/programs/view/*
  23. // @include *://*.tudou.com/v*
  24. // @include *://*.mgtv.com/b/*
  25. // @include *://film.sohu.com/album/*
  26. // @include *://tv.sohu.com/v/*
  27. // @include *://*.acfun.cn/v/*
  28. // @include *://*.bilibili.com/video/*
  29. // @include *://*.bilibili.com/anime/*
  30. // @include *://*.bilibili.com/bangumi/play/*
  31. // @include *://*.pptv.com/show/*
  32. // @include *://*.baofeng.com/play/*
  33. // @include *://*.wasu.cn/Play/show*
  34. // @include *://v.yinyuetai.com/video/*
  35. // @include *://v.yinyuetai.com/playlist/*
  36. // @include *://*.wasu.cn/Play/show/*
  37. // @include *://music.taihe.com/song*
  38. // @include *://item.taobao.com/*
  39. // @include *://detail.tmall.com/*
  40. // @include *://detail.tmall.hk/*
  41. // @include *://item.jd.com/*
  42. // @include *://music.163.com/song*
  43. // @include *://music.163.com/m/song*
  44. // @include *://y.qq.com/*
  45. // @include *://*.kugou.com/*
  46. // @include *://*.kuwo.cn/*
  47. // @include *://*.xiami.com/*
  48. // @include *://music.taihe.com/*
  49. // @include *://*.1ting.com/player*
  50. // @include *://www.qingting.fm/*
  51. // @include *://www.lizhi.fm/*
  52. // @include *://music.migu.cn/*
  53. // @include *://www.shangxueba.com/ask/*.html
  54. // @include *://www.ximalaya.com/*
  55. // @include *://www.shangxueba.com/ask/*.html
  56. // @include *://pan.baidu.com/disk/home*
  57. // @include *://yun.baidu.com/disk/home*
  58. // @include *://pan.baidu.com/s/*
  59. // @include *://yun.baidu.com/s/*
  60. // @include *://pan.baidu.com/share/link*
  61. // @include *://yun.baidu.com/share/link*
  62. // @exclude *://*.wandhi.com/*
  63. // @require https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js
  64. // @require https://greasyfork.org/scripts/373336-layer-wandhi/code/layer_wandhi.js?version=637587
  65. // @license GPL License
  66. // @grant GM_setClipboard
  67. // @run-at document-end
  68. // @connect shangxueba365.com
  69. // @grant unsafeWindow
  70. // @grant GM_xmlhttpRequest
  71. // @grant GM_info
  72. // @grant GM.getValue
  73. // @grant GM.setValue
  74. // @grant GM_getValue
  75. // @grant GM_setValue
  76. // @grant GM_notification
  77. // ==/UserScript==
  78.  
  79. (function () {
  80. 'use strict';
  81. var currentUrl = window.location.href;
  82. var reBDY=/pan.baidu.com\/s/i;
  83. var reYk = /youku/i;
  84. var reAqy = /iqiyi/i;
  85. var reLS = /le.com/i;
  86. var reTX = /v.qq/i;
  87. var reTD = /tudou/i;
  88. var reMG = /mgtv/i;
  89. var reSH = /sohu/i;
  90. var reAF = /acfun/i;
  91. var reBL = /bilibili/i;
  92. var reYJ = /1905/i;
  93. var rePP = /pptv/i;
  94. var reYYT = /yinyuetai/i;
  95. var reTaoBao = /taobao.com/i;
  96. var reTmall = /tmall/i;
  97. var reJd = /jd/i;
  98. var reWY = /163(.*)song/i;
  99. var reQQ = /y.QQ(.*)song/i;
  100. var reKG = /kugou(.*)song/i;
  101. var reKW = /kuwo(.*)yinyue/i;
  102. var reXM = /xiami/i;
  103. var reBD = /taihe.com/i;
  104. var reQT = /qingting/i;
  105. var reLZ = /lizhi/i;
  106. var reMiGu = /migu/i;
  107. var reXMLY = /ximalaya/i;
  108. var reSXB = /shangxueba/i;
  109. var t = $.now();
  110. if (reWY.test(currentUrl) || reQQ.test(currentUrl) || reKG.test(currentUrl) || reKW.test(currentUrl) || reXM.test(currentUrl) || reBD.test(currentUrl) || reQT.test(currentUrl) || reLZ.test(currentUrl) || reMiGu.test(currentUrl) || reXMLY.test(currentUrl)) {
  111. var menus=[{title:'\u7535\u5F71\u641C\u7D22',show:'\u7535\u5F71<br>\u641C\u7D22',type:'search'},{title:'\u97F3\u4E50\u4E0B\u8F7D',show:'\u97F3\u4E50<br>\u4E0B\u8F7D',type:'process'},{title:'\u7EDD\u4E16\u597D\u5238',show:'\u7EDD\u4E16<br>\u597D\u5238',type:'tb'},{title:'\u4EAC\u4E1C\u597D\u5238',show:'\u4EAC\u4E1C<br>\u597D\u5238',type:'jd'}];
  112. var f=function(){
  113. $('body').on('click', '[data-cat=process]', function () {
  114. InitCurrentUrl();
  115. if(reXMLY.test(currentUrl))
  116. {
  117. if(__INITIAL_STATE__.SoundDetailPage!=undefined)
  118. {
  119. window.open('http://music.wandhi.com/?id='+__INITIAL_STATE__.SoundDetailPage.trackId+'&type=ximalaya');
  120. }else
  121. {
  122. layer.closeAll();
  123. var html='<div style="padding:0px 50px 0px 50px;"><ul class="sound-list dOi2">';
  124. $.each(__INITIAL_STATE__.AlbumDetailTrackList.tracksInfo.tracks,function(index,item){html+='<li class="dOi2"><a href="http://music.wandhi.com/?id='+item.trackId+'&type=ximalaya" target="_blank">'+item.title+'</a></li>';});
  125. html+='</ul></div>';
  126. layer.open({type: 1,area: ['auto', '30%'],title: '\u4E3A\u4F60\u627E\u5230\u4E86\u8FD9\u4E9B\u66F2\u76EE\u89E3\u6790\u2026\u2026\u4EC0\u4E48\uFF1F\u6211\u4E11\uFF1F\u4EE5\u540E\u518D\u8BF4\u5427',shade: 0.6,maxmin: false,anim: 2,content: html});
  127. }
  128.  
  129. }else if(/taihe.com/i.test(currentUrl)){
  130. window.open('http://music.wandhi.com/?url=' + encodeURIComponent(currentUrl.replace("taihe","baidu")));
  131. }
  132. else
  133. {
  134. window.open('http://music.wandhi.com/?url=' + encodeURIComponent(currentUrl));
  135. }
  136. });
  137. $('body').on('click', '[data-cat=search]', function () {
  138. window.open('http://tv.wandhi.com/');
  139. });
  140. $('body').on('click', '[data-cat=tb]', function () {
  141. window.open('http://www3.huizhek.com/');
  142. });
  143. $('body').on('click', '[data-cat=jd]', function () {
  144. window.open('http://jd.huizhek.com');
  145. });};
  146. InitMenu(menus,f);
  147. } else if (reAqy.test(currentUrl) || reLS.test(currentUrl) || reTX.test(currentUrl) || reTD.test(currentUrl) || reMG.test(currentUrl) || reSH.test(currentUrl) || rePP.test(currentUrl) || reYk.test(currentUrl)) {
  148. var menus=[{title:'\u7535\u5F71\u641C\u7D22',show:'\u7535\u5F71<br>\u641C\u7D22',type:'search'},{title:'\u89C6\u9891\u89E3\u6790',show:'\u89C6\u9891<br>\u89E3\u6790',type:'process'},{title:'\u7EDD\u4E16\u597D\u5238',show:'\u7EDD\u4E16<br>\u597D\u5238',type:'tb'},{title:'\u4EAC\u4E1C\u597D\u5238',show:'\u4EAC\u4E1C<br>\u597D\u5238',type:'jd'}];
  149. InitMenu(menus,function(){
  150. $('body').on('click', '[data-cat=process]', function () {
  151. window.open('http://tv.wandhi.com/go.html?url=' + encodeURIComponent(window.location.href));
  152. });
  153. $('body').on('click', '[data-cat=search]', function () {
  154. window.open('http://tv.wandhi.com/');
  155. });
  156. $('body').on('click', '[data-cat=tb]', function () {
  157. window.open('http://www3.huizhek.com/');
  158. });
  159. $('body').on('click', '[data-cat=jd]', function () {
  160. window.open('http://jd.huizhek.com');
  161. });})
  162. } else if (reTaoBao.test(currentUrl) || reTmall.test(currentUrl)) {
  163. loader();
  164. TINT();
  165. } else if (reJd.test(currentUrl)) {
  166. var keywords = $(".sku-name").text().trim();
  167. $("#choose-btns").prepend('<a href="javascript:;" class="btn-special1 btn-lg btn-yhj"><span class="">\u67e5\u8be2\u4f18\u60e0\u5238</span></a>');
  168. $(".btn-yhj").on('click', function () {
  169. window.open("http://jd.huizhek.com/?ah=total&kw=" + encodeURIComponent(keywords));
  170. });
  171. }else if(reSXB.test(currentUrl)){
  172. var menus=[{title:'\u67E5\u770B\u7B54\u6848',show:'\u67E5\u770B<br>\u7B54\u6848',type:'search'},{title:'\u6253\u8D4F\u4F5C\u8005',show:'\u6253\u8D4F<br>\u4F5C\u8005',type:'process'},{title:'\u7EDD\u4E16\u597D\u5238',show:'\u7EDD\u4E16<br>\u597D\u5238',type:'tb'},{title:'\u4EAC\u4E1C\u597D\u5238',show:'\u4EAC\u4E1C<br>\u597D\u5238',type:'jd'}];
  173. InitMenu(menus,function(){
  174. $('body').on('click', '[data-cat=process]', function () {
  175. layer.open({type: 1,title: '\u8bf7\u6211\u559d\u4e00\u676f',shadeClose: true,area: '800px',content: '<img src="https://i.loli.net/2019/05/14/5cda672add6f594934.jpg">'});
  176. });
  177. $('body').on('click', '[data-cat=search]', function () {SXB();});
  178. $('body').on('click', '[data-cat=tb]', function () {
  179. window.open('https://link.zhihu.com/?target=https://api.wandhi.com/goto/DUVAFQgZTEEVFAQcDhYKSFkDDh9XCl8=');
  180. });
  181. $('body').on('click', '[data-cat=jd]', function () {
  182. window.open('https://link.zhihu.com/?target=https://api.wandhi.com/goto/DUVAFQgZTFwGTVhHDxkLV1pIBl5Z');
  183. });});
  184. }else if(reBDY.test(currentUrl)){
  185. var menus=[{title:'\u79BB\u7EBF\u4E0B\u8F7D',show:'\u79BB\u7EBF<br>\u4E0B\u8F7D',type:'search'},{title:'\u6253\u8D4F\u4F5C\u8005',show:'\u6253\u8D4F<br>\u4F5C\u8005',type:'process'},{title:'\u7EDD\u4E16\u597D\u5238',show:'\u7EDD\u4E16<br>\u597D\u5238',type:'tb'},{title:'\u4EAC\u4E1C\u597D\u5238',show:'\u4EAC\u4E1C<br>\u597D\u5238',type:'jd'}];
  186. InitMenu(menus,function(){
  187. $('body').on('click', '[data-cat=process]', function () {
  188. layer.open({type: 1,title: '\u8bf7\u6211\u559d\u4e00\u676f',shadeClose: true,area: '800px',content: '<img src="http://i1.fuimg.com/500348/6717e02198116ae4s.png">'});
  189. });
  190. $('body').on('click', '[data-cat=search]', function () {window.location.href=window.location.href.replace('baidu.com','baiduwp.com');});
  191. $('body').on('click', '[data-cat=tb]', function () {
  192. window.open('https://link.zhihu.com/?target=https://api.wandhi.com/goto/DUVAFQgZTEEVFAQcDhYKSFkDDh9XCl8=');
  193. });
  194. $('body').on('click', '[data-cat=jd]', function () {
  195. window.open('https://link.zhihu.com/?target=https://api.wandhi.com/goto/DUVAFQgZTFwGTVhHDxkLV1pIBl5Z');
  196. });
  197. });
  198. }
  199.  
  200. function loader() {
  201. $("body").append($('<script type="text/javascript" src="//lib.baomitu.com/jquery/1.12.4/jquery.min.js"></script>'));
  202. }
  203. function getPar(a) {
  204. var b = location.search.match(new RegExp("[\?\&]" + a + "=([^\&]+)", "i"));
  205. if (b == null || b.length < 1) {
  206. return "";
  207. }
  208. return b[1];
  209. }
  210.  
  211. function appendCss(url) {
  212. $('head').append($('<link rel="stylesheet" href="' + url + '">'));
  213. }
  214. function TINT() {var h='https://api.wandhi.com';var bid = getPar('id');var api = '/api/tb/infos/' + bid;appendCss("//cdn.wandhi.com/style/extenstion/hui.style.css");var init = "<div id='wandhi_div'><table class='wandhi_tab' id='wandhi_table'><thead><tr><th><b onclick=window.open('https://link.zhihu.com/?target=http://www3.huizhek.com') style='cursor:pointer'>\u4f18\u60e0\u5238</b></th><th>\u5238\u540e</th><th>\u6709 \u6548 \u671f</th><th>\u64cd\u4f5c</th></tr></thead><tr><td colspan='4'>\u6b63\u5728\u67e5\u8be2\u4f18\u60e0\u4fe1\u606f\uff0c\u8bf7\u7a0d\u5019...</td></tr></table></div>";$('#J_LinkBasket').parent().parent().prepend(init);$('.J_LinkAdd').parent().parent().prepend(init);if (reTaoBao.test(currentUrl)) {$('#wandhi_table').addClass('wandhi_tab_taobao');} else {$('#wandhi_table').addClass('wandhi_tab_tmall');}$.getJSON(h+ api, function (d) {$("#wandhi_table tbody tr").remove();var row = "";if (d.code) {d.data.forEach(e => {row+="<tr><td>" + e.quan_context + "</td><td>" + e.after_price + "</td><td>" + e.quan_time + "</td><td><b onclick=window.open(decodeURIComponent('" + e.quan_link + "')) style='cursor:pointer'>领取</b></td></tr>";});} else {row = "<tr><td colspan='4'>\u8fd9\u4e2a\u5546\u54c1\u6ca1\u6709\u8d85\u503c\u4f18\u60e0\u5238</td></tr>";}$("#wandhi_table tbody").append(row);});}
  215. var answer="-1";
  216. function SXB(){var loading=layer.load(1, {shade: [0.8, '#393D49'], time:10* 1000});var h='https://api.wandhi.com';var id=$("#Hidd_id").val();if(!id){Msg("\u6570\u636e\u5f02\u5e38\u8bf7\u8054\u7cfb\u4f5c\u8005");return;}var api='/api/tools/sxb/'+id;GM_xmlhttpRequest({headers:{ "Content-Type": "application/x-www-form-urlencoded"},method:"POST",url:"http://www.shangxueba365.com/post.php",responseType:"JSON",data:"docinfo="+encodeURIComponent("https://www.shangxueba.com/ask/"+id+".html"),onload:function(res){if(res.status==200&&res.response.status){showAnswer(res.response.msg);}else{Msg("\u672a\u53d1\u73b0\u7b54\u6848");}layer.close(loading);}});}
  217. function showAnswer(h){layer.closeAll();layer.open({type: 1,title: '\u7b54\u6848',area: ['400px', '300px'],shade: 0,offset: 'lb',maxmin: true,content: h});}
  218. function Msg(msg){layer.closeAll();layer.msg(msg, {icon: 5});}
  219. function InitCurrentUrl(){currentUrl = window.location.href;}
  220. function InitMenu(obj,init){
  221. var menusclass=['first','second','third','fourth','fifth'];
  222. var str="";
  223. $.each(obj,function(i,o){
  224. str+='<a href="javascript:void(0)" title="'+o.title+'" data-cat="'+o.type+'" class="menu-item menu-line menu-'+menusclass[i]+'">'+o.show+'</a>';
  225. });
  226. var sidenav = '<svg width="0" height="0"><defs><filter id="goo"><feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur"></feGaussianBlur><feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 19 -9" result="goo"></feColorMatrix><feComposite in="SourceGraphic" in2="goo" operator="atop"></feComposite></filter></defs></svg><div class="aside-nav bounceInUp animated" id="aside-nav"><label for="" class="aside-menu" title="\u6309\u4F4F\u62D6\u52A8">VIP</label>'+str+'</div>';
  227. $("body").append(sidenav).append($('<link rel="stylesheet" href="//cdn.wandhi.com/style/tv/asidenav.css">')).append($('<link rel="stylesheet" href="https://lib.baomitu.com/layer/3.1.1/theme/default/layer.css">'));
  228. var ua = navigator.userAgent;
  229. /Safari|iPhone/i.test(ua) && 0 == /chrome/i.test(ua) && $("#aside-nav").addClass("no-filter");
  230. var drags = { down: !1, x: 0, y: 0, winWid: 0, winHei: 0, clientX: 0, clientY: 0 }, asideNav = $("#aside-nav")[0], getCss = function (a, e) { return a.currentStyle ? a.currentStyle[e] : document.defaultView.getComputedStyle(a, !1)[e] };
  231. $("body").on("mousedown","#aside-nav", function (a) {
  232. drags.down = !0, drags.clientX = a.clientX, drags.clientY = a.clientY, drags.x = getCss(this, "right"), drags.y = getCss(this, "top"), drags.winHei = $(window).height(), drags.winWid = $(window).width(), $(document).on("mousemove", function (a) {
  233. var e = a.clientX - drags.clientX,
  234. t = a.clientY - drags.clientY;
  235. asideNav.style.top = parseInt(drags.y) + t + "px";
  236. asideNav.style.right = parseInt(drags.x) - e + "px";
  237. })
  238. }).on("mouseup","#aside-nav", function () {
  239. drags.down = !1, $(document).off("mousemove")
  240. });
  241. init();
  242. }
  243. })();