User:Phantomsteve/global.js
Appearance
From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Phantomsteve (talk | contribs) at 10:24, 4 March 2010 (Create). It may differ significantly from the current version .
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)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
// <source lang="javascript"> // This file contains global JavaScript, loaded on every wiki. // For more information, see <http://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/SynchCrosswiki>. /*############################################### ### Force left-to-right format on RTL wikis ### by [[m:user:Pathoschild]] <http://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/Force_ltr> ###############################################*/ importScriptURI('http://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/Force_ltr.js&action=raw&ctype=text/javascript'); // /*############################################### // ### Ajax sysop // ### by [[m:user:Pathoschild]] // <http://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/Ajax_sysop> // ###############################################*/ // importScriptURI('http://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/Ajax_sysop/experimental.js&action=raw&ctype=text/javascript'); // /*############################################### // ### Regex menu framework: adds a sidebar menu of user-defined scripts. // ### by [[m:user:Pathoschild]] <http://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/Regex_menu_framework> // ###############################################*/ // if(!self['rmf_scripts']) // rmf_scripts = []; // rmf_scripts.push(['bot_done', 'bot_done("done", "re: done")']); // // importScriptURI('http://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/Regex_menu_framework/experimental.js&action=raw&ctype=text/javascript&2'); // // // /************** // * Format local bot request as done // **************/ // function bot_done(message, summary) { // // fix header syntax // editbox.value = editbox.value.replace( /^(=+)\s+(.+?)\s+(1円).+/, '1ドル2ドル1ドル' ); // // // place formatted box & message // editbox.value = editbox.value.replace( /^(.+=)\n([\s\S]+)$/, '1ドル\n<div style="background:#E3F9DF; padding:0 10px; border:1px solid #AAA;">\n2ドル\n: ' + message + '. ~~~\n</div>' ); // // // set edit summary // editreason.value += summary; // } /*############################################### ### UTC clock ### by [[w:User:AzaToth]] ###############################################*/ importScriptURI('http://meta.wikimedia.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript'); // </source>