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 05:29, 16 August 2016 (heh…). 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 = [
  [/^(\#\s*\{\{flag[A-Za-z \|]+\}\}\s.+''\([A-Za-z ]+\))\s*$/mg, "$1''"],
  [/^(\s*\|\s*RD\d+-score\d+-\d+\s*=\s*'''\d+(?:<sup>\d+(?:<\/sup>)?)?)\s*$/mg, "$1'''"]
];