让专用链破解 Special Links Converter脚本v4.0支持Chrome,并去除后门!
2012-01-31 16:42
169 查看
之前是知道专用链破解 Special Links Converter脚本有后门的,懒得去管,因为平常一直是停用,直到有需要时再启用的。
前阵子该脚本升级为4.0了,升级后不再支持Chrome,让我很苦恼,于是花了点时间来解决这个问题。
经过修改,目前该脚本的功能全部可用,且去除了后门,大家可以放心使用了。
各位需要卸载原有的专用链破解 Special Links Converter脚本,然后将我提供的代码另存为一个以“.user.js”为后缀的文件(文件名随意),然后拖入chrome就可以安装了。
申明:原始脚本版权归原作者所有,本修改版只是供学习交流之用。
ps:我改了一下名字,加了个Ex,以便同原先的脚本区分一下。
前阵子该脚本升级为4.0了,升级后不再支持Chrome,让我很苦恼,于是花了点时间来解决这个问题。
经过修改,目前该脚本的功能全部可用,且去除了后门,大家可以放心使用了。
各位需要卸载原有的专用链破解 Special Links Converter脚本,然后将我提供的代码另存为一个以“.user.js”为后缀的文件(文件名随意),然后拖入chrome就可以安装了。
申明:原始脚本版权归原作者所有,本修改版只是供学习交流之用。
ps:我改了一下名字,加了个Ex,以便同原先的脚本区分一下。
// ==UserScript== // @name 专用链破解 Special Links Converter Ex // @namespace Special Links Converter Ex // @description 可以把迅雷、旋风、快车的专用下载链接破解为真实地址,方便Firefox下载(Xunlei Thunder QQDownload FlashGet qqdl) // @include * // @version 1.0 // ==/UserScript== (function(){ function xpath(query, context){ return document.evaluate(context?(query.indexOf('.')==0?query:'.' + query):query, context || document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); }; function $(q){ return document.querySelector(q); }; // 万能显式连接破解 var linkSelect = xpath('//a[@thunderhref or starts-with(@href,"thunder") or contains(@onclick,"thunder:") or @qhref or starts-with(@href,"qqdl")\ or contains(@onclick,"flashget:") or contains(@onclick,"Flashget") or starts-with(@onclick,"convertFgURL") or starts-with(@href,"flashget") or starts-with(@href,"Flashget")]'); for (var i=0,j=linkSelect.snapshotLength; i<j; i++){ linkSelect.snapshotItem(i).addEventListener('mouseover', function(){ var linkCode = /#|;/.test(this.href) // 是否空href ? (this.getAttribute('thunderhref') || this.getAttribute('qhref') || this.getAttribute('onclick').match(/(?:thunder|flashget|http):[^'"]+/i)[0]) : this.href; this.href = /http:|ftp:/i.test(linkCode) ? linkCode : atob(linkCode.replace(/(?:thunder|flashget|qqdl):\/\/|&.*|\/$/ig, '')).replace(/^AA|ZZ$|\[FLASHGET\]/g, ''); /^thunder|^flashget|^qqdl/i.test(this.innerHTML) && (this.innerHTML = this.href); // 更换链接文本为URL /(?:迅雷|旋风|快车)*/.test(this.title) && (this.title = '专用链接破解成功:'+this.href); // 更换链接title this.innerHTML = this.innerHTML.replace(/迅雷|旋风|快车/, '直接').replace(/专用|用户/g, ''); // 更换专用链接文本 this.removeAttribute('onclick'); this.removeAttribute('oncontextmenu'); this.style.outline = '3px dotted #f00'; }, false); }; // 隐式快车链接,如:skycn linkSelect = xpath('//a[starts-with(@onclick,"convertFgURL")]'); for (var i=0,j=linkSelect.snapshotLength; i<j; i++){ linkSelect.snapshotItem(i).addEventListener('mouseover', function(){ this.href = xpath('//script[contains(.,"var fUrl")]').snapshotItem(0).innerHTML.match(/var fUrl[=\s]+['"]([^'"]+)/i)[1]; this.innerHTML = this.innerHTML.replace(/快车|flashget/i, '直接').replace(/专用|用户/g, ''); this.removeAttribute('onclick'); this.removeAttribute('oncontextmenu'); (this.title == '') && (this.title = '专用链接破解成功:'+this.href); this.style.outline = '3px dotted #f00'; }, false); }; // 隐式迅雷弹出链接,如:piaodown linkSelect = xpath('//script[starts-with(.,"OnDownloadClick")]'); if(!document.title && linkSelect.snapshotLength > 0){ var linkCode = atob(linkSelect.snapshotItem(0).innerHTML.match(/thunder:\/\/([^'"]+)/i)[1]).replace(/^AA|ZZ$/g, ''); document.body.innerHTML = '<a href="'+ linkCode +'" title="by专用链破解 Special Links Converter">专用链接破解成功:'+linkCode +'</a>'; window.clearInterval(2); top.location.href = linkCode; }; // 隐式迅雷链接, gougou if(/down\.gougou\.com\/down\?/i.test(location.href)){ // location.href='javascript:$("#bt_down").attr("href",g_downUrl);void(0);'; eval(String(xpath('//script[contains(.,"g_downUrl")]').snapshotItem(0).innerHTML.match(/var\s*g_downUrl\s*=.*/))); var link = document.getElementById('bt_down'); link.href = /thunder:/i.test(g_downUrl)?atob(g_downUrl.replace('thunder://', '')).replace(/^AA|ZZ$/g, ''):g_downUrl; link.title = '点击直接下载 by专用链破解 Special Links Converter'; link.style.outline = '3px dotted #f00'; link.removeAttribute('onclick'); link.removeAttribute('onmouseover'); link.removeAttribute('oncontextmenu'); }; // 划词破解 document.addEventListener('mouseup', function(e){ var selection = window.getSelection().toString(), r = /(?:thunder|flashget|qqdl|fs2you):\/\/([^'"\s]*)/i; if (e.button == 0 && r.test(selection)){ var linkCode = atob(selection.match(r)[1].replace(/&.*|\/$/g, '')).replace(/^AA|ZZ$|\[FLASHGET\]|\|\d+$/g, ''); !/^http|^ftp/i.test(linkCode) && (linkCode = 'http://' + linkCode); e.target.innerHTML = e.target.innerHTML.replace(/amp;/g, '').replace(selection.match(r)[0], linkCode.link(linkCode)); } }, false); // 破解纳米盘下载链接 if(/d\.namipan\.com\/downfile\//i.test(location.href)){ var n = document.getElementById('not_windows'); n.style.cssText = 'display:block;outline:3px dotted #f00;'; n.title = 'by专用链破解 Special Links Converter'; } if(/d\.namipan\.com\/d\//i.test(location.href)){ var l = xpath('//span[@id="win_os"]/a[last()]').snapshotItem(0), a = document.createElement('a'); a.href = decodeURIComponent(l.href.match(/^javascript:addLink\('(.*)'\)/i)[1]); a.innerHTML = '直接下载'; a.title = 'by专用链破解 Special Links Converter'; a.style.cssText = 'margin-right:30px;outline:3px dotted #f00;'; l.parentNode.insertBefore(a, l); var o = document.getElementById('other_os'); o.style.cssText = 'display:block;outline:3px dotted #f00;'; o.title = 'by专用链破解 Special Links Converter'; }; // 破解rayfile下载链接 if(/\.rayfile\.com\/.*\/files\//i.test(location.href)){ var d = document.getElementById('downloadlink'); if(d){ d.innerHTML = '<a href="" id="_Special" title="直接下载 by专用链破解 Special Links Converter"></a>'; d.className = 'btn_downNow_zh-cn'; document.getElementById('txtnotedisable').id = ''; document.getElementById('txtnotelight').innerHTML = '<span style="color:#f00;">链接破解成功</span>'; document.getElementById('txtnotelight').id = ''; location.href = 'javascript:setKey();document.getElementById("_Special").href=downloads_url[0];void(0);'; } xpath('//*[@id="main1"]/ul/dl/dt/a').snapshotItem(0).style.cssText = 'outline:3px dotted #f00;'; }; // 去除brsbox下载等待时间 if(/www\.brsbox\.com\/filebox\/down\/fc/i.test(location.href)){ location.href='javascript:Tout();void(0);'; var a = xpath('//*[@id="down_area_0"]/a[2]'), d = xpath('//*[@id="truedownid"]'); a.snapshotLength>0 && (a.snapshotItem(0).style.cssText = 'outline:3px dotted #f00;'); d.snapshotLength>0 && (d.snapshotItem(0).title = 'by专用链破解 Special Links Converter'); }; // 去除论坛附件下载等待时间 // linkSelect = xpath('//a[contains(text(),"3")]'); if(/forum\.php\?mod=misc&action=attachcredit/i.test(location.href)){ linkSelect = xpath('//a[contains(.,"秒后下载仍未开始") or contains(.,"秒後下載仍未開始")]'); if(linkSelect.snapshotLength > 0){ window.clearTimeout(2); location.href = linkSelect.snapshotItem(0).href; } }; })();
相关文章推荐
- Mobiscroll脚本破解,去除Trial和注册时间限制
- Chrome 插件 CrxMouse 去除后门优化版
- Google证实Chrome不仅支持插件还支持用户脚本
- Mobiscroll脚本破解,去除Trial和注册时间限制
- 用DIV完美模拟createPopup 弹出窗口(脚本之家修正版),支持Firefox,ie,chrome
- BlazeMeter发布chrome扩展插件,支持JMeter脚本创建
- Chrome最新4.0版本支持GreaseMonkey脚本
- 用DIV完美模拟createPopup 弹出窗口(脚本之家修正版),支持Firefox,ie,chrome
- 兼容IE & Firefox 的脚本改本属性值的检测方法 [ 不支持Chrome ]
- Chrome 插件 CrxMouse 去除后门优化版
- 有道购物助手脚本版,支持chrome,解决bug【Update 0.03】!
- 迅雷,快车,旋风专用链自动破解[Chrome扩展]
- Mobiscroll脚本破解,去除Trial和注册时间限制
- chrome 不支持12px以下字体为题的解决(使用-webkit-transform:scale(0.75))
- 基于Python SimpleHTTPServer.py的修改脚本:HTTP文件服务器,修正中文目录列表,支持视频文件在线播放
- chrome 下载工具支持
- c# 去除字符串中的script脚本
- Video Backgrounds HD for Mac(视频背景) v4.0 破解版
- IE去除“是否停止运行此脚本?此页面上的脚本造成Internet Explore运行速度减慢”的提示信息
- Windows 7 支持4GB以上内存破解工具下载