您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
免验证无视退稿绮罗星
当前为
// ==UserScript== // @name 吐槽补丁 // @description 免验证无视退稿绮罗星 // @icon http://www.tucao.tv/favicon.ico // @author sjmr // @match http://www.tucao.tv/* // @version 1.05 // @grant GM_addStyle // @namespace https://greasyfork.org/users/23790 // ==/UserScript== var $ = unsafeWindow.$; function tucao(){ var a,b,x,s,i; a=$('#player_code>li:first').html(); if(a.indexOf('**')) a=a.split('**'); else a[0]=a; if(a[a.length-1]==='') a.pop(); b=$('#video_part'); s=''; for(i in a){ ii=parseInt(i); x=a[i].split('|'); if(!x[1])x[1]='未命名'; if(x[0])s+='<a href="#'+(ii+1)+'" pid="'+x[0]+'&cid='+$('#player_code>li:last').html()+'-'+i+'" mid="'+$('#player_code').attr('mid')+(ii+1)+'"><p><span>'+(ii+1)+'</span>'+x[1]+'</p></a>'; } b.html('<div id="part_lists">'+s+'<div class="clear"></div></div>'); i=parseInt(location.href.substring(location.href.indexOf('#')+1)); if(isNaN(i))i=0;else i-=1; b.find('a').click(function(){ var s; $this=$(this);$this.siblings('a').removeClass('now');$this.addClass('now'); s='<embed height="492" width="964" src="http://clientupdate.175pt.com/Protect/175Secure/file/MukioPlayerPlus.swf" type="application/x-shockwave-flash" quality="high" allowfullscreen="true" flashvars="." allowscriptaccess="always" AllowNetworking="all"></embed>'; s=s.replace(/(src=\"http.*?swf\?|flashvars=\").*?\"/ig,'$1'+$this.attr('pid')+'"'); $('#player').html(s); if($this.attr('mid').substr(-2,1) == '_' && $this.attr('mid').substr(-1,1) == 1){ $('#show_mini').val('http://www.tucao.tv/mini/'+$this.attr('mid').substr(0,$this.attr('mid').length -2)+'.swf'); }else{ $('#show_mini').val('http://www.tucao.tv/mini/'+$this.attr('mid')+'.swf'); } ii=$this.attr('href').substr($this.attr('href').indexOf('#')+1);if(ii==='')ii='1'; if($this.siblings('a').length)$('#title_part').html('['+ii+'/'+($this.siblings('a').length+1)+']'); if(location.href.indexOf('#')==-1&ii=='1') return false; }).eq(i).click(); if(b.find('a').length<2)b.hide(); else b.show(); } (function (){ 'use strict'; GM_addStyle('#Menu{z-index:99999; position:absolute; left:0px; top:0px; width:120px; height:auto; border:0; margin:0;}'+ '#Biliplus{position:fixed; left:-96px; top:155px;width:80px; background-color:#3388FF; border:3px solid #D8033e; margin:0; padding:5px;}'+ '#Biliplus a{font-size:16px; margin:0; padding:3px; color:white;} '+ '#Btn{position:fixed; left:0; top:155px; width:15px; height:34px; border-width:2px 4px 2px 0px; border-color:#D8033E; background-color:#D8033E; border-style:solid; font:bold 10px; color:#ffffff; margin:0; padding:0;}'); function clickit(){ var btn = document.getElementById("Btn"); var ul = document.getElementById("Biliplus"); if(btn.style.left===""||parseInt(btn.style.left)<10){btn.style.left=96+"px";ul.style.left=0; btn.innerText="◀";} else{btn.style.left=0;ul.style.left=-96+"px"; btn.innerText="▶";} } if (document.cookie.indexOf('tucao_verify') === -1) document.cookie ='tucao_verify=ok;path=/;max-age=31536000;'; var url = window.location.href.toString(); if (url.search(/check\.php\?url=/gi) != -1){ url = url.split('url='); window.location.href = atob(url[1]); return; } if(document.querySelector("#play_ren")){ if(document.querySelector("#video_part")===null){ var html='<div id="video_part"></div><div class="clear"></div>\n<div id="player"></div>'; document.body.innerHTML=document.body.innerHTML.replace(/<div.*?404.*?<\/div>/gi, html); } tucao(); } if(url.search(/play\/h[0-9]{7}/gi) != -1 || url.search(/&id=[0-9]{7}/gi) != -1){ var id = url.match(/[0-9]{7}/gi); var div = document.createElement('div'); div.innerHTML = '<div id="Menu"><div id="Biliplus"><a href="https://www.biliplus.com/play/h'+ id +'/" title="点击浏览 B+ 对应的页面" target="_blank">BiliPlus</a></div><button id="Btn">▶</button></div>'; document.body.appendChild(div); document.querySelector("#Btn").addEventListener("click",clickit,false); } })();