User:Asb/monobook.css

From mediawiki.org

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* supress the person icon by your username */
li#pt-userpage { background: none }

/* use browser prefs for text size and font */
body, #globalWrapper { font: inherit !important; }

/*
** Print view tweaks
** Place all print-specific rules in a @media block.
** using :before and :after it's possible to add formatting 
** this here adds the full href of a link after it for example:
*/
@media print {
  #content a:link:after, 
  #content a:visited:after {
     content: " ( " attr(href) " ) ";
  }
}

/*
** User:Lunchboxhero/monobook.js
** http://en.wikipedia.org/wiki/User:Lunchboxhero/monobook.js
** "This function rewrites ISBN links to an external url, 
** allowing the user to bypass the VERY long Wikipedia:Wikipedia:Book_sources".
*/
function externISBN() {
  for (var i = 0; i < document.links.length; i++) 
    {       
         var ln = document.links[i].href.match(/isbn=(.*)/);
         if (ln) {
           document.links[i].href='http://www.amazon.de/exec/obidos/ASIN/'+RegExp.$1;
         }
    }

}
addOnloadHook(externISBN);