User:Cristinac/Unlinking: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<gallery> | <gallery> | ||
File:Disappearance_act.png | File:Disappearance_act.png | ||
</gallery> | </gallery> | ||
========================== | |||
A script that will erase all links on a wikipedia page. | |||
javascript:(function(){ | |||
var newscript =document.createElement('script'); | |||
newscript.type='text/javascript'; | |||
newscript.async=true; | |||
newscript.src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'; | |||
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(newscript); | |||
$("a").hover(something); | |||
function something() | |||
{$(this).hide();} | |||
})(); |
Revision as of 16:24, 23 January 2015
==============
A script that will erase all links on a wikipedia page.
javascript:(function(){ var newscript =document.createElement('script'); newscript.type='text/javascript'; newscript.async=true; newscript.src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'; (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(newscript); $("a").hover(something);
function something() {$(this).hide();}
})();