Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: new feature, code tags get added [download] link

by Anonymous Monk
on Aug 22, 2009 at 10:52 UTC ( #790557=note: print w/replies, xml ) Need Help??

in reply to new feature, code tags get added [download] link

Here is a Greasemonkey script
// ==UserScript== // @name hide [download] links for class embed-code-dl // @namespace,2009-08-22:Anonymous%20Monk // @description hides (display none) ugly [download] links // @include* // @include* // @include* // @include* // @include* // @include* // ==/UserScript== //toggleDisplay("tagname","classname"); //toggleDisplay("tagname"); function toggleDisplay(t,c){ var e = document.getElementsByTagName(t); for(var i = 0; i < e.length; i++){ if(c){ if(e[i].className == c) { e[i].style["display"] = ( e[i].style["display"] == "no +ne" ? "inherit" : "none" ); } } else { e[i].style["display"] = ( e[i].style["display"] == "none" +? "inherit" : "none" ); } } } toggleDisplay("div","embed-code-dl");
Here is a bookmarklet. To use, copy below code to html file, open in browser, and drag the link into your bookmarks
<a href="javascript:(function()%7B%20%20function%20toggleDisplay(t,c)% +7Bvar%20e=document.getElementsByTagName(t);for(var%20i=0;i%3Ce.length +;i++)%7Bif(c)%7Bif(e%5Bi%5D.className==c);%7D%7Delse% +t%22:%22none%22;%7D%7D%7DtoggleDisplay(%22div%22,%22embed-code-dl%22) +;%20%20%7D)()">togDisDL</a>
clicking the bookmark toggels hide show for [download] link.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://790557]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2017-11-22 17:51 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (327 votes). Check out past polls.