tt25 (owner)

Revisions

gist: 168378 Download_button fork
public
Public Clone URL: git://gist.github.com/168378.git
Embed All Files: show embed
JavaScript #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// ==UserScript==
// @name KillSeesaaSpamLinks
// @description kill seesaa spam links
// @include http://*.seesaa.net/*
// @namespace http://tt25.org/
// @version 1.0.0
// ==/UserScript==
 
// for Opera
window.addEventListener("DOMContentLoaded",function(){
 
var nodes=document.evaluate(
'//a[contains(@href,"ck.jp")]/img/..',
document,null,7,null
);
for(var i=0,len=nodes.snapshotLength; i<len; i++){
var n=nodes.snapshotItem(i);
n.parentNode.replaceChild(
document.createTextNode(n.lastChild.nodeValue),
n
);
}
 
 
},false);