【HACG用脚本】油猴磁链转种子脚本
Written by zumikua
Updated at 2013-11-02 15:17:05 UTC
一个把磁链自动转为种子的下载地址的脚本而已,无任何技术含量可言
```
// ==UserScript==
// @name magnet2torrent
// @namespace magnet_to_torrent
// @description
// @include http://www.hacg.me/*
// @version 1
// @grant none
// @require http://code.jquery.com/jquery-1.8.2.min.js
// ==/UserScript==
$(".entry-content pre").each(function(){
s = $(this).html();
s = s.replace(/magnet:?xt=urn:btih:([a-z0-9]+)$/gm,function(url,hash){
hash = hash.toUpperCase();
return "
就知道撸,撸你麻痹";
});
$(this).html(s);
});
```
使用迅雷的接口,不保证稳定性。
使用方法:
安装完油猴子插件以后去
[这里](http://userscripts.org/scripts/show/181383)
点击右上角的install安装即可