Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Here is a Greasemonkey script
// ==UserScript== // @name hide [download] links for class embed-code-dl // @namespace tag:perlmonks.org,2009-08-22:Anonymous%20Monk // @description hides (display none) ugly [download] links // @include http://www.perlmonks.org/* // @include http://www.perlmonks.com/* // @include http://www.perlmonks.net/* // @include http://perlmonks.org/* // @include http://perlmonks.com/* // @include http://perlmonks.net/* // ==/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)%7Be%5Bi%5D.style.display=e% +5Bi%5D.style.display==%22none%22?%22inherit%22:%22none%22;%7D%7Delse% +7Be%5Bi%5D.style.display=e%5Bi%5D.style.display==%22none%22?%22inheri +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.

In reply to Re: new feature, code tags get added [download] link by Anonymous Monk
in thread new feature, code tags get added [download] link by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-18 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found