User:Cristinac/Unlinking: Difference between revisions
No edit summary |
(→==) |
||
Line 7: | Line 7: | ||
========================== | ========================== | ||
A script that will erase all links on a wikipedia page. | A script that will erase all links on a wikipedia page when the mouse hovers over it. | ||
<source lang="html4strict"> | <source lang="html4strict"> | ||
javascript:(function(){ | javascript:(function(){ |
Revision as of 16:26, 23 January 2015
==============
A script that will erase all links on a wikipedia page when the mouse hovers over it.
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();}
})();