User:Cristinac/Unlinking: Difference between revisions
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[ | <gallery> | ||
File:Disappearance_act.png | |||
</gallery> | |||
[https://vimeo.com/125053588 video] | |||
========================== | |||
A script that will erase all links on a wikipedia page when the mouse hovers over it. | |||
<source lang="html4strict"> | |||
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();} | |||
})(); | |||
</source> |
Latest revision as of 15:01, 29 April 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();}
})();