Jump to content

User:RDF/monobook.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by RDF (talk | contribs) at 18:45, 17 November 2005 (Spirituality 1). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* Add Spirituality links to top of page */

setTimeout("spirituality()", 0);

function spirituality() {
var div = document.createElement("div");

div.innerHTML = '<p style="clear:both; margin:0 3px .8em 3px; text-align: center; margin-top: 0; margin-bottom:.2em; font-size: 105%;"><span style="font-variant: small-caps"> <a  href="/wiki/Portal:Browse" title="Portal:Browse">Portals</a> - <a href="/wiki/Portal:Spirituality" title="Portal:Spirituality">Sp</a> | <a  href="/wiki/Wikipedia:WikiProject Spirituality" title="Wikipedia:WikiProject Spirituality">Project</a></p>'

document.getElementById("content").insertBefore(div, document.getElementsByTagName("h1")[0]);

}