User:Beleg Tâl/common.js
Appearance
Note: After saving, changes may not occur immediately. Click here to learn how to bypass your browser's cache.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Cmd-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (Cmd-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Clear the cache in Tools → Preferences
For details and instructions about other browsers, see Wikipedia:Bypass your cache.
Code that you insert on this page could contain malicious content capable of compromising your account. If you are unsure whether code you are adding to this page is safe, you can ask at the central discussion page, Scriptorium. The code will be executed when previewing this page under some skins, including Monobook. You can in the interim if you wish to refresh the content sooner under another skin. |
The accompanying .css page for this skin is at User:Beleg Tâl/common.css. |
// Add tabs to Pagespace linking to transcluded pages in Mainspace
mw.loader.load('//en.wikisource.org/w/index.php?title=User:Beleg Tâl/TranscludedIn.js&action=raw&ctype=text/javascript');
// Some kind of LINT checker I guess?
mw.loader.load('//en.wikisource.org/w/index.php?title=User:Samwilson/LinkedLintErrors.js&action=raw&ctype=text/javascript');
// Mass move tool from Wikipedia
mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Plastikspork/massmove.js&action=raw&ctype=text/javascript' ); //[[User:Plastikspork/massmove.js]]
mw.util.addPortletLink("p-tb", "//en.wikisource.org/wiki/Special:Massmove", "Mass move", "p-massmove", "Mass move");
/** TemplateScript: Add several tools useful when proofreading pages in the Page: namespace.
* @see https://en.wikisource.org/wiki/Wikisource:TemplateScript
*/
// TemplateScript base tools
mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:TemplateScript/proofreading.js&action=raw&ctype=text/javascript');
// TemplateScript for various specific works
// mw.loader.load('//en.wikisource.org/w/index.php?title=User:Beleg Tâl/Sonnets.js&action=raw&ctype=text/javascript');
// TemplateScript for typing Greek using Beta code
mw.loader.load('//en.wikisource.org/w/index.php?title=User:Beleg Tâl/Beta.js&action=raw&ctype=text/javascript');
// TemplateScript for typing 'â' and 'š' in the inscription of Behistun
mw.loader.load('//en.wikisource.org/w/index.php?title=User:Beleg Tâl/Behistun.js&action=raw&ctype=text/javascript');
// TemplateScript to add line breaks at end of each line (good for poetry books)
$.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function() {
pathoschild.TemplateScript.add({
name: 'Add line breaks',
category: 'Page tools',
script: function(editor) {
editor
.replace(/\n/g, '<br />\n')
}
});
});
// DATAFY
mw.loader.load('//en.wikisource.org/w/index.php?title=User:Beleg Tâl/Datafy.js&action=raw&ctype=text/javascript');