Wiki source code of jquery Styling samples
Version 1.1 by Normann P. Nielsen on 2026/11/15 15:43
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | {{toc/}} |
| 2 | |||
| 3 | === Remove Menubar === | ||
| 4 | |||
| 5 | {{code}} | ||
| 6 | .ajs-menu-bar | ||
| 7 | { | ||
| 8 | display: none; | ||
| 9 | } | ||
| 10 | |||
| 11 | {{/code}} | ||
| 12 | |||
| 13 | === Display all breadcrumbs: === | ||
| 14 | |||
| 15 | {{code}} | ||
| 16 | <script> | ||
| 17 | AJS.toInit(function(){ | ||
| 18 | AJS.$('#ellipsis strong').click(); | ||
| 19 | }); | ||
| 20 | </script> | ||
| 21 | {{/code}} | ||
| 22 | |||
| 23 | === Hide Children === | ||
| 24 | |||
| 25 | {{code}} | ||
| 26 | <script> | ||
| 27 | AJS.toInit(function() { | ||
| 28 | AJS.$("#children-section").css("display","none"); | ||
| 29 | }); | ||
| 30 | </script> | ||
| 31 | {{/code}} | ||
| 32 | |||
| 33 | === Hide Likes and Label Container === | ||
| 34 | |||
| 35 | {{code}} | ||
| 36 | <script> | ||
| 37 | AJS.toInit(function() { | ||
| 38 | AJS.$('#likes-and-labels-container').hide();} | ||
| 39 | </script> | ||
| 40 | {{/code}} | ||
| 41 | |||
| 42 | === Pad External links with Arrow Icon === | ||
| 43 | Download Icon: [[http://www.mos-eisley.dk/download/attachments/28344459/ExternalLinkArrows.jpeg]] | ||
| 44 | |||
| 45 | |||
| 46 | {{code}} | ||
| 47 | <script type="text/javascript"> | ||
| 48 | AJS.toInit(function(){ | ||
| 49 | AJS.$("a[class='external-link']").after(' <img src="/download/attachments/4161541/ExternalLinkArrows.jpeg" alt="External Link">'); | ||
| 50 | }); | ||
| 51 | </script> | ||
| 52 | {{/code}} | ||
| 53 | |||
| 54 | Same, but open in a new window: | ||
| 55 | |||
| 56 | |||
| 57 | {{code}} | ||
| 58 | <script type="text/javascript"> | ||
| 59 | AJS.toInit(function(){ | ||
| 60 | AJS.$("a[class='external-link']").attr("target","_blank").after(' <img src="/download/attachments/4161541/ExternalLinkArrows.jpeg" alt="External Link">'); | ||
| 61 | }); | ||
| 62 | </script> | ||
| 63 | {{/code}} |