Jump to content

User:Dcljr/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Dcljr (talk | contribs) at 07:41, 16 August 2016 (oh, yeah). 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.
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' );

var autoFormatReplacements = [
  [/^((?:\#|\{\{[Ss]eeds\s*\|\s*\d+\s*\|\s*\d*\s*\}\})\s*\{\{[Ff]lagicon[A-Za-z \|]+?\}\}.+?'''.+?\([Cc]hampions?\))\s*$/mg, "$1'''"],
  [/^((?:\#|\{\{[Ss]eeds\s*\|\s*\d+\s*\|\s*\d*\s*\}\})\s*\{\{[Ff]lagicon[A-Za-z0-9 \|]+\}\}.*?[^']''\([A-Za-z ]+\))\s*$/mg, "$1''"],
  [/^(\s*\|\s*RD\d+-score\d+-\d+\s*=\s*'''\d+(?:<sup>\d+(?:<\/sup>)?)?)\s*$/mg, "$1'''"]
];