Last active
April 16, 2017 14:57
-
-
Save bramblex/4461fb2e0768a21d42f3533aa3d6c53f to your computer and use it in GitHub Desktop.
A script for cl1024
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name CL | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @match http://t66y.com/htm_data/* | |
// @copyright 2012+, You | |
// @require http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js | |
// ==/UserScript== | |
var pad = $('<div id="pad" style="position: fixed; top: 0; left: 0; background-color: #EFEFEF"></div>') | |
$('body').prepend(pad) | |
pad.append('<h2>磁力链接</h2><hr />') | |
var timer = setInterval(function(){ | |
var links = $('a[href*="magnet"]') | |
if (links.length > 0) { | |
links.each(function(i, el){ | |
debugger | |
pad.append(el) | |
pad.append('<br/>') | |
}) | |
clearInterval(timer) | |
} | |
}, 300) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment