User:Paul Robinson/monobook.js: Difference between revisions
From NARS2000
Jump to navigationJump to search
(Created page with "// Live Preview customization, // edit this to your own liking. wpUserName = 'Rfc1394'; // User name to display in signatures wpShowImages = true; // Enable download...") |
No edit summary |
||
| Line 6: | Line 6: | ||
// Include Live Preview... | // Include Live Preview... | ||
document.write('<script type="text/javascript" src="http:// | document.write('<script type="text/javascript" src="http://wiki.nars2000.org/index.php?title=User:Paul_Robinson/livepreview.js&action=raw&ctype=text/javascript&dontcountme=s"></script>'); | ||
// Now set everything up | // Now set everything up | ||
| Line 22: | Line 22: | ||
document.write('<script type="text/javascript" src="' | document.write('<script type="text/javascript" src="' | ||
+ 'http://en.wikipedia.org/w/index.php?title=User: | + 'http://en.wikipedia.org/w/index.php?title=User:Paul_Robinson/popups.js' | ||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); | + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); | ||
Latest revision as of 11:46, 2 March 2013
// Live Preview customization,
// edit this to your own liking.
wpUserName = 'Rfc1394'; // User name to display in signatures
wpShowImages = true; // Enable downloading and displaying of images
// Include Live Preview...
document.write('<script type="text/javascript" src="http://wiki.nars2000.org/index.php?title=User:Paul_Robinson/livepreview.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// Now set everything up
window.onload = Main;
function Main()
{
LivePreviewInstall();
// You may include here other "extensions"
}
/* This is to keep track of who is using the Live Preview: [[User:Pilaf/livepreview.js]] */
// [[User:Lupin/popups.js]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Paul_Robinson/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// install [[User:Cacycle/wikEd]] in-browser text editor
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// Duplicate top tabs at bottom of page
addOnloadHook(function () {
var tabs = document.getElementById('p-cactions').cloneNode(true);
tabs.id = 'mytabs';
var listitems = tabs.getElementsByTagName('LI');
for (i=0;i<listitems.length;i++) {
if(listitems[i].id) listitems[i].id = 'mytabs-' + listitems[i].id;
}
content = document.getElementById("content"); // Find the content div
content.parentNode.insertBefore(tabs, content.nextSibling); // Place tab list right after content div
});
// End duplicate
// Allow for links to redirect pages to be green
// [[User:Dschwen/highlightredirects.js]] - please include this line
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Dschwen/highlightredirects.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// end redirect colorizer
// Add extra edit buttons
// Script from [[User:MarkS/extraeditbuttons.js]]
importScript('User:MarkS/extraeditbuttons.js'); //[[User:MarkS/extraeditbuttons.js]]
// end add
// from User:Interiot
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// add strikeout button to toolbar
function addStrikeoutButton() {
editingTools = document.getElementById('toolbar');
if (editingTools != null) {
StrikeTextButton = " <a href=\"javascript:insertTags('<s>','</s>','Insert text here');\"><img src=\"http://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png\" alt=\"Strike\" title=\"Strike-through text\"></a>";
editingTools.innerHTML = editingTools.innerHTML + StrikeTextButton;
}
}
window.onload = addStrikeoutButton;
// end strikeout