Skip to content

Instantly share code, notes, and snippets.

@bramblex
Last active April 16, 2017 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bramblex/4461fb2e0768a21d42f3533aa3d6c53f to your computer and use it in GitHub Desktop.
Save bramblex/4461fb2e0768a21d42f3533aa3d6c53f to your computer and use it in GitHub Desktop.
A script for cl1024
// ==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