Knowledge (XXG)

User:AndyZ/peerreviewer.js

Source đź“ť

455:"March 7" .replace(/\\]/gi, '\\]') .replace(/\\](?:th|st|nd|rd)/gi, '\\]') .replace(/\\]/gi, '\\]') //Month+day_number piped into number. Preferences do not work. They don't work in sequence because digits in the two dates must be adjacent .replace(/({4})\\](\s?\-?\s?)\\]/gi, '$ 1$ 2$ 3$ 4') //same again but with ndash or mdash instead of hyphen .replace(/({4})\\](\s?&dash\s?)\\]/gi, '$ 1$ 2$ 3$ 4') //same again but with slash instead of hyphen .replace(/({4})\\](\/)\\]/gi, '$ 1$ 2$ 3$ 4') .replace(/({4})\\](\s?\-?\s?)\\]/gi, '$ 1$ 2$ 3$ 4') //same again but with ndash instead of hyphen .replace(/({4})\\](\s?&dash\s?)\\]/gi, '$ 1$ 2$ 3$ 4') //same again but with slash instead of hyphen .replace(/({4})\\](\/)\\]/gi, '$ 1$ 2$ 3$ 4') .replace(/({4})\\](\s?\-?\s?)\\]/gi, '$ 1$ 2$ 3$ 4') //same again but with ndash instead of hyphen .replace(/({4})\\](\s?&dash\s?)\\]/gi, '$ 1$ 2$ 3$ 4') //same again but with slash instead of hyphen .replace(/({4})\\](\/)\\]/gi, '$ 1$ 2$ 3$ 4') .replace(/({4})\\](\s?\-?\s?)\\]/gi, '$ 1$ 2$ 3$ 4') //same again but with ndash instead of hyphen .replace(/({4})\\](\s?&dash\s?)\\]/gi, '$ 1$ 2$ 3$ 4') //same again but with slash instead of hyphen .replace(/({4})\\](\/)\\]/gi, '$ 1$ 2$ 3$ 4') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') // solitary day_numbers .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') // days of the week in full. Optional plurals .replace(/\\]/gi, '$ 1') // days of the week abbreviated. Leave out 'Sun' as potentially valid link to the Sun. Leave out 'SAT' in upper case as potential link to 'Scholastic achievement/aptitude test'. .replace(/\\]/gi, '$ 1') .replace(/\\]/g, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') //4 digit years piped into 2 .replace(/\\]/gi, '$ 1') //year pair: examine characters in link on left for date, examine characters in link on right for date .replace(/((?:..|.|)\]\]\s?,?\-?\s?)\\](.?.?.?.?.?.?)\\](\s?,?\-?\s?\|.|..))/gi, '$ 1$ 2$ 3$ 4$ 5') //year pair: examine characters in link on left for date, avoid links on right .replace(/((?:..|.|)\]\]\s?,?\-?\s?)\\](.?.?.?.?.?.?)\\]({4})/gi, '$ 1$ 2$ 3$ 4$ 5') //year pair: check for line-ends, text on left, avoid links on right .replace(/(\s?,?\-?\s?)\\](.?.?.?.?.?.?)\\]({4}|\n)/gi, '$ 1$ 2$ 3$ 4$ 5') //year pair: avoid links on left, examine characters in link on right for date .replace(/(]{4})\\](.?.?.?.?.?.?)\\](\s?,?\-?\s?\|.|..))/gi, '$ 1$ 2$ 3$ 4$ 5') //year pair: avoid links on left, text on right .replace(/(\s?,?\-?\s?)\\](.?.?.?.?.?.?)\\](\s?,?\-?\s?)/gi, '$ 1$ 2$ 3$ 4$ 5') //year:avoid links on left, hyphen but no digits (to avoid ISO date) in link on right. Currently suspended because it isn't fully tested. //year pair: avoid links on both sides .replace(/(]{4})\\](.?.?.?.?.?.?)\\]({4})/gi, '$ 1$ 2$ 3$ 4$ 5') //'present' .replace(/\\]/gi, '$ 1') //Eliminate 'surprise links' also known as 'easter egg links' .replace(/\{1,30}\|(\d{1,4}s?)\]\]/gi, '$ 1') // Convert degree symbols into ° symbol, ensure preceding space .replace(/°/g, '°') .replace(/Âş/g, '°') // Celsius spelling errors .replace(/celsius/gi, 'Celsius') .replace(/celcius/gi, 'Celsius') //Fix common naming error (be careful with this one) .replace(/centigrade/gi, 'Celsius') //Celsius //.replace(/\\]/gi, '$ 1') //.replace(/\]{1,30})\]\]/gi, '$ 1') //Fahrenheit //.replace(/\\]/gi, '$ 1') //.replace(/\]{1,30})\]\]/gi, '$ 1') //Celsius or Fahrenheit .replace(/°\s()/g, '°$ 1') .replace(/°\s?(celsius)/gi, '°C') .replace(/(\d)\s?(°)/g, '$ 1 $ 2') .replace(/deg()/gi, '°$ 1') .replace(/deg\s()/gi, '°$ 1') .replace(/deg\.?\s?()/gi, '°$ 1') .replace(/degrees?\s()(\W)/gi, '°$ 1$ 2') .replace(/(\d)\s?° ()/g, '$ 1 °$ 2') // Convert &sup to superscript .replace(/²/g, '²') .replace(/³/g, 'Âł') // Convert micro symbol to actual micro symbol, make sure it's spaced .replace(/(\d)\s?(μ|µ|µ)(g|s|m|A|K|mol|cd|rad|sr|Hz|N|J|W|Pa|lm|lx|C|V|O|F|Wb|T|H|S|Bq|Gy|Sv|kat|M)(\W)/g, '$ 1 µ$ 3$ 4') //metre //.replace(/\\]/gi, '$ 1') //.replace(/\\]/gi, '$ 1') //.replace(/\]{1,30})\]\]/gi, '$ 1') //space before 'm' only when lower case .replace(/(\d)\s?m(\W)/g, '$ 1 m$ 2') .replace(/(\d)\-m(\W)/g, '$ 1 m$ 2') .replace(/(\d)\s?sq\.?\s?m(\W)/gi, '$ 1 m²$ 2') .replace(/(\d)\-?sq\-?m(\W)/gi, '$ 1 m²$ 2') .replace(/m²\.\)/gi, 'm²)') // millimetre //.replace(/\\]/gi, '$ 1') //.replace(/\\]/gi, '$ 1') //.replace(/\\]/gi, '$ 1') //.replace(/\]{1,30})\]\]/gi, '$ 1') //.replace(/\]{1,30})\]\]/gi, '$ 1') .replace(/(\d)\s?mm(\W)/g, '$ 1 mm$ 2') .replace(/(\d)\-mm(\W)/g, '$ 1 mm$ 2') // centimetre //.replace(/\\]/gi, '$ 1') //.replace(/\\]/gi, '$ 1') //.replace(/\\]/gi, '$ 1') //.replace(/\]{1,30})\]\]/gi, '$ 1') //.replace(/\]{1,30})\]\]/gi, '$ 1') // kilometre //.replace(/\\]/gi, '$ 1') //.replace(/\\]/gi, '$ 1') //.replace(/\\]/gi, '$ 1') //.replace(/\]{1,30})\]\]/gi, '$ 1') //.replace(/\]{1,30})\]\]/gi, '$ 1') .replace(/(\d)\s?kms?(\W)/gi, '$ 1 km$ 2') .replace(/(\d)\-kms?(\W)/gi, '$ 1 km$ 2') .replace(/(\d) kms?(\W)/gi, '$ 1 km$ 2') //square kilometre //.replace(/\]{1,30})\]\]/gi, '$ 1') .replace(/(\d)\s?sq\.?\s?kms?/gi, '$ 1 km²') .replace(/sq\.?\s?kms?/gi, 'km²') // kilometre per hour .replace(/km\/hr(\W)/gi, 'km/h$ 1') .replace(/kph(\W)/gi, 'km/h$ 1') .replace(/kmph(\W)/gi, 'km/h$ 1') .replace(/(\d)\s?kmh/gi, '$ 1 km/h') .replace(/km\/h/gi, 'km/h') .replace(/(\d)\s?km\/h/gi, '$ 1 km/h') .replace(/(\d)\-km\/h/gi, '$ 1 km/h') .replace(/(\d) km\/h/gi, '$ 1 km/h') // cubic centimetre .replace(/(\d)\s?cm(\W)/gi, '$ 1 cm$ 2') .replace(/(\d)\s?cc(\W)/gi, '$ 1 cc$ 2') .replace(/(\d)\-cc(\W)/gi, '$ 1 cc$ 2') // millilitre .replace(/(\d)\s?ml(\W)/g, '$ 1 ml$ 2') .replace(/(\d)\-ml(\W)/g, '$ 1 ml$ 2') // second .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\]{1,30})\]\]/gi, '$ 1') .replace(/\/sec(\W)/gi, '/s$ 1') .replace(/\/sec\)/gi, '/s)$ 1') .replace(/(\d)\s?ft\/second/gi, '$ 1 ft/s') .replace(/(\d)\s?m\/second/gi, '$ 1 m/s') .replace(/(\d)\s?km\/sec(\W)/gi, '$ 1 km/s$ 2') .replace(/frames\/s(\W)/gi, 'frame/s$ 1') //minute .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\]{1,30})\]\]/gi, '$ 1') // hour .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\]{1,30})\]\]/gi, '$ 1') .replace(/\/hr(\W)/gi, '/h$ 1') //day .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\]{1,30})\]\]/gi, '$ 1') // kilogram .replace(/(kilogram)me/gi, '$ 1') .replace(/(\W)(gram)mes?(\W)/gi, '$ 1$ 2$ 3') //.replace(/\\]/gi, '$ 1') //.replace(/\]{1,30})\]\]/gi, '$ 1') //.replace(/\\]/gi, '$ 1') //.replace(/\\]/gi, '$ 1') //.replace(/\]{1,30})\]\]/gi, '$ 1') .replace(/(\d)\s?kg(\W)/gi, '$ 1 kg$ 2') .replace(/(\d)\-kg(\W)/gi, '$ 1 kg$ 2') // newton metre //.replace(/(\W)Nm(\W)/gi, '$ 1N·m$ 2') // kilowatt .replace(/(\d)\s?kW(\W)/gi, '$ 1 kW$ 2') .replace(/(\d)\-kW(\W)/gi, '$ 1 kW$ 2') // Hertz .replace(/(\d)\s?(G|M|k)?hz/gi, '$ 1 $ 2Hz') .replace(/(\d)\-(G|M|k)?hz/gi, '$ 1 $ 2Hz') .replace(/khz/gi, 'kHz') // ohm .replace(/(\d)\s?(Y|Z|E|P|T|G|M|k|K|h|da|d|c|m|µ|µ|µ|n|p|f|a|z|y)?\s?(&Omega|ohm|Ohm)s?(\W)/g, '$ 1 $ 2O$ 4') // pound weight //.replace(/(\d)\s?(\\])/gi, '$ 1 lb') //.replace(/\]{1,30})\]\]/gi, '$ 1') .replace(/(\d)\s?lbs?/gi, '$ 1 lb') .replace(/(\d\+?)\s?lbs?/gi, '$ 1 lb') .replace(/(\d) lbs?/gi, '$ 1 lb') .replace(/(\d)\slb.\)/gi, '$ 1 lb)') //inch //.replace(/\\]/gi, '$ 1') //.replace(/\\]/gi, '$ 1') //.replace(/\]{1,30})\]\]/gi, '$ 1') //.replace(/\]{1,30})\]\]/gi, '$ 1') //foot //.replace(/\]{1,30})\]\]/gi, '$ 1') .replace(/(\d)\s?ft(\W)/gi, '$ 1 ft$ 2') .replace(/(\d)\-ft(\W)/gi, '$ 1 ft$ 2') .replace(/(\W)ft\.\)/gi, '$ 1ft)') // square foot .replace(/sq\.?\s?ft(\W)/gi, 'sq ft$ 1') // foot and inch //.replace(/({1,4})(\d{1,4})\s?\s?(\d{1,3})\s?()/g, '$ 1$ 2 ft $ 3 in$ 4') .replace(/(ength{1,3})(\d{1,4})\s?\s?(\d{1,3})\s?/gi, '$ 1$ 2 ft $ 3 in') .replace(/(idth{1,3})(\d{1,4})\s?\s?(\d{1,3})\s?/gi, '$ 1$ 2 ft $ 3 in') .replace(/(\s?\d{1,4})\s?\s?(\d{1,3})\s?()/g, '$ 1 ft $ 2 in$ 3') .replace(/(\d)\s?ft\s?(\d{1,3})\s?in/gi, '$ 1 ft $ 2 in') // yard .replace(/(\d)\s?yds(\W)/gi, '$ 1 yd$ 2') .replace(/(\d) yds(\W)/gi, '$ 1 yd$ 2') .replace(/sq\.?\s?yds?/gi, 'sq yd') .replace(/yd\.\)/gi, 'yd)') // mile and mile per hour //.replace(/\]{1,30})\]\]/gi, '$ 1') //.replace(/\\]/gi, '$ 1') .replace(/m\.p\.h\.(\W)/g, 'mph$ 1') .replace(/(\W)mph(\W)/gi, '$ 1mph$ 2') .replace(/(\d)\s?mph/gi, '$ 1 mph') .replace(/(\d)\-mph/gi, '$ 1 mph') // square mile .replace(/sq\.?\s?mi/gi, 'sq mi') // foot pound .replace(/ftlbs?(\W)/gi, 'ft·lbf$ 1') .replace(/ftlb(\W)/gi, 'ft·lbf$ 1') .replace(/ftlbs/gi, 'ft·lbf') .replace(/ftlbf/gi, 'ft·lbf') .replace(/ftlbff/gi, 'ft·lbf') // Give digital value a percent symbol '%' instead of word .replace(/(\d)\s?per ?cent()/gi, '$ 1%$ 2') .replace(/(\d)\-per ?cent()/gi, '$ 1%$ 2') // knot .replace(/(\d)\s?kts(\W)/gi, '$ 1 knots$ 2') .replace(/(\d)\s?knt(\W)/gi, '$ 1 knots$ 2') // horsepower .replace(/(\d)\s?hp(\W)/gi, '$ 1 hp$ 2') .replace(/(\d)\s?bhp/gi, '$ 1 bhp') .replace(/(\d)\s?shp/gi, '$ 1 shp') // rpm .replace(/(\d)\s?rpm/gi, '$ 1 rpm') .replace(/(\d)\-rpm/gi, '$ 1 rpm') // decibel .replace(/(\d)\s?(dB)\b/g, '$ 1 $ 2') // bits per second .replace(/()(bps|bits?\/s|b\/s)/g, '$ 1bit/s') .replace(/(\d)\s?(bps)/gi, '$ 1 bit/s') .replace(/(\d) bps/gi, '$ 1 bit/s') .replace(/bits?\/sec(\W)/gi, 'bit/s$ 1') // bytes per second .replace(/()(Bps|bytes?\/s)/g, ' $ 1B/s') .replace(/bytes?\/s(\W)/gi, 'B/s$ 1') // capitalization of prefix with bits and bytes .replace(/K(bit|B)\/s/g, 'k$ 1/s') .replace(/m(bit|B)\/s/g, 'M$ 1/s') .replace(/g(bit|B)\/s/g, 'G$ 1/s') // space with bits and bytes .replace(/(\d)\s?(k|M|G)(bit|B)/g, '$ 1 $ 2$ 3') // Common error with bits and bytes .replace(/mibi(bit|byte)/g, 'mebi$ 1') //Remove 'Easter egg' diversions (linking unit name to orders of magnitude articles) .replace(/\]{1,50})\]\]/gi, '$ 1') .replace(/\{1,30}\)\|(]{1,50})\]\]/gi, '$ 1') // Convert degree symbols into ° symbol, ensure preceding space .replace(/°/g, '°') .replace(/Âş/g, '°') .replace(/°\s?()/g, '°$ 1') .replace(/°\s?(celsius)/gi, '°C') .replace(/(\d)\s?(°)/g, '$ 1 $ 2') //Fix spelling errors .replace(/celsius/gi, 'Celsius') .replace(/celcius/gi, 'Celsius') //Fix common naming error (be careful with this one) .replace(/centigrade/gi, 'Celsius') // Convert &sup into superscript ² symbol .replace(/²/g, '²') .replace(/³/g, 'Âł') // Convert the word ohm(s) or the html entity into the actual O symbol (Omega, not the actual ohm symbol &#8486) and make sure it is spaced .replace(/(\d)\s?(Y|Z|E|P|T|G|M|k|K|h|da|d|c|m|µ|µ|µ|n|p|f|a|z|y)?\s?(&Omega|ohm|Ohm)s?()/g, '$ 1 $ 2O$ 4') // Convert various micro symbols into the actual micro symbol, make sure it's spaced .replace(/(\d)\s?(μ|µ|µ)(g|s|m|A|K|mol|cd|rad|sr|Hz|N|J|W|Pa|lm|lx|C|V|O|F|Wb|T|H|S|Bq|Gy|Sv|kat|M)()/g, '$ 1 Âµ$ 3$ 4') // Convert capital K to lowercase k in units .replace(/(\d)\s?K(g|s|m|A|K|mol|cd|rad|sr|Hz|N|J|W|Pa|lm|lx|C|V|O|F|Wb|T|H|S|Bq|Gy|Sv|kat|M)()/g, '$ 1 k$ 2$ 3') .replace(/(\d)\-K(g|s|m|A|K|mol|cd|rad|sr|Hz|N|J|W|Pa|lm|lx|C|V|O|F|Wb|T|H|S|Bq|Gy|Sv|kat|M)()/g, '$ 1 k$ 2$ 3') .replace(/(\d) K(g|s|m|A|K|mol|cd|rad|sr|Hz|N|J|W|Pa|lm|lx|C|V|O|F|Wb|T|H|S|Bq|Gy|Sv|kat|M)()/g, '$ 1 k$ 2$ 3') // Hertz .replace(/(\d)\s?(Y|Z|E|P|T|G|M|k|K|h|da|d|c|m|µ|µ|µ|n|p|f|a|z|y)?hz/gi, '$ 1 $ 2Hz') .replace(/(\d)\-(Y|Z|E|P|T|G|M|k|K|h|da|d|c|m|µ|µ|µ|n|p|f|a|z|y)?hz/gi, '$ 1 $ 2Hz') // Fix kilometres .replace(/(\d)\s?kms?()/gi, '$ 1 km$ 2') .replace(/(\d)\-kms?()/gi, '$ 1 km$ 2') .replace(/(\d) kms?()/gi, '$ 1 km$ 2') .replace(/(\d)\s?sq\.?\s?kms?/gi, '$ 1 km²') .replace(/sq\.?\s?kms?/gi, 'km²') .replace(/(\d)\s?sq\.?\s?m()/gi, '$ 1 m²$ 2') .replace(/m²\.\)/gi, 'm²)') // Standardise kilometres per hour .replace(/km\/hr/gi, 'km/h') .replace(/kph/gi, 'km/h') .replace(/kmph/gi, 'km/h') .replace(/(\d)\s?kmh/gi, '$ 1 km/h') .replace(/km\/h/gi, 'km/h') .replace(/(\d)\s?km\/h/gi, '$ 1 km/h') .replace(/(\d)\-km\/h/gi, '$ 1 km/h') .replace(/(\d) km\/h/gi, '$ 1 km/h') // Standardise 'per second' .replace(/(\d)\s?ft\/second/gi, '$ 1 ft/s') .replace(/(\d)\s?ft\/sec/gi, '$ 1 ft/s') .replace(/(\d)\s?m\/second/gi, '$ 1 m/s') .replace(/(\d)\s?m\/sec/gi, '$ 1 m/s') .replace(/(\d)\s?km\/sec/gi, '$ 1 km/s') // Space before horsepower symbol .replace(/(\d)\s?hp/gi, '$ 1 hp') .replace(/(\d)\s?bhp/gi, '$ 1 bhp') .replace(/(\d)\s?shp/gi, '$ 1 shp') // miles per hour .replace(/m\.p\.h\./gi, 'mph') .replace(/mph()/gi, 'mph$ 1') .replace(/(\d)\s?mph/gi, '$ 1 mph') .replace(/(\d)\-mph/gi, '$ 1 mph') // Standardise symbol for pounds .replace(/(\d)\s?lbs?/gi, '$ 1 lb') .replace(/(\d\+?)\s?lbs?/gi, '$ 1 lb') .replace(/(\d) lbs?/gi, '$ 1 lb') .replace(/(\d)\s?(\\])/gi, '$ 1 \\]') // Standardise symbol for newton metres //.replace(/(N•m)/gi, 'N·m') // Standardise symbol for kilowatts .replace(/(\d)\s?kW()/g, '$ 1 kW$ 2') .replace(/(\d)\-kW()/g, '$ 1 kW$ 2') // Standardise symbol for foot pounds .replace(/ftlb/gi, 'ft·lbf') .replace(/ftlbf/gi, 'ft·lbf') .replace(/ftlbff/gi, 'ft·lbf') .replace(/ftlb\s/gi, 'ft·lbf ') //the next two suspended until solution is found for wing loading (i.e. pounds per square foot) //.replace(/lbft/gi, 'ft·lbf') //.replace(/lbft/gi, 'ft·lbf') // Symbols for feet and inches .replace(/(\s)(\d{1,4})\s?\s?(\d{1,2})\s?/g, '$ 1$ 2 ft $ 3 in') .replace(/(\d{1,4})\s?\s?(\d{1,2})\s?/g, '$ 1 ft $ 2 in') .replace(/(\d)\s?ft\s(\d)\s?in/gi, '$ 1 ft $ 2 in') .replace(/(\d)\s?feet/gi, '$ 1 feet') .replace(/(\d)\s?foot/gi, '$ 1 foot') .replace(/(\d)\s?knots/gi, '$ 1 knots') .replace(/(\d)\s?nmi/gi, '$ 1 nmi') .replace(/(\d)\s?nm/gi, '$ 1 nm') //Symbols for square feet .replace(/sq\.?\s?ft?/gi, 'sq ft') .replace(/ft\.\)/gi, 'ft)') // Give digital value a percent symbol '%' instead of word .replace(/(\d)\s?per ?cent()/gi, '$ 1%$ 2') .replace(/(\d)\-per ?cent()/gi, '$ 1%$ 2') // Add a space before dB .replace(/(\d)\s?(dB)\b/g, '$ 1 $ 2') // Add a space before several units that were missed before //.replace(/(\d)\s?(G|M|k|K|h|da|d|c|m|µ|n)?(g|m|Hz|N|W|Pa|V|O|F|)()/g, '$ 1 $ 2$ 3$ 4') // bps or b/s or bits/s --: --> 310:
document.title.indexOf("Editing ") == 0){ $ (function () { mem = document.getElementById("wpTextbox1").value; JSpeerreview(); if(mem != document.getElementById("wpTextbox1").value) document.getElementById('wpSave').click(); }); } if(mw.config.get('wgPageName').indexOf("Knowledge (XXG):Peer_review/Automated/") != -1 && document.title.indexOf("Editing ") == 0){ $ (function () { document.getElementById('wpSummary').value += "new automated PR requests"; }); } if((document.location.href.indexOf("action=edit")!=-1) && (mw.config.get('wgNamespaceNumber') === 0)){ $ (JSpeerreview); } if(mw.config.get('wgNamespaceNumber') === 4 && mw.config.get('wgTitle').indexOf("Peer review/Automated/") !== -1 && /\d{4}/.test(mw.config.get('wgTitle')) && document.editform){ if(document.getElementById("wpTextbox1").value == ""){ document.getElementById("wpTextbox1").value = "{"+"{Knowledge (XXG):Peer review/Automated/header}}\n==Requests==\n{"+"{Knowledge (XXG):Peer review/Automated/foot}}"; document.getElementById('wpSummary').value += "Starting new subpage for automated peer reviews"; document.getElementById('wpSave').click(); } } if(mw.config.get('wgNamespaceNumber') === 5 && mw.config.get('wgTitle').indexOf("Peer review/Automated/") !== -1 && /\d{4}/.test(mw.config.get('wgTitle')) && document.editform){ if(document.getElementById("wpTextbox1").value == ""){ document.getElementById("wpTextbox1").value = "#redirect ]"; document.getElementById('wpSummary').value += "Redirect to ]"; document.getElementById('wpSave').click(); } } if(mw.config.get('wgPageName') === "User:VeblenBot/C/Requests_for_peer_review" && document.location.href.indexOf("edit") != -1) { mw.loader.using( 'mediawiki.util ').done( function() { var link = mw.util.addPortletLink('p-'+toolbar_PR, '', 'add notices', 'ca-addmsg', 'Goes through articles, add little notices regarding auto-PRs', '', ''); $ (link).click( function(event) { event.preventDefault(); askAddMsg(); } ); } ); } // if(wgPageName == "Knowledge (XXG):Peer_review" && document.location.href.indexOf("edit") != -1) // mw.util.addPortletLink('p-'+toolbar_PR, 'javascript:askAddMsg()', 'add notices', 'ca-addmsg', 'Goes through articles, add little notices regarding auto-PRs', '', ''); } if(maintain2_PR){ if(mw.config.get('wgTitle').indexOf("Peer review/") !== -1 && mw.config.get('wgTitle').indexOf("Automated") === -1 && mw.config.get('wgNamespaceNumber') === 4){ $ (function () { mem = document.getElementById("wpTextbox1").value; JSpeerreview(); if(mem != document.getElementById("wpTextbox1").value) document.getElementById('wpSave').click(); }); } if(mw.config.get('wgPageName').indexOf("Knowledge (XXG):Peer_review/Automated/") !== -1 && document.title.indexOf("Editing ") === 0){ $ (function () { document.getElementById('wpSummary').value += "new automated PR requests"; }); } if(mw.config.get('wgNamespaceNumber') === 4 && mw.config.get('wgTitle').indexOf("Peer review/Automated/") !== -1 && /\d{4}/.test(mw.config.get('wgTitle')) && document.editform){ if(document.getElementById("wpTextbox1").value == ""){ document.getElementById("wpTextbox1").value = "{"+"{Knowledge (XXG):Peer review/Automated/header}}\n==Requests==\n{"+"{Knowledge (XXG):Peer review/Automated/foot}}"; document.getElementById('wpSummary').value += "Starting new subpage for automated peer reviews"; document.getElementById('wpSave').click(); } } } // ENDFILE maintainPRA.js // ************************* ///_///_/// // END PEER REVIEWING SCRIPT //|_)/|_)// // ************************* //|///| \// function instaPreview(){ if(document.getElementById('InstaViewResponse').style.display === "none"){ InstaViewPR.dump(output_PR, 'InstaViewResponse'); document.getElementById('instaview_button').style.width = 150; document.getElementById('instaview_button').value = "Hide instaview"; document.getElementById('InstaViewResponse').style.display = "block"; document.getElementById('InstaViewResponse').style.background = "white"; document.getElementById('InstaViewResponse').style.border = "2px solid orange"; document.getElementById('theFeedback').style.width = width4_PR+"px" } else{ document.getElementById('instaview_button').style.width = 150; document.getElementById('instaview_button').value = "Instaview"; document.getElementById('InstaViewResponse').innerHTML = ""; document.getElementById('InstaViewResponse').style.display = "none"; } } if(showInstaview_PR){ $ (function(){ if (document.getElementById('editpage-copywarn')) { var oldPreview = document.getElementById('wpPreview'); var newPreview = document.createElement('input'); newPreview.setAttribute('type', 'button'); newPreview.setAttribute('style', 'font-style: italic'); newPreview.setAttribute('value', 'InstaView'); newPreview.setAttribute('onclick', "InstaViewPR.dump('wpTextbox1', 'InstaViewDump')"); oldPreview.parentNode.insertBefore(newPreview, oldPreview); oldPreview.parentNode.innerHTML += '<div: -->
442:(i % 32)) & 0xFF); return output; } function binl_md5(x, len) { x |= 0x80 << ((len) % 32); x = len; var a = 1732584193; var b = -271733879; var c = -1732584194; var d = 271733878; for(var i = 0; i < x.length; i += 16) { var olda = a; var oldb = b; var oldc = c; var oldd = d; a = md5_ff(a, b, c, d, x, 7 , -680876936); d = md5_ff(d, a, b, c, x, 12, -389564586); c = md5_ff(c, d, a, b, x, 17, 606105819); b = md5_ff(b, c, d, a, x, 22, -1044525330); a = md5_ff(a, b, c, d, x, 7 , -176418897); d = md5_ff(d, a, b, c, x, 12, 1200080426); c = md5_ff(c, d, a, b, x, 17, -1473231341); b = md5_ff(b, c, d, a, x, 22, -45705983); a = md5_ff(a, b, c, d, x, 7 , 1770035416); d = md5_ff(d, a, b, c, x, 12, -1958414417); c = md5_ff(c, d, a, b, x, 17, -42063); b = md5_ff(b, c, d, a, x, 22, -1990404162); a = md5_ff(a, b, c, d, x, 7 , 1804603682); d = md5_ff(d, a, b, c, x, 12, -40341101); c = md5_ff(c, d, a, b, x, 17, -1502002290); b = md5_ff(b, c, d, a, x, 22, 1236535329); a = md5_gg(a, b, c, d, x, 5 , -165796510); d = md5_gg(d, a, b, c, x, 9 , -1069501632); c = md5_gg(c, d, a, b, x, 14, 643717713); b = md5_gg(b, c, d, a, x, 20, -373897302); a = md5_gg(a, b, c, d, x, 5 , -701558691); d = md5_gg(d, a, b, c, x, 9 , 38016083); c = md5_gg(c, d, a, b, x, 14, -660478335); b = md5_gg(b, c, d, a, x, 20, -405537848); a = md5_gg(a, b, c, d, x, 5 , 568446438); d = md5_gg(d, a, b, c, x, 9 , -1019803690); c = md5_gg(c, d, a, b, x, 14, -187363961); b = md5_gg(b, c, d, a, x, 20, 1163531501); a = md5_gg(a, b, c, d, x, 5 , -1444681467); d = md5_gg(d, a, b, c, x, 9 , -51403784); c = md5_gg(c, d, a, b, x, 14, 1735328473); b = md5_gg(b, c, d, a, x, 20, -1926607734); a = md5_hh(a, b, c, d, x, 4 , -378558); d = md5_hh(d, a, b, c, x, 11, -2022574463); c = md5_hh(c, d, a, b, x, 16, 1839030562); b = md5_hh(b, c, d, a, x, 23, -35309556); a = md5_hh(a, b, c, d, x, 4 , -1530992060); d = md5_hh(d, a, b, c, x, 11, 1272893353); c = md5_hh(c, d, a, b, x, 16, -155497632); b = md5_hh(b, c, d, a, x, 23, -1094730640); a = md5_hh(a, b, c, d, x, 4 , 681279174); d = md5_hh(d, a, b, c, x, 11, -358537222); c = md5_hh(c, d, a, b, x, 16, -722521979); b = md5_hh(b, c, d, a, x, 23, 76029189); a = md5_hh(a, b, c, d, x, 4 , -640364487); d = md5_hh(d, a, b, c, x, 11, -421815835); c = md5_hh(c, d, a, b, x, 16, 530742520); b = md5_hh(b, c, d, a, x, 23, -995338651); a = md5_ii(a, b, c, d, x, 6 , -198630844); d = md5_ii(d, a, b, c, x, 10, 1126891415); c = md5_ii(c, d, a, b, x, 15, -1416354905); b = md5_ii(b, c, d, a, x, 21, -57434055); a = md5_ii(a, b, c, d, x, 6 , 1700485571); d = md5_ii(d, a, b, c, x, 10, -1894986606); c = md5_ii(c, d, a, b, x, 15, -1051523); b = md5_ii(b, c, d, a, x, 21, -2054922799); a = md5_ii(a, b, c, d, x, 6 , 1873313359); d = md5_ii(d, a, b, c, x, 10, -30611744); c = md5_ii(c, d, a, b, x, 15, -1560198380); b = md5_ii(b, c, d, a, x, 21, 1309151649); a = md5_ii(a, b, c, d, x, 6 , -145523070); d = md5_ii(d, a, b, c, x, 10, -1120210379); c = md5_ii(c, d, a, b, x, 15, 718787259); b = md5_ii(b, c, d, a, x, 21, -343485551); a = safe_add(a, olda); b = safe_add(b, oldb); c = safe_add(c, oldc); d = safe_add(d, oldd); } return Array(a, b, c, d); } function md5_cmn(q, a, b, x, s, t){ return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b); } function md5_ff(a, b, c, d, x, s, t){ return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t); } function md5_gg(a, b, c, d, x, s, t){ return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t); } function md5_hh(a, b, c, d, x, s, t){ return md5_cmn(b ^ c ^ d, a, b, x, s, t); } function md5_ii(a, b, c, d, x, s, t){ return md5_cmn(c ^ (b | (~d)), a, b, x, s, t); } function safe_add(x, y) { var lsw = (x & 0xFFFF) + (y & 0xFFFF); var msw = (x : --> 224:)?\s(of\s)?(january|february|march|april|may|june|july|august|september|october|november|december)/gi for(i=0;i<dateth.length;i++){if(dateth.test(inputText_PR)) check_th = true;} if(check_th) outputText_PR+="\n{{subst:User:AndyZ/PR/dateth}}"; // -------------------- -------------------- // checks for correct MOS heading styles (]) // -------------------- -------------------- //----------* Articles ("the", "a", "an") at beginning of heading if(inputText_PR.indexOf("==The ") != -1 || inputText_PR.indexOf("== The ") != -1 || inputText_PR.indexOf("==the ") != -1 || inputText_PR.indexOf("== the ") != -1 || inputText_PR.indexOf("== A ") != -1 || inputText_PR.indexOf("==A ") != -1 || inputText_PR.indexOf("==a ") != -1 || inputText_PR.indexOf("==a ") != -1 || inputText_PR.indexOf("==An ") != -1 || inputText_PR.indexOf("== An ") != -1 || inputText_PR.indexOf("==an ") != -1 || inputText_PR.indexOf("== an ") != -1) outputText_PR+="\n{{subst:User:AndyZ/PR/headingthe}}"; //----------* Link in headings if(/==.{0,}\\].{0,}==/gi.test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/headinglink}}"; //----------* Title repeated in headings var regex_headre = new RegExp("==.{0,}" + mw.config.get('wgTitle').replace(/\s\(.*\)/,"") + ".{0,}==","gi") if(regex_headre.test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/headingre}}"; //----------* Special characters in headings if(/==.*(\|]\]]|&|\+|\{|\}).*==/gi.test(inputText_PR)) outputText_PR+="\n*Per ], avoid using special characters (ex: &+{}) in headings."; //----------* Capitalization for common headings if(/==\s?(See\sAlso|External\sLinks?|Works?\sCited|Further\sReadings?|History\sOf\s.{2,}|.{2,}\sAnd\s.{2,})\s?==/g .test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/headingcap}}"; //----------* How to, Trivia section if(/==\s?(howto\s.*)\s?==/gi.test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/how}}"; if(/==\s?(trivia|other\sfact|miscellaneous|interesting\s)/gi.test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/trivia}}"; //----------* Order of last sections (WP:LAYOUT) (see also - references - external links) var refsection_s = new Array("==Reference","==Source","==Footnote","==Cit","==Note","== Reference","== Source","== Footnote","== Cit","== Note"), extlink_s = new Array("==External link","==External Link","== External Link","== External link"), seealso_s = new Array("==See also","== See also","==See Also","== See Also"), refsection = 0, extlink = 0, seealso = 0, check_gtl = true; //find sections for(i=0;i<seealso_s.length;i++){if(inputText_PR.indexOf(seealso_s)!=-1) seealso = inputText_PR.indexOf(seealso_s);} for(i=0;i<refsection_s.length;i++){if(inputText_PR.indexOf(refsection_s)!=-1) refsection = inputText_PR.indexOf(refsection_s);} for(i=0;i<extlink_s.length;i++){if(inputText_PR.indexOf(extlink_s)!=-1) extlink = inputText_PR.indexOf(extlink_s);} if(seealso && refsection && (refsection < seealso)) check_gtl = false; if(seealso && extlink && (extlink < seealso)) check_gtl = false; if(refsection && extlink && (extlink < refsection)) check_gtl = false; if(!check_gtl) outputText_PR+="\n{{subst:User:AndyZ/PR/gtl}}" // categories if(! /\\]/gi.test(inputText_PR)) outputText_PR += "\n*This article does not have any ]. Please categorize it with relevant <code: --> 304:"; var newPage_PR = window.open("//en.wikipedia.org/","winName"); newPage_PR.document.write(PRresult); newPage_PR.document.close(); } // -------------------- // show and hide results // -------------------- function hide_PR(){var d=document; d.getElementById("theFeedback").style.display = "none"; d.getElementById("restore").style.display = "block"; } function show_PR(){var d=document; d.getElementById("theFeedback").style.display = "block"; d.getElementById("restore").style.display = "none"; } function toJSpeerreview(){ if(document.title.indexOf("Editing ") == 0) JSpeerreview(); else window.open( mw.config.get('wgScript') + '?title='+mw.config.get('wgPageName')+'&action=edit&fakeaction=displayPR','Edit'); } // STARTFILE: autopr.js function pr() { var pagename = document.editform.action.substring(pagename.indexOf('title=') + 6,pagename.lastIndexOf('&action=submit')); window.open( mw.config.get('wgScript') + '?title=Talk:' + unescape(pagename) + '&action=edit&fakeaction=prtemp','Talk', 'status,toolbar,location,menubar,directories,resizeable,scrollbars'); window.open( mw.config.get('wgScript') + '?title=Knowledge (XXG):Peer_review/' + unescape(pagename) + '&action=edit&fakeaction=prsub&faketarget=' + unescape(pagename),'PRnom', 'status,toolbar,location,menubar,directories,resizeable,scrollbars'); window.open( mw.config.get('wgScript') + '?title=Knowledge (XXG):Peer_review&action=edit&fakeaction=prlist&faketarget=' + unescape(pagename), 'PRlisting', 'status,toolbar,location,menubar,directories,resizeable,scrollbars'); } function autopr() { if (document.title.indexOf('Editing ') == 0) { var theaction = ''; var target = ''; if (location.search) { var l = location.search.substring(1).split('&'); for (var i = 0; i < l.length; ++i) { var eq = l.indexOf('='); var name = l.substring(0, eq); if (name == 'fakeaction') theaction = l.substring(eq + 1); else if (name == 'faketarget') target = unescape(l.substring(eq + 1)).replace(/_/g, ' '); } } if (theaction == 'prlist') { req = document.editform.wpTextbox1.value.indexOf("{{Knowledge (XXG):Peer review/"); document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.substring(0,req) + '{{Knowledge (XXG):Peer review/' + target + '}}\n' + document.editform.wpTextbox1.value.substring(req,document.editform.wpTextbox1.value.length); document.editform.wpSummary.value = ']'; } else if (theaction == 'prsub'){ if (document.editform.wpTextbox1.value.length : --> 312:'; oldPreview.value = 'Classic Preview'; } }); } // STARTFILE: livepreview.js /* * InstaView - a Mediawiki to HTML converter in JavaScript * Version 0.6.1 * Copyright (C) Pedro Fayolle 2005-2006 * http://en.wikipedia.org/User:Pilaf * Distributed under the BSD license *----------* For full comments/documentation, see ] */ var InstaViewPR = {} // options InstaViewPR.conf = { user: {}, wiki: { lang: 'en', interwiki: 'ab|aa|af|ak|sq|als|am|ang|ar|an|arc|hy|roa-rup|as|ast|av|ay|az|bm|ba|eu|be|bn|bh|bi|bs|br|bg|my|ca|ch|ce|chr|chy|ny|zh|zh-tw|zh-cn|cho|cv|kw|co|cr|hr|cs|da|dv|nl|dz|en|eo|et|ee|fo|fj|fi|fr|fy|ff|gl|ka|de|got|el|kl|gn|gu|ht|ha|haw|he|hz|hi|ho|hu|is|io|ig|id|ia|ie|iu|ik|ga|it|ja|jv|kn|kr|csb|ks|kk|km|ki|rw|rn|tlh|kv|kg|ko|kj|ku|ky|lo|la|lv|li|ln|lt|jbo|nds|lg|lb|mk|mg|ms|ml|mt|gv|mi|minnan|mr|mh|zh-min-nan|mo|mn|mus|nah|na|nv|ne|se|no|nn|oc|or|om|pi|fa|pl|pt|pa|ps|qu|ro|rm|ru|sm|sg|sa|sc|gd|sr|sh|st|tn|sn|scn|simple|sd|si|sk|sl|so|st|es|su|sw|ss|sv|tl|ty|tg|ta|tt|te|th|bo|ti|tpi|to|tokipona|ts|tum|tr|tk|tw|uk|ur|ug|uz|ve|vi|vo|wa|cy|wo|xh|ii|yi|yo|za|zu', default_thumb_width: 180 }, paths: { articles: '/', math: '/math/', images: '', images_fallback: 'http://upload.wikimedia.org/wikipedia/commons/', magnify_icon: 'skins/common/images/magnify-clip.png' }, locale: { user: 'User', image: 'Image', category: 'Category', months: } } // options with default values or backreferences with (InstaViewPR.conf) { user.name = user.name || mw.config.get('wgUserName') || 'Wikipedian' user.signature = ']' paths.images = 'http://upload.wikimedia.org/wikipedia/' + wiki.lang + '/' } // define constants InstaViewPR.BLOCK_IMAGE = new RegExp('^\\[\\['+InstaViewPR.conf.locale.image+':.*?\\|.*?(?:frame|thumbnail|thumb|none|right|left|center)', 'i'); InstaViewPR.dump = function(from, to) { if (typeof from == 'string') from = document.getElementById(from) if (typeof to == 'string') to = document.getElementById(to) to.innerHTML = this.convert(from.value) } InstaViewPR.convert = function(wiki) { var ll = (typeof wiki == 'string')? wiki.replace(/\r/g,'').split(/\n/): wiki, // lines of wikicode o='', // output p=0, // para flag $ r // result of passing a regexp to $ () // some shorthands function remain() { return ll.length } function sh() { return ll.shift() } function ps(s) { o+=s } // push function f() { var i=1,a=arguments,f=a,o='',c,p for (;i<a.length; i++) if ((p=f.indexOf('?'))+1) { // allow character escaping i -= c=f.charAt(p+1)=='?'?1:0 o += f.substring(0,p)+(c?'?':a) f=f.substr(p+1+c) } else break; return o+f } function html_entities(s) { return s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/: --> 458:
Space before units .replace(/(\d)\s?cc()/gi, '$ 1&nbsp;cc$ 2') .replace(/(\d)\-cc()/gi, '$ 1&nbsp;cc$ 2') .replace(/(\d)\s?ft()/gi, '$ 1&nbsp;ft$ 2') .replace(/(\d)\-ft()/gi, '$ 1&nbsp;ft$ 2') .replace(/(\d)\s?rpm\s/gi, '$ 1&nbsp;rpm') .replace(/(\d)\-rpm\s/gi, '$ 1&nbsp;rpm') .replace(/(\d)\s?kg()/gi, '$ 1&nbsp;kg$ 2') .replace(/(\d)\-kg()/gi, '$ 1&nbsp;kg$ 2') //space before 'm' only when lower case .replace(/(\d)\s?m()/g, '$ 1&nbsp;m$ 2') .replace(/(\d)\-m()/g, '$ 1&nbsp;m$ 2') //.replace(/(\d)\s?ml()/g, '$ 1&nbsp;ml$ 2') //.replace(/(\d)\-ml()/g, '$ 1&nbsp;ml$ 2') .replace(/(\d)\s?m(\W)/g, '$ 1&nbsp;m$ 2') .replace(/(\d)\s?m(\w?\W)/g, '$ 1&nbsp;m$ 2'); // *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- // // Written by myself (AndyZ), from no specific script // // random formatting issues from MoS // // *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- // var cur_d = new Date(), cur_m = (cur_d.getMonth() + 1).toString(); if(cur_m.length == 1) cur_m = '0' + cur_m; //month var cur_t = (cur_d.getDate()).toString(); if(cur_t.length == 1) cur_t = '0' + cur_t; //date var cur_accessdate = ''; txt.value = txt.value //MOSNUM more nbsp stuff .replace(/(\d)\s?(|kilo|hecto|deca|deci|centi|milli|micro|nano)(meter|metre|liter|litre|gram|byte)(s?\W])/gi, '$ 1&nbsp;$ 2$ 3$ 4') .replace(/(\d)\s?(k|d|c|m|µ|µ|µ)(g|l|m)s?(\W)/gi, '$ 1&nbsp;$ 2$ 3$ 4') .replace(/(\d)\s?(inche?|foot|feet|yard|mile|acre|pound|ounce|ton|gallon|quart|pint|cup|angstrom)(s?\W)/gi, '$ 1&nbsp;$ 2$ 3') .replace(/(\d)\s?(lb|ft|yd|mi|oz)s?(\W)/gi, '$ 1&nbsp;$ 2$ 3') //MOSNUM, first ones are currency fixes .replace(/\$ US(\d)/gi, ']$ 1') .replace(/(\W)EU€/gi, '$ 1€') //add leading zero to decimals .replace(/\s(\-?)\.(\d+)\s/g, ' $ 10.$ 2 ') //times fixing .replace(/\s(\d\d?)\s?(a|p)m\s/g, ' $ 1 $ 2.m. ') .replace(/\s(\d\d?)\s?AM\s/g, ' $ 1 a.m. ') .replace(/\s(\d\d?)\s?PM\s/g, ' $ 1 p.m. ') .replace(/\s(\d\d?)(\d\d)\s?(a|p)m\s/g, ' $ 1:$ 2 $ 3.m. ') .replace(/\s(\d\d?)(\d\d)\s?AM\s/g, ' $ 1:$ 2 a.m. ') .replace(/\s(\d\d?)(\d\d)\s?PM\s/g, ' $ 1:$ 2 p.m. ') .replace(/\s12\snoon(\W)/g, ' noon$ 1') //MOSDATE remove th in dates followed by -th, others .replace(/()(January|February|March|April|May|June|July|August|September|October|November|December)\s(\d\d?)th/gi, '$ 1]') .replace(/\\](<sup: -->
454:", facttags = "({{*fact*}}|{{*citequote*}}|{{*citation needed*}}|{{*cn*}}|{{*verification needed*}}|{{*verify source*}}|{{*GR**+*}}|{{*?r?f**}}|{{*reflabel**}})"; var txt = document.editform.wpTextbox1; // *-*-*-*-*-*-*-*-*-*-*- // specifically: unitformatter.js, units_nbsp.js, and dates.js // scripts from Bobblewik // // *-*-*-*-*-*-*-*-*-*-*- // if(context_PR){ txt.value = txt.value // century without AD,BC etc .replace(/\century\]\]/gi, '$ 1 century') .replace(/\century\|(\d{1,2}(?:st|nd|rd|th))\]\]/gi, '$ 1') .replace(/\century\|(\d{1,2}(?:st|nd|rd|th))century\]\]/gi, '$ 1 century') .replace(/\century\|(\d{1,2}(?:st|nd|rd|th))centuries\]\]/gi, '$ 1 centuries') // century with AD,BC etc .replace(/\century\s(AD|BC|CE|BCE)\]\]/gi, '$ 1 century $ 2') .replace(/\century\|(\d{1,2}(?:st|nd|rd|th))century\s(AD|BC|CE|BCE)\]\]/gi, '$ 1 century $ 2') .replace(/\century\|(\d{1,2}(?:st|nd|rd|th))centuries\s(AD|BC|CE|BCE)\]\]/gi, '$ 1 centuries $ 2') //year:text on left, text on right .replace(/(\s?,?\-?\s?)\\](\s?,?\-?\s?)/gi, '$ 1$ 2$ 3') //year:avoid links on left, text on right .replace(/(]{4})\\](\s?,?\-?\s?)/gi, '$ 1$ 2$ 3') //year pair: avoid links on left, text on right .replace(/(]{4})\\](.?.?.?.?.?.?)\\](\s?,?\-?\s?)/gi, '$ 1$ 2$ 3$ 4$ 5') //year:avoid links on both sides .replace(/(]{4})\\]({4})/gi, '$ 1$ 2$ 3') .replace(/(]{4})\\](\s?,?\-?\s?\|.|..))/gi, '$ 1$ 2$ 3') //year: examine characters in link on left for date, avoid links on right .replace(/((?:..|.|)\]\]\s?,?\-?\s?)\\]({4})/gi, '$ 1$ 2$ 3') .replace(/(\s?,?\-?\s?|\n)\\]({4}|\n)/gi, '$ 1$ 2$ 3') .replace(/(\s?,?\-?\s?|\n)\\]({4}|\n)/gi, '$ 1$ 2$ 3'); } txt.value = txt.value .replace(/(\d(?:st|nd|rd|th))Century/gi, '$ 1 century') // piped decades and years .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') // months .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') .replace(/\\]/gi, '$ 1') //month+year .replace(/\\]/gi, '$ 1') //Month+day_number "March 7th" -: --> 118:" + "The following suggestions were generated by a semi-automatic ], and might not be applicable for the article in question."; if(!endMsg_PR) endMsg_PR = "\nYou may wish to browse through ] for further ideas. Thanks, ~~"+"~~\n\n\n"; if(!noXHR_PR) noXHR_PR = false; // allow ] (]) or not if(!maintain_PR) maintain_PR = false; //for maintainers of ] and its subpages if(!maintain2_PR) maintain2_PR = false; //for maintainers of ] and its subpages if(maintain2_PR) select_PR = true; if(maintain2_PR) showHeading_PR = true; if(!spellcheck_PR) spellcheck_PR = false; //spell checker, takes long time though if(!showHeading_PR) showHeading_PR = false; if(!showInstaview_PR) showInstaview_PR = false; if(instaview_PR === undefined) instaview_PR = true; //instaview button!! released under BSD license by Pilaf if(imgCheck_PR === undefined) imgCheck_PR = false; if(context_PR === undefined) context_PR = false; if(!width_PR) width_PR = 1200; var width4_PR = width_PR + 4; width_PR = width_PR.toString(); width4_PR = width4_PR.toString(); if(!simple_PR) simple_PR = false; if(expandContractions_PR===undefined) expandContractions_PR = true; //colors, style var restoreText_PR, restoreStyle_PR, topBarColor_PR, botBarColor_PR; if(!restoreText_PR) restoreText_PR = ""; // text for restoration button if(!restoreStyle_PR) restoreStyle_PR = "background:yellow; position:absolute; margin-left:5px; margin-top:120px;"; if(!topBarColor_PR) topBarColor_PR = "red"; // color of top bar of suggestions if(!botBarColor_PR) botBarColor_PR = "#cccccc"; // color of bottom bar of suggestions // *-*-*-*-*-* end configurable options *-*-*-*-*-* if(mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 4 || allSpaces_PR){ //only if namespace is main (or wp) //the actual output location of the suggestions //!!! needs cleanup for readability //feedbackid = "theFeedback"; //drag_PR = 'onmousedown="StartDrag(document.getElementById('+feedbackid+'))" onmouseup="CancelDrag()" onmouseout="CancelDrag()"' var instaview_button_txt; if(instaview_PR) instaview_button_txt = '<input type="button" value="Instaview" name="instaview_button" onclick="instaPreview();" onMouseOver="window.status=\'Preview the suggestions using Live Preview ((C)2006 Pilaf, BSD) without having to copy+paste and using diff. button\'; return true;" onMouseOut="window.status=\'\'": --> 667:'); // spell checker, based on ]: (requires ajax) !!! if(!noXHR_PR){} //contractions (be careful!) if(expandContractions_PR){ txt.value = txt.value .replace(/(could|did|do|does|had|has|have|is|might|must|should|was|were|would)n't/gi, '$ 1 not') .replace(/can't/gi, 'cannot').replace(/won't/gi, 'will not') .replace(/(could|might|must|should|would)'ve/gi, '$ 1 have') .replace(/(\WI|you|he|she|it|we|they|that|who|what|where|when|why|how)'ll/gi, '$ 1 will') .replace(/(\WI|you|he|she|it|we|they|that|who|what|where|when|why|how)'d/gi, '$ 1 had') } // *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* // // from ] // // *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* // txt.value = txt.value //whitespace .replace(/\t/g, " ") .replace(/^ ? ? \n/gm, "\n") .replace(/(\n\n)\n+/g, "$ 1") .replace(/== ? ?\n\n==/g, "==\n==") .replace(/\n\n(\* ?\[?http)/g, "\n$ 1") .replace(/^ ? ? \n/gm, "\n") .replace(/\n\n\*/g, "\n*") .replace(/+/g, " ") .replace(/(\n)\n+/g, "$ 1") .replace(/ \n/g, "\n") //ending sections .replace(/(== ?)(external links:?|outside links|web ?links:?|exterior links:?)( ?==)/gi, "$ 1External links$ 3") .replace(/(== ?)(external link:?|web ?link:?|exterior link:?)( ?==)/gi, "$ 1External link$ 3") .replace(/(== ?)(reference:?)(s? ?==)/gi, "$ 1Reference$ 3") .replace(/(== ?)(source:?)(s? ?==)/gi, "$ 1Source$ 3") .replace(/(== ?)(further readings?:?)( ?==)/gi, "$ 1Further reading$ 3") .replace(/\ategory ?: ?/g, "[[Category:") //categories //repair bad internal links .replace(/(|^)\]*?)\]\]?(]|$ )/gm, "$ 1]$ 3") .replace(/\]*?) ?\]\]/g, "]") .replace(/\]*?)( |_)#(]*?)\]\]/g, "]") //repair bad external links .replace(/\]*?)\]\]?/gi, "") .replace(/\]*?)\|(]*?)\]/gi, "") .replace(/\\|]+)\|(\|]+)\]\](*)()/g, "]$ 4"); // *-*-*-*-*-*-*-*-*-*-*-*-*-*-*- // for full documentation, see // FROM User:Gimmetrow/replace.js // User:Gimmetrow/fixRefs.js // *-*-*-*-*-*-*-*-*-*-*-*-*-*-*- // txt.value = txt.value .replace(new RegExp("+?"+facttags, "gi"), "$ 1") .replace(new RegExp("+?<ref()", "gi"), "<ref$ 1") .replace(new RegExp("<ref (*)*: --> 229:
theCats)) alphed = false //if any categories out of order } //set variable to false } list_il = /\[\[(aa|af|ak|als|am|ang|ab|ar|an|roa\-rup|frp|as|ast|gn|av|ay|az|bm|bn|zh\-min\-nan|map\-bms|ba|be|bh|bi|bar|bo|bs|br|bg|bxr|ca|cv|ceb|cs|ch|cbk\-zam|ny|sn|tum|cho|co|za|cy|da|pdc|de|dv|arc|nv|dz|mh|et|el|eml|en|es|eo|eu|ee|fa|fo|fr|fy|ff|fur|ga|gv|gd|gl|ki|glk|gu|got|zh\-classical|xal|ko|ha|haw|hy|hi|ho|hsb|hr|io|ig|ilo|bpy|id|ia|ie|iu|ik|os|xh|zu|is|it|he|jv|kl|kn|kr|ka|ks|csb|kk|kw|rw|ky|rn|sw|kv|kg|ht|kj|ku|lad|lbe|lo|la|lv|lb|lt|lij|li|ln|jbo|lg|lmo|hu|mk|mg|ml|mt|mi|mr|mzn|ms|cdo|mo|mn|mus|my|nah|na|fj|nl|nds\-nl|cr|ne|new|ja|nap|ce|pih|no|nn|nrm|nov|oc|or|om|ng|hz|ug|pa|pi|pam|pag|pap|ps|km|pms|nds|pl|pt|ty|ksh|ro|rmy|rm|qu|ru|war|se|sm|sa|sg|sc|sco|st|tn|sq|ru\-sib|scn|si|simple|sd|ss|sk|cu|sl|so|sr|sh|su|fi|sv|tl|ta|roa\-tara|tt|te|tet|th|vi|ti|tg|tpi|to|chr|chy|ve|tr|tk|tw|udm|bug|uk|ur|uz|vec|vo|fiu\-vro|wa|vls|wo|wuu|ts|ii|yi|yo|zh\-yue|diq|zea|bat\-smg|zh|zh\-tw|zh\-cn):/gi //interlanguage links if(list_il.test(inputText_PR)){ theIL = inputText_PR.match(list_il) //array to hold ILs for(i=0;i<theIL.length-1;i++){ if(theIL <= theIL) //compares all categories check_il = false } } if(!alphed && alphed2 && cat_PR) outputText_PR+="\n{{subst:User:AndyZ/PR/alpha|]}}" if(!alphed2 && alphed && alpha_PR) outputText_PR+="\n{{subst:User:AndyZ/PR/alpha}}" if(!alphed && !alphed2 && !cat_PR && alpha_PR) outputText_PR+="\n{{subst:User:AndyZ/PR/alpha}}" if(!alphed && !alphed2 && cat_PR && !alpha_PR) outputText_PR+="\n{{subst:User:AndyZ/PR/alpha|]"+" and ]"+"}}" if(!alphed && !alphed2 && cat_PR && alpha_PR) outputText_PR+="\n{{subst:User:AndyZ/PR/alpha|] and ]}}" */ //----------* Summary style -ToC and entire article- if(/\n==/g.test(inputText_PR)) theSections = inputText_PR.match(/\n==/g).length; else theSections = 0; if(theSections <= 5 || inputText_PR.length <= 7500) outputText_PR+="\n{{subst:User:AndyZ/PR/expand}}"; if(theSections : -->
228:."; /* //----------* "List of..." //not in use due to inaccuracy if(/==\s?list/gi.test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/list}}"; //----------* Checks if categories are in alphabetical order !!! self_alphabetic = [ 'aa','af','ak','als','am','ang','ab','ar','an','roa-rup','frp','as','ast','gn', 'av','ay','az','bm','bn','zh-min-nan','map-bms','ba','be','bh','bi','bar','bo', 'bs','br','bg','bxr','ca','cv','ceb','cs','ch','cbk-zam','ny','sn','tum','cho', 'co','za','cy','da','pdc','de','dv','arc','nv','dz','mh','et','el','eml','en', 'es','eo','eu','ee','fa','fo','fr','fy','ff','fur','ga','gv','gd','gl','ki', 'glk','gu','got','zh-classical','xal','ko','ha','haw','hy','hi','ho','hsb','hr', 'io','ig','ilo','bpy','id','ia','ie','iu','ik','os','xh','zu','is','it','he', 'jv','kl','kn','kr','ka','ks','csb','kk','kw','rw','ky','rn','sw','kv','kg', 'ht','kj','ku','lad','lbe','lo','la','lv','lb','lt','lij','li','ln','jbo','lg', 'lmo','hu','mk','mg','ml','mt','mi','mr','mzn','ms','cdo','mo','mn','mus','my', 'nah','na','fj','nl','nds-nl','cr','ne','new','ja','nap','ce','pih','no','nn', 'nrm','nov','oc','or','om','ng','hz','ug','pa','pi','pam','pag','pap','ps','km', 'pms','nds','pl','pt','ty','ksh','ro','rmy','rm','qu','ru','war','se','sm','sa', 'sg','sc','sco','st','tn','sq','ru-sib','scn','si','simple','sd','ss','sk','cu', 'sl','so','sr','sh','su','fi','sv','tl','ta','roa-tara','tt','te','tet','th', 'vi','ti','tg','tpi','to','chr','chy','ve','tr','tk','tw','udm','bug','uk','ur', 'uz','vec','vo','fiu-vro','wa','vls','wo','wuu','ts','ii','yi','yo','zh-yue', 'diq','zea','bat-smg','zh','zh-tw','zh-cn'] cat1 = /\\]/gi alphed = true; check_il = true; //first for ]s, ]s if(cat1.test(inputText_PR)){ theCats = inputText_PR.match(cat1) //array to hold categories for(i=0;i<theCats.length;i++) theCats=theCats.toLowerCase(); //moves categories to lower case //compares all cats to see if in alphabetical order for(i=0;i<theCats.length-1;i++){ //compares all of the categories if(!(theCats: --> 145:'; while (parent && div.hasChildNodes()) { var child = div.childNodes; parent.appendChild(child); } } if(simple_PR) JSpeerreview_callingFunction = JSpeerreview_simple; else JSpeerreview_callingFunction = JSpeerreview; if(toolbar_PR == "personal" || toolbar_PR == "navigation" || toolbar_PR == "cactions" || toolbar_PR == "tb"){ if((mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 4 || allSpaces_PR) && !toolbarLink_PR){ //adds peer review link to top bar (with your user + talk pgs, prefs., watchlist, etc.) $ .when( mw.loader.using( ), $ .ready ).done( function () { if(document.forms.editform) { var link = mw.util.addPortletLink('p-'+toolbar_PR, '', 'Peer review', 'ca-peerreviewer', 'Semi-automatic peer reviewer by javascript', '', ''); $ (link).click( function(event) { event.preventDefault(); JSpeerreview_callingFunction(); } ); } }); } if((mw.config.get('wgNamespaceNumber') === 0 || allSpaces_PR) && toolbarLink_PR){ $ .when( mw.loader.using( ), $ .ready ).done( function () { var link = mw.util.addPortletLink('p-'+toolbar_PR, '', 'Peer review', 'ca-peerreviewer', 'Semi-automatic peer reviewer by javascript', '', ''); $ (link).click( function(event) { event.preventDefault(); toJSpeerreview() } ); }); } } templateData_PR = new Array( ]. The article should have an appropriate number of paragraphs as is shown on ], and should adequately summarize the article."], ]; be aware that the lead should adequately summarize the article."], ]. Please ensure that the lead adequately summarizes the article."], ] for this article, if one exists relating to the topic of the article. "], ] and ], months and days of the week generally should not be linked. Years, decades, and centuries can be linked if they provide ] for the article."], ], years and dates are generally not linked."], ], dates shouldn't use <sup: --> 267:
imgData; } templFU = /\{\{.{0,}(Music sample|Speech|Sheet music|Albumcover|Boardgamecover|Book cover|Comiccover|DVDcover|Gamecover|Softwarecover|Magazinecover|Time|Newspapercover|Video tape cover|Logo|Computer hardware logo|Disneylogo|PreK12\-logo|Restaurant|Radiologo|Schoolboard\-logo|Scoutlogo|Sports\-logo|Hqfl logo|Olympics\-logo|Tv\-logo|Tv\-program\-logo|Univ\-logo|Symbol|Seal|Icon|Game\-icon|Wayfinding|Stamp|USPSstamp|Money|Promotional|DisneyAttractionPoster|Eventposter|Sportsposter|Movie poster|Political poster|Film\-screenshot|Machinima\-screenshot|Musicpromo\-screenshot|Tv\-screenshot|Video\-screenshot|Game\-screenshot|Cvg\-titlescreen|screen|photo|sign|cover|artwork|Digimonimage|DisneyCharacter|Pokeimage|Yugiohimage|Comicpanel|comicscene|Public Library images|Otto Perry image|Robert Richardson image|Parody|Smithsonian|Standard test|Fair use in|Fairusein\d|no\srationale|nrd|Replaceable\sfair\suse|refu|orfud|or\-fu\-re)/gi FUrat = /(rationale|fair\suse)/gi if(templFU.test(imgTxt) && !FUrat.test(imgTxt)){ imgFU = true; imgFUstr += "|" + imgData; } } else if(imgData == "htm"){ if(imgTxt.indexOf("Template:") == -1){ alert(imgData + "\n" + "\nNo licensing information (HTML check)"); } } } function checkpage(xmlreq, data){ if(xmlreq.statusText != "Not Found") alert(xmlreq.statusText + "\n" + data.url); } // -------------------- // END img license checking // -------------------- // START spellcheck, based on ] // -------------------- function spellCheckReview(xmlreq, data){ spellcheck_output = ""; var spell_string = ""; list_wordpairs = xmlreq.responseText.substring(0,xmlreq.responseText.lastIndexOf("zebra")+5) // remove category list_wordpairs = list_wordpairs.split("\n"); // find all pairs of mispellings + actual words var misspelled_words = new Array(); var spellchecked_words = new Array(); for(i=0;i<list_wordpairs.length;i++){ list_wordpairs = list_wordpairs.substring(1,list_wordpairs.length); // remove spaces try{ temp_spellarray = list_wordpairs.split("-: -->
116:// ******************************************* // // See ] for details // // Quick installation - // // Add to your monobook.js: // // {{subst:js|User:AndyZ/peerreviewer.js}} // // ******************************************* // // Written by AndyZ, 2006 // // ******************************************* // //Semi-automatic javascript peer reviewer // note that this is NOT a ] // though it may be considered a ] // *-*-*-*-*-* start code *-*-*-*-*-* // *-*-*-*-*-*-*-*-*-*- // // configurable options // // details on talk page // // *-*-*-*-*-*-*-*-*-*- // // input_PR is the source id for the input // output_PR is the output id for the output var input_PR, output_PR; if(!input_PR) input_PR = "wpTextbox1"; if(!output_PR) output_PR = "theResponse"; //configurable options, see talk page for details var allSpaces_PR, defaultView_PR, select_PR, popup_PR, sendTo_PR, toolbarLink_PR, toolbar_PR, directRef_PR, cat_PR, alpha_PR, userSandbox_PR, initMsg_PR, endMsg_PR, noXHR_PR, maintain_PR, maintain2_PR, spellcheck_PR, showHeading_PR, showInstaview_PR, instaview_PR, width_PR, imgCheck_PR, context_PR, simple_PR, expandContractions_PR; if(!allSpaces_PR) allSpaces_PR = false; // if true, "peer review" link will appear on all article pages if(!defaultView_PR) defaultView_PR = 0; // options: 0 - normal, in prose; 1 - template form; 2 - with references; (for now) if(!select_PR) select_PR = false; // selects text if(!popup_PR) popup_PR = false; // feature not available yet if(!sendTo_PR) sendTo_PR = false; // if true, removes send to tab if(!toolbarLink_PR) toolbarLink_PR = false; // accepted values = "personal", "cactions", "navigation", "tb" if(!toolbar_PR) toolbar_PR = "personal"; if(!directRef_PR) directRef_PR = false; if(!cat_PR) cat_PR = false; if(!alpha_PR) alpha_PR = false; if(!userSandbox_PR) userSandbox_PR = "User:" + mw.config.get('wgUserName') + "/sandbox"; if(!initMsg_PR) initMsg_PR = "<onlyinclude: --> 233:" //----------* American/British English spellings (ize/ise, ization/isation, or/our, er/re, etc) // ?!!! var check_amer = 0, check_brit = 0, ab_ex = ""; AmSpell = new Array("flavor","honor","armor","behavior","harbor","neighbor","favorite","aluminum","mustache","tidbit","meter","fiber","saber","defense","offense","pretense","organize","recognize","realize","colonize","criticize","categorize","ization","analyze","catalyze","hydrolyze","paralyze","anemia","anesthesia","cesium","diarrhea","gynecology","hemophilia","leukemia","esophagus","estrogen","orthopedic","pediatric","counterattack","counselor","equaling","modeling","quarreled","signaling","traveled","enrollment","fulfillment","installment","skillful"," aging","routing","anymore","paycheck","cozy"," gray","jewelry","curb","licorice","mold","molt","pajamas","program ","skeptic","sulfur"); BrSpell = new Array("flavour","honour","armour","behaviour","harbour","neighbour","favourite","aluminium","moustache","titbit","metre","fibre","sabre","defence","offence","pretence","organise","recognise","realise","colonise","criticise","categorise","isation","analyse","catalyse","hydrolyse","paralyse","anaemia","anaesthesia","caesium","diarrhoea","gynaecology","haemophilia","leukaemia","oesophagus","oestrogen","orthopaedic","paediatric","counter-attack","counsellor","equalling","modelling","quarrelled","signalling","travelled","enrolment","fulfilment","instalment","skilful"," ageing","routeing"," any more","pay cheque","cosy"," grey","jewellery","kerb","liquorice","mould","moult","pyjamas","programme","sceptic","sulphur"); for(i=0;i<AmSpell.length;i++){ if(inputText_PR_noquotes.indexOf(AmSpell) != -1 && mw.config.get('wgTitle').indexOf(AmSpell) == -1){ check_amer++; ab_ex += "''" + AmSpell + "'' (A) (British: ''" + BrSpell + "''), "; } if(inputText_PR_noquotes.indexOf(BrSpell) != -1 && mw.config.get('wgTitle').indexOf(BrSpell) == -1){ check_brit++; ab_ex += "''" + BrSpell + "'' (B) (American: ''" + AmSpell + "''), "; } } if(check_amer : --> 182:// |%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%| // // |%|%|%|%|%| START OUTPUT |%|%|%|%|%| // // |%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%|%| // document.getElementById(output_PR).value = JSpeerreview_body(document.getElementById(input_PR).value,document.getElementById(output_PR).value); //----------* replacing template format with actual words temp_mem = document.getElementById(output_PR).value; if(defaultView_PR == 0) replaceTemp(); document.getElementById('instaview_button').style.width = 150; document.theForm.switch_readonly.style.width = 150; //----------* //show feedback document.getElementById("theFeedback").style.display = "block"; if(select_PR) //selects suggestions, for easy copy+pasting document.getElementById(output_PR).select(); // %%%%%%%%%%%%%%%%%%%%%%%%%%%%% }// ending brace for function %% // %%%%%%%%%%%%%%%%%%%%%%%%%%%%% function JSpeerreview_simple(){ output_PR = "wpTextbox1"; document.getElementById('wpTextbox1').value = JSpeerreview_body(document.getElementById('wpTextbox1').value,""); replaceTemp(); } function JSpeerreview_body(inputText_PR,outputText_PR){ if(outputText_PR.indexOf("Thanks")!=-1){ var existingPR = confirm("There are already suggestions here.\nContinuing will cause the old suggestions to be overwritten.\nDo you wish to proceed?"); if(!existingPR) return; else{ outputText_PR = initMsg_PR; //reset global variables imgFU = false; imgFUstr = ""; imgNT = false; imgNTstr = ""; } } if(outputText_PR == "") outputText_PR = initMsg_PR; if(showHeading_PR) //heading on output (at top) outputText_PR = "===]===\n"+outputText_PR; //----------* ] - determine number of paragraphs inputText_PR_lead = inputText_PR.substring(0,inputText_PR.indexOf("==")) if(/^(|'{3})/gm.test(inputText_PR_lead)) NumPara = inputText_PR_lead.match(/^(|'{3})/gm).length; else NumPara=1; if(NumPara == 1) outputText_PR+="\n{{subst:User:AndyZ/PR/lead}}"; if(NumPara == 2 && inputText_PR.length: --> 265:(\s|\n)<ref/), check_sref = false; for(i=0;i<list_sref.length;i++){ if(list_sref.test(inputText_PR)){check_sref=true; break;} } if(check_sref) outputText_PR+="\n{{subst:User:AndyZ/PR/footspace}}" //----------* Reference section if(!/==\s?(reference|source|cit|works cit|footnote|note)/gi.test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/ref}}" //----------* if(/\{\{(fact|citation\sneeded|cn)\}\}/gi.test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/fact}}"; //----------* Copyediting reminder (default): outputText_PR+="\n{{subst:User:AndyZ/PR/copyedit}}" //----------* closing + signature outputText_PR+=endMsg_PR; return outputText_PR; } // %%%%%%%%% END REVIEW %%%%%%%%%% // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // image licensing check functions: // -------------------- // XMLHTTPrequest function by ], on ] wpajax={ download:function(bundle) { // mandatory: bundle.url || optional: bundle.onSuccess (xmlhttprequest, bundle), bundle.onFailure (xmlhttprequest, bundle), bundle.otherStuff OK too, passed to onSuccess and onFailure var x = window.XMLHttpRequest ? new XMLHttpRequest() : window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : false; if (x) { x.onreadystatechange=function() { x.readyState==4 && wpajax.downloadComplete(x,bundle); }; x.open("GET",bundle.url,true); x.send(null); } return x; }, downloadComplete:function(x,bundle) { x.status==200 && (bundle.onSuccess && bundle.onSuccess(x,bundle) || true) || ( bundle.onFailure && bundle.onFailure(x,bundle) || checkpage(x,bundle)); } }; function wikiImg(xmlreq,data){} //empty function function checkImgLicense(xmlreq, data) { var imgTxt = xmlreq.responseText; imgData = data.message.split(","); if(imgData.length : --> 462:)?\s(January|February|March|April|May|June|July|August|September|October|November|December)/gi, '$ 1 $ 4') .replace(/\s(\d{4})'s(\W)/gi, ' $ 1s$ 2') .replace(/the\s(January|February|March|April|May|June|July|August|September|October|November|December)\sof\s(\d{4})/gi, '$ 1 $ 2') .replace(/(January|February|March|April|May|June|July|August|September|October|November|December)\sof\s(\d{4})/gi, '$ 1 $ 2') .replace(/the\s(\d\d?)th\sof\s(January|February|March|April|May|June|July|August|September|October|November|December)/gi, '$ 2 $ 1') .replace(/(\d\dth\s)Century/g, '$ 1century') //MSH to fix captalization issues in headings .replace(/\n(={2,3})(\s?)See\sAlso\s?={2,3}/g, '\n$ 1$ 2See also$ 2$ 1') .replace(/\n(={2,3})(\s?)Further\sReading\s?={2,3}/g, '\n$ 1$ 2Further reading$ 2$ 1') .replace(/\n(={2,3})(\s?)Works\sCited\s?={2,3}/g, '\n$ 1$ 2Works cited$ 2$ 1') .replace(/\n(={2,3})(\s?)External\slink(s?)\s?={2,3}/g, '\n$ 1$ 2External link$ 3$ 2$ 1') .replace(/\n(={2,3})(\s?)Foot\sotes\s?={2,3}/g, '\n$ 1$ 2Footnotes$ 2$ 1') //miscellaneous in headings (remove special characters) .replace(/\n(={2,4})(.*)\s&\s(.*)={2,4}/g , '\n$ 1$ 2 and $ 3$ 1') //dashes .replace(/&#x2012;/g, '-') .replace(/&#(x201|151|8212);/g, '&mdash;') .replace(/&#(150|8211|x2013);/g, "&ndash;") //ellipses .replace(/\s(&hellip;|…)\s/g, '&nbsp;$ 1 ') .replace(/\s\.\s\.\s\.\s/g, '&nbsp;.&nbsp;.&nbsp;. ') .replace(/\s\.\.\.\s/g, '&nbsp;... ') //spacing, XHTML .replace(/<()r\s*\/?\s*: --> 274:
document.getElementById(output_PR).value.replace(new RegExp("{{sub"+"st:User:AndyZ/PR/"+templateData_PR+"}}","g"),templateData_PR); } if(/\{\{subst:User:AndyZ\/PR\/.*\}\}/i.test(document.getElementById(output_PR).value)) replaceTemplatesWithParams(); //continue by replacing templates w/ parameters } function replaceTemplatesWithParams(){ output_txt = document.getElementById(output_PR).value; list_utemps = output_txt.match(/\{\{subst:User:AndyZ\/PR\/(.*)\}\}/gi); var list_params = new Array(); for(i=0;i<list_utemps.length;i++){ list_utemps = list_utemps.substring(22,list_utemps.length-2); list_params = list_utemps.split("|"); if(list_params.length == 1) continue; uTN_PR = list_params; list_paramsStr = ""; for(j=1;j<list_params.length;j++){ if(j==list_params.length-1) list_paramsStr += list_params; else list_paramsStr += list_params + ",,"; } //if statements if(uTN_PR == "time") document.getElementById(output_PR).value = document.getElementById(output_PR).value.replace(/\{\{subst:User:AndyZ\/PR\/time.*\}\}/gi,"*Per ], avoid using words/phrases that indicate time periods relative to the current day. For example, ''" + list_paramsStr.replace(/\,\,/g,"'', ''") + "'' might be terms that should be replaced with specific dates/times.<sup: -->
232:= 50000) outputText_PR+="\n{{subst:User:AndyZ/PR/SS}}"; //----------* Section-stub template if(/\{\{(sect(ion)?(\-|\s)?stub|stub(\-|\s)?section)\}\}/i.test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/sectexpand}}"; // var inputText_PR_noquotes = inputText_PR.replace(/"(.+?)"/gi,"").replace(/\[\[.{4,50}?\|/gi,"") //----------* Weasel words var ww = new Array("some people sa","it has been","many people have","many scientists believe","allege","many people sa","many people believe","arguably","it is claimed","correctly","apparently","people considered","many considered","is considered","are considered"); var ww2 = new Array(); isww = false; awtstring = ""; inputText_PRawt = inputText_PR_noquotes; wwref = 500; for(i=0;i<ww.length;i++) ww2 = new RegExp(ww,"gi") for(i=0;i<ww.length;i++){ while(ww2.test(inputText_PRawt)){ inputText_PRawt = inputText_PRawt.substring(inputText_PRawt.indexOf(ww)+1,inputText_PRawt.length); if(!(/(<ref|\{\{ref|\{\{fn|\{\{harv)/gi.test(inputText_PRawt.substring(0,wwref)))){ isww = true; if(awtstring.indexOf(ww) == -1) awtstring=awtstring+"|''"+ww+"''" } } } if(isww) outputText_PR+="\n{{subst:User:AndyZ/PR/awt"+awtstring+"}} <!--This javascript cannot determine if a citation is provided; if all weasel terms are covered by citations, please strike this--: --> 185:= links) outputText_PR+="\n{{subst:User:AndyZ/PR/underlink}}"; if(.10 * words <= links) outputText_PR+="\n{{subst:User:AndyZ/PR/overlink}}"; //----------* WP:CONTEXT / WP:MOSDATE //looks for linked years, days of weeks, or months if(/]\s\\]/.test(inputText_PR) || /\\]/.test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/contxt}}" //----------* ] !!! /* var mostime = new Array(, ); check_mostime = true; mostimestring = ""; for(i=0;i<mostime.length;i++){ if(mostime.test(inputText_PR)){ check_mostime = false; mostimestring += "|" + mostime; //add parameters } } if(!check_mostime) outputText_PR+="\n{{subst:User:AndyZ/PR/time"+mostimestring+"}}"; */ //----------* Images (in article/lead) if(!/\[\[(image|file):/gi.test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/noimg}}"; if(!/(image|file):/gi.test(inputText_PR.substring(0,1000)) && !/\.(jpg|png|svg|gif|jpeg)\W/gi.test(inputText_PR.substring(0,1000))) outputText_PR+="\n{{subst:User:AndyZ/PR/leadimg}}"; //----------* Images without captions if(/\|(\d{2,3}px|none|left|center|right|thumb|thumbnail|frame|\.(jpg|gif|png|svg))\]\]/i .test(inputText_PR.replace(/\n\s*\|.+/gi,""))) outputText_PR+="\n{{subst:User:AndyZ/PR/caption}}"; //----------* Discourage galleries, per ] if(/<\/?gallery: --> 177:."], ]. Please see if there are any ] images that fall under the ] and fit under one of the ] that can be uploaded. To upload images on Knowledge (XXG), go to ]; to upload non-] images on the ], go to ]."], ] image in the top right corner of the article, please try to find and include one."], ], ] should have concise captions."], ] and ], this article's table of contents (ToC) may be too long – consider shrinking it down by merging short sections or using a proper system of daughter pages as per ]."], ] is looking for. Please see if anything can be expanded upon."], ], where a series of appropriate subpages are used. For example, if the article is ], then an appropriate subpage would be ], such that a summary of the subpage exists on the mother article, while the subpage goes into more detail."], ]. See also ]."], ] (paragraph form)."], ] are looked down upon; please either remove the trivia section or incorporate any important facts into the rest of the article."], ]."], ] in articles. Common solutions to this problem include moving the gallery to or integrating images with the text."], ); for(i=0;i<templateData_PR.length;i++) templateData_PR += "<sup: --> 361:", (caption!='')? "title='" + caption + "'" : '', InstaViewPR.conf.paths.articles + InstaViewPR.conf.locale.image + ':' + filename, img); } function parse_inline_images(str) { var start, substart=0, nestlev=0; var loop, close, open, wiki, html; while (-1 != (start=str.indexOf('[[', substart))) { if(str.substr(start+2).match(RegExp('^' + InstaViewPR.conf.locale.image + ':','i'))) { loop=true; substart=start; do { substart+=2; close=str.indexOf(']]',substart); open=str.indexOf('[[',substart); if (close<=open||open==-1) { if (close==-1) return str; substart=close; if (nestlev) { nestlev--; } else { wiki=str.substring(start,close+2); html=parse_image(wiki); str=str.replace(wiki,html); substart=start+html.length; loop=false; } } else { substart=open; nestlev++; } } while (loop) } else break; } return str; } function parse_inline_formatting(str) { var em,st,i,li,o=''; while ((i=str.indexOf("''",li))+1) { o += str.substring(li,i); li=i+2; if (str.charAt(i+2)=="'") { li++; st=!st; o+=st?'<strong: --> 395:') p=1 } ps(parse_inline_nowiki(ll) + ' ') } sh(); } return o } /* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. * Version 2.2-alpha Copyright (C) Paul Johnston 1999 - 2005 * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/md5 for more info. */ var hexcase = 0; var b64pad = ""; function hex_md5(s) { return rstr2hex(rstr_md5(str2rstr_utf8(s))); } function b64_md5(s) { return rstr2b64(rstr_md5(str2rstr_utf8(s))); } function any_md5(s, e) { return rstr2any(rstr_md5(str2rstr_utf8(s)), e); } function hex_hmac_md5(k, d) { return rstr2hex(rstr_hmac_md5(str2rstr_utf8(k), str2rstr_utf8(d))); } function b64_hmac_md5(k, d) { return rstr2b64(rstr_hmac_md5(str2rstr_utf8(k), str2rstr_utf8(d))); } function any_hmac_md5(k, d, e) { return rstr2any(rstr_hmac_md5(str2rstr_utf8(k), str2rstr_utf8(d)), e); } function rstr_md5(s) { return binl2rstr(binl_md5(rstr2binl(s), s.length * 8)); } function rstr_hmac_md5(key, data) { var bkey = rstr2binl(key); if(bkey.length : --> 179:"; //appending footnotes // *-*-*-*-*-* non-configurable global variable declarations *-*-*-*-*-* var temp_mem, foot_mem; var imgFU = false, imgFUstr = ""; var imgNT = false, imgNTstr = ""; var PRtemplateData, tempPRdata; // !!! var outputText_PR = initMsg_PR; //actual output text var spellcheck_output = ""; function JSpeerreview(){ //wpTxt is the variable for the text of a document, input_PR is the id if(document.getElementById(input_PR)) wpTxt = document.getElementById(input_PR).value; else{ alert("Error: Could not locate text\n" + input_PR); return; } if(!document.getElementById(output_PR)){ alert("Error: Unable to access output location\n" + output_PR); return; } //current date variables var current_date = new Date(), cur_month = current_date.getMonth(), cur_year = current_date.getFullYear(); var y_abbrev = cur_year.toString().substring(2,4); var m_abbrev = new Array("J","F","M","A","MY","JN","JL","AU","S","O","N","D"); var m_full = new Array("January","February","March","April","May","June","July","August","September","October","November","December"); // -------------------- //<nowiki: --> 286:"); /*if(uTN_PR == "imgfu") document.getElementById(output_PR).value = document.getElementById(output_PR).value.replace(/\{\{subst:User:AndyZ\/PR\/imgfu.*\}\}/gi,"*Images with ] tags need ] - please see ]. Specifically, ], ] need(s) proper fair use rationales."); if(uTN_PR == "imgtag") document.getElementById(output_PR).value = document.getElementById(output_PR).value.replace(/\{\{subst:User:AndyZ\/PR\/imgtag.*\}\}/gi,"*Images need proper ] ] and source information. Specifically, ], ] need(s) proper image copyright tags."); */ } } function determineReadonly(){ //readonly, to prevent accidental editing of the text if(document.getElementById(output_PR).readOnly) { document.getElementById(output_PR).readOnly = false; document.theForm.switch_readonly.value = "Readonly"; //button properties document.theForm.switch_readonly.style.width = 150; } else { document.getElementById(output_PR).readOnly = true; document.theForm.switch_readonly.value = "Edit-able"; //button properties document.theForm.switch_readonly.style.width = 150; } } function popreview(){ PRresult = "<script: --> 711:// Check w/ U:SUGG to see if any other things are missing // Help out with ], maybe even ]? // simple links for easy copy+paste into sandboxes, talk pages, or ] -- //- not important - improving look // embedding solutions beneath text, possibly (using innerHTML, etc., property) -- // more configurable options that will be helpful to users Second priority issues: // Add to/cleanup list of units (for units, conversions, and standard abbreviations) // Add to/subtract from list of weasel words // More infoboxes */ ///////////////////////////////////////////////// // Note: // I am quite aware // that the layout and documentation // of my coding is pretty terrible; // feel free to edit this page // and help clean it up // (for non-admins, leave note on talk page) // -------------- -------------- -------------- // Please be aware that changes // may affect many users // AS OF LAST COUNT: 182 users use this script ///////////////////////////////////////////////// //</pre: --> 358:', substart); if (close<=open || open==-1) { if (close==-1) { return html + html_entities(str.substr(start)); } substart = close+9; if (nestlev) { nestlev--; } else { lastend = substart; html += html_entities(str.substring(start, lastend-9)); subloop = false; } } else { substart = open+8; nestlev++; } } while (subloop) } return html + parse_inline_wiki(str.substr(lastend)); } function make_image(filename, caption, width) { // uppercase first letter in file name filename = filename.charAt(0).toUpperCase() + filename.substr(1); // replace spaces with underscores filename = filename.replace(/ /g, '_'); caption = strip_inline_wiki(caption); var md5 = hex_md5(filename); var source = md5.charAt(0) + '/' + md5.substr(0,2) + '/' + filename; if (width) width = "width='" + width + "px'"; var img = f("<img onerror=\"this.onerror=null;this.src='?'\" src='?' ? ?: --> 307:~~' + '~~'; } else if (theaction == 'prtemp'){ if (document.editform.wpTextbox1.value.indexOf('{{peerreview}}') != -1) window.alert("There has already been a peer review."); else{ document.editform.wpTextbox1.value = '{{peerreview}}\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'peer reviewing - ]'; } } else if (theaction == 'displayPR') JSpeerreview(); else pr(); } } if(sendTo_PR){ $ .when( mw.loader.using( ), $ .ready ).done(function () { if(document.forms.editform) { var link = mw.util.addPortletLink('p-cactions', '', 'send to WP:PR', 'ca-peerreview', 'Submits article for peer review', '', ''); } $ (link).click( function(event) { event.preventDefault(); autopr(); } ); }); } if(document.location.href.indexOf("fakeaction") !== -1) $ (autopr); // ENDFILE autopr.js </pre: --> 235:= 2) outputText_PR+="\n*Please make the spelling of English words consistent with either ], depending upon the subject of the article. Examples include: " + ab_ex.substring(0,ab_ex.length-2) + "."; //----------* Spellcheck - load ] if(!noXHR_PR && spellcheck_PR && mw.config.get('wgTitle').indexOf("Peer review") == -1){ wpajax.download({url:'//en.wikipedia.org/search/?title=Knowledge (XXG):Lists_of_common_misspellings/For_machines&action=raw', onSuccess: spellCheckReview, OnFailure: spellCheckReview_fail, message: 'Knowledge (XXG):Lists of common misspellings/For machines'}); outputText_PR += spellcheck_output; } //----------* Common redundancies - based on ] // !!! more if possible, also general cleanup redun_PR = new Array(0,0,0,0,0) redun_regex = /(\salso\s|in\saddition|additionally|moreover|furthermore)/gi if(redun_regex.test(inputText_PR_noquotes)){ theaddnum = inputText_PR_noquotes.match(redun_regex) if((theaddnum.length: --> 166:''."], ], please do not ] words in headings."], ], avoid capitalizing words in section headings unless they are ]s or the first word of the heading."], ]."], ] and ]. Guides recommend having greater than 3% words in links, but be sure not to ] words just to add more links."], ] to the article; per ] and ], create links to relevant articles."], ] and ], footnotes are usually located immediately after a punctuation mark, such that there is no space in between. For example, ''the sun is larger than the moon .'' is usually written as ''the sun is larger than the moon.''"], // ]","*Please alphabetize the ]."], // ] and ]","*Please alphabetize the ] and ]."], ] and ] for more information."], ], preferably in a consistent format recommended by ]. Simply, enclose inline citations, with ] or ] information, with <nowiki: --> 262:
inputText_PR_noquotes.match(/((is|are|was|were|have|has|had|wo|would|do|does|did|ca|could|should|might|must)n't|(would|should|could|might|must)'ve)/gi).join(", "); outputText_PR+="\n*The script has spotted the following contractions: ''" + list_contraction + "'', if these are outside of quotations, they should be expanded."; } //----------* Footnotes var check_ref = 0; if (/<ref/g.test(inputText_PR)) check_ref=1; else if (/\{\{(ref|fn|harv)/gi.test(inputText_PR)) check_ref=2; if (!check_ref) // no footnotes outputText_PR+="\n{{subst:User:AndyZ/PR/foot}}" else if (check_ref==2) //a method outside of the cite.php outputText_PR+="\n*You may wish to convert your form of references to the cite.php footnote system that ] 1(c) highly recommends." //----------* Footnote spacing following a period var list_sref = new Array(/(<\/ref: -->
181:
document.editform.wpTextbox1.value.indexOf("User:AndyZ/peerreviewer") == -1){ document.editform.wpTextbox1.value += "\n*A script has been used to generate a semi-]" +" review of the article for issues relating to grammar and ] style. If you would find such a review helpful, please click [[Knowledge (XXG):Peer review/Automated/" +m_full+" "+cur_year+"#"+ mw.config.get('wgTitle').split("Peer review/").split("/archive") +"|here]]. Thanks, ~~~~"; // Add a tag to the summary box - ''stolen'' from ] var txt = document.editform.wpSummary; var summary = "Automated peer review at +y_abbrev+"#"+mw.config.get('wgTitle').split("Peer review/").split("/archive")+"]]"; if (txt.value.indexOf(summary) == -1) { if (txt.value.match(/?\s*$ /)) { txt.value += " | "; } txt.value += summary; } return; } // </nowiki: -->
217:|ha|hl|dl|cl|ml)\s)/gi; if(list_SN_PR.test(inputText_PR)){ temp_SN = inputText_PR.match(list_SN_PR); outputText_PR+="\n{{subst:User:AndyZ/PR/spellnum}} " + "Specifically, an example is " + RegExp.$ 1.substring(0,RegExp.$ 1.length-1) + "."; } //----------* Checks for usage of standard abbreviations in parentheses (without 's') (for conversions) !!! if(/(\s|nbsp;)((k|d|c|m|n|µ)(g|l|m)|ft|yd|mi|lb|oz)s(\W)/gi.test(inputText_PR)) outputText_PR+="\n*When writing standard abbreviations, the abbreviations should not have a 's' to demark plurality (for example, change kms to km and lbs to lb)."; //----------* Does not work; may fix soon - looks for conversions //original logic: follow pattern: /(\d* )(\s|&nbsp;)?(UNIT)//i /* !!! ex area2 = /\d(\s|)((in|ft|mi|(|k|c|m)m)<sup: --> 189:/.test(inputText_PR)) outputText_PR+="\n*Please convert tables from ] syntax to ] wiki-markup."; //----------* Image licensing: cannot check licensing of WikiMedia Commons images var imgCode = /\)/gi var imgList = new Array(); if(imgCode.test(inputText_PR) && !noXHR_PR && imgCheck_PR){ imgList = inputText_PR.match(imgCode); for(i=0;i<imgList.length;i++) { imgList = imgList.replace(/\)/gi,"Image:$ 1"); wpajax.download({url:'//en.wikipedia.org/search/?title='+imgList+'&action=raw', onSuccess: checkImgLicense, onFailure: wikiImg, message: "raw," + imgList }); } } //output for image licensing prolems if(imgNT) outputText_PR+="\n{{subst:User:AndyZ/PR/imgtag"+imgNTstr+"}} <!--Listed images do not have licensing information--: --> 215:|cubic mile))\W/gi; if(list_unitnbsp.test(inputText_PR)){ temp_unitnbsp = inputText_PR.match(list_unitnbsp); outputText_PR+="\n{{subst:User:AndyZ/PR/nbsp|"+RegExp.$ 1+"|"+RegExp.$ 2+"&nbsp;"+RegExp.$ 3+"|"+RegExp.$ 2+"&amp;nbsp;"+RegExp.$ 3+"}}"; } //----------* Checks for usage of standard abbreviations in parentheses (for conversions) if(/((kilo|hecta|deca|deci|centi|milli|micro|nano)?(meter|metre|liter|litre|gram)s?|inch(es)?|f(oo|ee)t|yards?|miles?)\)/gi .test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/abbrev}}"; //----------* Checks that units are spelled out in text var list_SN_PR = /(+\s(kms?|mi|yds?|fts?|in\.|cms?|dms?|nms?|oz|lbs?|kgs?|mgs?|dag|dg|ng|(in|ft|yd|mi|m|km|cm|mm|dm|nm)<sup: --> 335:= tag.split(/\s*\|\s*/); attr.push(last_attr); filename = attr.shift(); var w_match; for (;attr.length; attr.shift()) if (w_match = attr.match(/^(\d*)px$ /)) width = w_match else switch(attr) { case 'thumb': case 'thumbnail': thumb=true; case 'frame': frame=true; break; case 'none': case 'right': case 'left': center=false; align=attr; break; case 'center': center=true; align='none'; break; default: if (attr.length == 1) caption = attr; } } else filename = tag; var o=''; if (frame) { if (align=='') align = 'right'; o += f("<div class="db-dGh1bWIgdD8": --> 191:"; //----------* Searches for infobox if(!/\{\{.*(taxo|geo|info)box/gi.test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/infobox}} (Note that there might not be an applicable infobox; remember that these suggestions are not generated manually)"; // -------------------- -------------------- // ] and ]: // -------------------- -------------------- //----------* checks for & nbsp; list_unitnbsp = /((\d+)\s?((kilo|hecta|deca|deci|centi|milli|micro|nano)?(meter|metre|liter|litre|gram)s?|(k|d|c|m|n|µ)(g|l|m)|inch(es)?|f(oo|ee)?t\s|y(ar)?ds?|mi(les?)?\s|lbs?\s|pounds?|tons?|ounces?|ozs?\s|pints?|quarts?|gallons?|in<sup: --> 411:= 0; i--) output += encoding.charAt(remainders); return output; } function str2rstr_utf8(input) { var output = ""; var i = -1; var x, y; while(++i < input.length) { x = input.charCodeAt(i); y = i + 1 < input.length ? input.charCodeAt(i + 1) : 0; if(0xD800 <= x && x <= 0xDBFF && 0xDC00 <= y && y <= 0xDFFF) { x = 0x10000 + ((x & 0x03FF) << 10) + (y & 0x03FF); i++; } if(x <= 0x7F) output += String.fromCharCode(x); else if(x <= 0x7FF) output += String.fromCharCode(0xC0 | ((x : --> 331:') if (td_match != '|+') { td_line = td_match.split((td_match == '|')? '||': /(?:\|\||!!)/) ps(parse_inline_nowiki(td_line.shift())) while (td_line.length) ll.unshift(td_match + td_line.pop()) } else ps(td_match) var tc = 0, td = for (;remain(); td.push(sh())) if (noclue('|')) { if (!tc) break // we're at the outer-most level (no nested tables), skip to td parse else if (_(1)=='}') tc-- } else if (!tc && noclue('!')) break else if (noclue('{|')) tc++ if (td.length) ps(InstaViewPR.convert(td)) } function parse_pre() { ps('<pre: --> 368:", InstaViewPR.conf.paths.math+math_md5)); } var date = new Date; var minutes = date.getUTCMinutes(); if (minutes < 10) minutes = '0' + minutes; var date = f("?:?, ? ? ? (UTC)", date.getUTCHours(), minutes, date.getUTCDate(), InstaViewPR.conf.locale.months, date.getUTCFullYear()); return str. // signatures replace(/~{5}(?!~)/g, date). replace(/~{4}(?!~)/g, InstaViewPR.conf.user.name+' '+date). replace(/~{3}(?!~)/g, InstaViewPR.conf.user.name). // ], ], etc... replace(RegExp('\\\\]','gi'), "<a href='"+InstaViewPR.conf.paths.articles+"$ 1': --> 276:"); if(uTN_PR == "awt") document.getElementById(output_PR).value = document.getElementById(output_PR).value.replace(/\{\{subst:User:AndyZ\/PR\/awt.*\}\}/gi,"*There are a few occurrences of ]s in this article- please observe ]. Certain phrases should specify exactly who supports, considers, believes, etc., such a view.\n**" + list_paramsStr.replace(/\,\,/g,"\n**") + "\n**might be weasel words, and should be provided with proper ] (if they already do, or are not weasel terms, please <strike: --> 221:|cubic (inch|feet|meter|(|kilo|centi|milli)(metre|meter)))/gi if(area2.test(inputText_PR) || vol2.test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/convert}}";*/ //----------* Unlinked dates /*if(/\s(january|february|march|april|may|june|july|august|september|october|november|december)\s(\d\d?\D)/gi .test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/linkdate}}";*/ //----------* Dateth var dateth = new Array(2); var check_th = false; dateth = /(\\])?(<sup: --> 243:“additionally”, “moreover”, and “furthermore” may sometimes be useful, overusing them when they aren't necessary can instead detract from the brilliancy of the article. This article has "+theaddnum.length+" additive terms, a bit too much."; if(redun_PR) outputText_PR+="\n**Vague terms of size often are unnecessary and redundant - “some”, “a variety/number/majority of”, “several”, “a few”, “many”, “any”, and “all”. For example, “<font color='red': --> 330:', noclue(/\|-*(.*)/))); break default: parse_table_data() } else if (noclue('!')) parse_table_data() else sh() } function parse_table_data() { var td_line, match_i var td_match = sh().match(/^(\|\+|\||!)((?:(*?)\|(?!\|))?(.*))$ /) if (td_match == '|+') ps('<caption'); else ps('<t' + ((td_match=='|')?'d':'h')) if (typeof td_match != 'undefined') { ps(' ' + td_match) match_i = 4 } else match_i = 2 ps(': --> 708:
amounts of ""s) // Prove that images have proper image copyright tags // Show that all fair use images have proper fair use rationales //- not able to do (w/ JS): Determine if sections or paragraphs are too short, outside of {{sect-stub}} or {{sectionexpand}}, etc. //- not able to do (w/ JS): Determine if a list is used //- not able to do (w/ JS): Determine if words in headings are capitalized // Find common ] // <s: -->
673:<ref", "gi"), "$ 1<ref"); for (var j=0; j<10; j++){ txt.value = txt.value.replace(new RegExp("()(*)"+facttags+"*()", "gi"), "$ 1$ 2$ 4$ 3") .replace(new RegExp("()(*)"+facttags+"*()", "gi"), "$ 1$ 2$ 4$ 3") .replace(new RegExp("()(*)"+facttags+"*()", "gi"), "$ 2$ 4$ 3") .replace(new RegExp("()(*)"+facttags+"*()", "gi"), "$ 1$ 2$ 3") .replace(new RegExp("()(*)<ref: --> 241:= inputText_PR.length/2300) redun_PR = 1; } redun_regex = /(in\sthe\syear|in\sthe\syear\sof)\s(\[\[|)(\d\d\d\d)/gi if(redun_regex.test(inputText_PR_noquotes)){inputText_PR_noquotes.match(redun_regex); exyear = RegExp.$ 3; redun_PR = 1;} redun_regex = /(thereupon|thereupon|notwithstanding|in\sorder\s(to|for))/gi if(redun_regex.test(inputText_PR_noquotes)){ if(inputText_PR_noquotes.match(redun_regex).length : --> 333:') } function parse_block_image() { ps(parse_image(sh())) } function parse_image(str) { var tag = str.substring(InstaViewPR.conf.locale.image.length + 3, str.length - 2); var width; var attr = , filename, caption = ''; var thumb=0, frame=0, center=0; var align=''; if (tag.match(/\|/)) { // manage nested links var nesting = 0; var last_attr; for (var i = tag.length-1; i : --> 315:
function noclue2(c) { return ll==c } // compare current line against a string function _(p) { return ll.charAt(p) } // return char at pos p function endl(s) { ps(s); sh() } function parse_list() { var prev=''; while (remain() && noclue(/^(+)(.*)$ /)) { var l_match = $ r; sh(); var ipos = str_imatch(prev, l_match); for (var i=prev.length-1; i : -->
705:"); } var summary_txt = document.editform.wpSummary, summary = "]: fixing ] and other miscellaneous style problems"; if (summary_txt.value.indexOf(summary) == -1) { if (summary_txt.value.match(/?\s*$ /)) summary_txt.value += " | "; summary_txt.value += summary; } document.getElementById('wpDiff').click(); //click "View changes" button } //</pre: --> 58: 636:') //miscellaneous, minor, obvious, or not explicitly stated in style guidelines //replace w/ main article template, minor .replace(/\{\{main\s?article\|/gi, '{{main|') .replace(/\\|])/gi, '[[User:AndyZ/peerreviewer$ 1'); //continue replacing more complex versions to Template:Cite web //array for converting: <nowiki: --> 183:=30000) outputText_PR+="\n{{subst:User:AndyZ/PR/lead}}"; if(NumPara == 3 && inputText_PR.length<=15000) outputText_PR+="\n{{subst:User:AndyZ/PR/leadlong}}"; if(NumPara == 4 && inputText_PR.length<=30000) outputText_PR+="\n{{subst:User:AndyZ/PR/leadlong}}"; if(NumPara : --> 388:"). replace('__NOTOC__',''). replace('__NOEDITSECTION__',''); } function strip_inline_wiki(str) { return str .replace(/\]*\|(.*?)\]\]/g,'$ 1') .replace(/\\]/g,'$ 1') .replace(/''(.*?)''/g,'$ 1'); } for (;remain();) if (noclue(/^(={1,6})(.*)\1(.*)$ /)) { p=0 endl(f('<h?: --> 438:
2); for(var i = 0; i < output.length; i++) output = 0; for(var i = 0; i < input.length * 8; i += 8) output |= (input.charCodeAt(i / 8) & 0xFF) << (i%32); return output; } function binl2rstr(input) { var output = ""; for(var i = 0; i < input.length * 32; i += 8)
429:
6 ) & 0x3F), 0x80 | ( x & 0x3F)); } return output; } function str2rstr_utf16le(input) { var output = ""; for(var i = 0; i < input.length; i++) output += String.fromCharCode( input.charCodeAt(i) & 0xFF,
405:
6*(3-j)) & 0x3F); } } return output; } function rstr2any(input, encoding) { var divisor = encoding.length; var remainders = Array(); var i, q, x, quotient; var dividend = Array(input.length / 2); for(i = 0; i < dividend.length; i++) { dividend = (input.charCodeAt(i * 2)
707:
List of things to do: // Determine the usage of commas with dates -- // Determine if conversions are included -- //- not necessary to check - Determine if extraneous bolding is used //- not able to do (w/ JS): Determine if quotes have sources (due to huge
400:
4) & 0x0F) + hex_tab.charAt( x & 0x0F); } return output; } function rstr2b64(input) { var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var output = ""; var len = input.length; for(var i = 0; i < len; i += 3) { var triplet =
334:
0; i--) { if (tag.charAt(i) == '|' && !nesting) { last_attr = tag.substr(i+1); tag = tag.substring(0, i); break; } else switch (tag.substr(i-1, 2)) { case ']]': nesting++; i--; break; case '[[': nesting--; i--; } } attr
266:
2){ for(i=2;i<imgData.length;i++) imgData += imgData; } if(imgData == "raw"){ imgNTtemplates = /\{\{(nolicense|nosource|no\ssource|no\slicense|nld|nsd|untagged)/gi if(imgTxt.indexOf("{{") == -1 || imgNTtemplates.test(imgTxt)){ imgNT = true; imgNTstr += "|" +
134:|' + ' <input type="button" value="Autoformat article per MoS" name="MOSformatting" onclick="MOS_format();" onMouseOver="window.status=\'Combo of scripts (thx Bobblewik, Gimmetrow) that fix certain MoS issues in article. Be sure to carefully check diff\'" onMouseOut="window.status=\'\'": --> 457:
B/s .replace(/()(Bps|bytes?\/s)/g, ' $ 1B/s') // Make capitalization correct .replace(/K(bit|B)\/s/g, 'k$ 1/s') .replace(/m(bit|B)\/s/g, 'M$ 1/s') .replace(/g(bit|B)\/s/g, 'G$ 1/s') // Ensure space is used .replace(/(\d)\s?(k|M|G)(bit|B)/g, '$ 1&nbsp;$ 2$ 3') //
464:') .replace(/<(\/?)TABLE/g, '<$ 1table') .replace(/<(\/?)DIV/g, '<$ 1div') .replace(/<(\/?)SPAN/g, '<$ 1span') //Template:Cite web //TODO: !1! DD Month instead of Month DD, !2! accessed instead of retrieved //take care of news /*convert <nowiki: --> 30:
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by
273:
prose, readonly, instaview, etc.) // -------------------- function replaceTemp(){// ----------* replace templates with actual contents (use ajax?) for(i = 0; i < templateData_PR.length; i++){ //templates are listed above with global variables document.getElementById(output_PR).value =
314:
b)?a:b } function min(a,b) { return (a<b)?a:b } function str_imatch(a, b) { for (var i=0, l=min(a.length, b.length); i<l; i++) if (a.charAt(i)!=b.charAt(i)) break return i } function noclue(c) { return (typeof c == 'string') ? (ll.substr(0,c.length)==c) : ($ r = ll.match(c)) }
305:
0) window.alert("There's an old peer review at the default location already.\n\n" + 'Please either move it out of the way (and update existing links to it), or file the PR by hand in another location (such as + ' 2]]).'); else
271:
2) //if mispelled_list exists spellcheck_output+="\n*Please check through the article for possible misspellings (see ]). Examples of possible misspellings include: " + spell_string.substring(0,spell_string.length-1) + "."; } function spellCheckReview_fail(xmlreq,data){
242:
2) redun_PR = 1; } if(redun_PR || redun_PR || redun_PR || redun_PR){ outputText_PR+="\n*Watch for ] that make the article too wordy instead of being crisp and concise. (You may wish to try Tony1's ].)"; if(redun_PR) outputText_PR+="\n**While additive terms like “also”, “in addition”,
397:
binl2rstr(binl_md5(opad.concat(hash), 512 + 128)); } function rstr2hex(input) { var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef"; var output = ""; var x; for(var i = 0; i < input.length; i++) { x = input.charCodeAt(i); output += hex_tab.charAt((x : -->
237:= inputText_PR.length/1800)) redun_PR = 1; } redun_regex = /(some\s|a\svariety\sof|a\snumber\sof|a\smajority\sof|several|a\sfew|\smany|\sany\s|\sall\s)/gi if(redun_regex.test(inputText_PR_noquotes)){ thevsnum = inputText_PR_noquotes.match(redun_regex) if((thevsnum.length: --> 309:
STARTFILE maintainPRA.js var mem; if(mw.config.get('wgUserName') == "AZPR" || maintain_PR){ if(mw.config.get('wgTitle').indexOf("Peer review/") != -1 && mw.config.get('wgTitle').indexOf("Automated") == -1 && mw.config.get('wgNamespaceNumber') === 4 &&
184:= 5){ outputText_PR+="\n{{subst:User:AndyZ/PR/leadlong}}"; outputText_PR+="\n{{subst:User:AndyZ/PR/leaddetail}}"; } //----------* Links compared to # of words (see ]) words = inputText_PR.split(" ").length; links = inputText_PR.split("[[").length; if(.03 * words : --> 396:
16) bkey = binl_md5(bkey, key.length * 8); var ipad = Array(16), opad = Array(16); for(var i = 0; i < 16; i++) { ipad = bkey ^ 0x36363636; opad = bkey ^ 0x5C5C5C5C; } var hash = binl_md5(ipad.concat(rstr2binl(data)), 512 + data.length * 8); return
390:?', $ r.length, parse_inline_nowiki($ r), $ r.length, $ r)) } else if (noclue(/^/)) { p=0 parse_list() } else if (noclue(' ')) { p=0 parse_pre() } else if (noclue('{|')) { p=0 parse_table() } else if (noclue(/^----+$ /)) { p=0 endl('<hr: --> 121:
soon var parent = document.getElementsByTagName( "BODY"); var div = document.createElement( "DIV" ); div.innerHTML = '<div+width_PR+'px; margin-top:150px; margin-left:40px; border:2px solid #000000; background:55ff55; display:none; z-index:20;":
324:') var dt_match // handle ;dt :dd format if (dt_match = l_match.match(/(.*?) (:.*?)$ /)) { ps(parse_inline_nowiki(dt_match)) ll.unshift(dt_match) } else ps(parse_inline_nowiki(l_match)) break case ':': ps('<dd: --> 261:
to/for), “thereupon”, “notwithstanding”, ]."; } //----------* Contractions if(/((is|are|was|were|have|has|had|wo|would|do|does|did|ca|could|should|might|must)n't|(would|should|could|might|must)'ve)/gi .test(inputText_PR_noquotes)){ list_contraction =
239:= inputText_PR.length/1800)) redun_PR = 1; } redun_regex = /(over\sthe\syears|currently|\snow\s|from\stime\sto\stime)/gi if(redun_regex.test(inputText_PR_noquotes)){ thetempnum = inputText_PR_noquotes.match(redun_regex) if(thetempnum.length: --> 180:
Messages on WP:PR // -------------------- if(mw.config.get('wgTitle').indexOf("Peer review") != -1 && mw.config.get('wgTitle').indexOf("/Automated") == -1 && mw.config.get('wgNamespaceNumber') === 4 //WP namespace &&
270:")+2,list_wordpairs.length); } if(document.getElementById(input_PR).value.indexOf(" " + misspelled_words + " ") != -1){ spell_string += "''" + misspelled_words + "'' (" + spellchecked_words + ")" + ","; } } if(spell_string.length : --> 401:(input.charCodeAt(i) << 16) | (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0) | (i + 2 < len ? input.charCodeAt(i+2) : 0); for(var j = 0; j < 4; j++) { if(i * 8 + j * 6 : --> 251:
ways to turn them green.”"; if(redun_PR) outputText_PR+="\n**Temporal terms like “over the years”, “currently”, “now”, and “from time to time” often are too vague to be useful, but occasionally may be helpful. “I am <font color='red':
153:."], ], please spell out source units of measurements in text; for example, ''the Moon is 380,000 kilometres (240,000 mi) from Earth''."], ], when doing conversions, please use standard abbreviations: for example, miles -: --> 280:"); if(uTN_PR == "nbsp") document.getElementById(output_PR).value = document.getElementById(output_PR).value.replace(/\{\{subst:User:AndyZ\/PR\/nbsp.*\}\}/gi,"*Per ], there should be a non-breaking space - <code: --> 407:
0) { quotient = Array(); x = 0; for(i = 0; i < dividend.length; i++) { x = (x << 16) + dividend; q = Math.floor(x / divisor); x -= q * divisor; if(quotient.length :
365:'; } } return o+str.substr(li); } function parse_inline_wiki(str) { var aux_match; str = parse_inline_images(str); str = parse_inline_formatting(str); while (aux_match = str.match(/<(?:)math: --> 344:", InstaViewPR.conf.paths.articles + InstaViewPR.conf.locale.image + ':' + filename, InstaViewPR.conf.paths.magnify_icon, parse_inline_nowiki(caption) ) } else { o += '<div: --> 31:
others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes.
359:", InstaViewPR.conf.paths.images_fallback + source, InstaViewPR.conf.paths.images + source, (caption!='')? "alt='" + caption + "'" : '', width); return f("<a class="db-aW1hZ2U" ? href='?': --> 706:
ENDFILE: mos.js // *-*-*-*-*-*-*-*-*-*-*-*-*- // // Comments and closing notes // // *-*-*-*-*-*-*-*-*-*-*-*-*- // // TO DO list // // *-*-*-*-*-*-*-*-*-*-*-*-*- // /* <pre: -->
124:' + '<span onclick="popreview();" onMouseOver="window.status=\'Shows current suggestions in new window, so that they do not interfere with editing\'" onMouseOut="window.status=\'\'": --> 433:
8) & 0xFF); return output; } function str2rstr_utf16be(input) { var output = ""; for(var i = 0; i < input.length; i++) output += String.fromCharCode((input.charCodeAt(i) : -->
355:", o): o; } function parse_inline_nowiki(str) { var start, lastend=0 var substart=0, nestlev=0, open, close, subloop; var html=''; while (-1 != (start = str.indexOf('<nowiki: --> 135:' + ' <a href="//en.wikipedia.org/User talk:AndyZ/peerreviewer.js" target="_blank" onMouseOver="window.status=\'All feedback is appreciated\'" onMouseOut="window.status=\'\'": --> 282:
between a number and the unit of measurement. For example, instead of ''"+list_params+"'', use ''"+list_params+"'', which when you are editing the page, should look like: <tt: -->
356:', substart))) { html += parse_inline_wiki(str.substring(lastend, start)); start += 8; substart = start; subloop = true; do { open = str.indexOf('<nowiki: --> 635:') //replace "|url=~~|title=INSERT TITLE" with url doubled .replace(/\|url=(http:\/\/)(.+?)\|title=INSERT\sTITLE/g, '|url=$ 1$ 2|title=$ 2<'+'!'+'--INSERT TITLE--'+': --> 268:"); misspelled_words = temp_spellarray; spellchecked_words = temp_spellarray; } catch(e){ misspelled_words = list_wordpairs.substring(0,list_wordpairs.indexOf("-: --> 151:
between a number and the unit symbol. For example, instead of ''{{{1|18mm}}}'', use ''{{{2|18&nbsp;mm}}}'', which when you are editing the page, should look like: <tt: -->
436:
8) & 0xFF, input.charCodeAt(i) & 0xFF); return output; } function rstr2binl(input) { var output = Array(input.length : -->
420:
6 ) & 0x3F), 0x80 | ( x & 0x3F)); else if(x <= 0x1FFFFF) output += String.fromCharCode(0xF0 | ((x : -->
414:
6 ) & 0x1F), 0x80 | ( x & 0x3F)); else if(x <= 0xFFFF) output += String.fromCharCode(0xE0 | ((x : -->
119:' else instaview_button_txt = ""; $ ( peerreviewer_init ); } function peerreviewer_init() { //add new button for <span onclick="addToPage()": --> 353:", align, make_image(filename, caption, width)); } else { return make_image(filename, caption, width); } return center? f("<div class="db-Y2VudGVy": --> 288:<script type='text/javascript' src='//en.wikipedia.org/search/?title=User:AndyZ/peerreviewer.js&action=raw&ctype=text/javascript&dontcountme=s': --> 272:
alert("Error: Unable to start spellcheck"); } // -------------------- // END spellcheck // -------------------- // START output configuring (template <-: -->
162:''."], ], headings generally should not repeat the title of the article. For example, if the article was ], instead of using the heading ''<nowiki: --> 391:') } else if (noclue(InstaViewPR.BLOCK_IMAGE)) { p=0 parse_block_image() } else { // handle paragraphs if (noclue2('')) { if (p = (remain(): --> 126:| ' + '<span onclick="hide_PR()" onMouseOver="window.status=\'Hides suggestions so you can continue editing\'" onMouseOut="window.status=\'\'": --> 318:') // close a dl only if the new item is not a dl item (:, ; or empty) else switch (l_match.charAt(i)) { case'':case'*':case'#': ps('</dl: --> 321:') // open a new dl only if the prev item is not a dl item (:, ; or empty) else switch(prev.charAt(i)) { case'':case'*':case'#': ps('<dl: --> 231:= 50000) outputText_PR+="\n{{subst:User:AndyZ/PR/SS}}";} else if(inputText_PR.match(/\{\{main/gi).length <= 2 && inputText_PR.length : --> 456:
bit/s .replace(/()(bps|bits?\/s|b\/s)/g, '$ 1bit/s') .replace(/(\d)\s?(bps)/gi, '$ 1&nbsp;bit/s') // Bps or byte/s or bytes/s --: -->
453:
STARTFILE: mos.js function MOS_format(){ var qt = String.fromCharCode(34), closetag = "((|<|</|</r|</re|</ref)*?)</ref: -->
36: 410:
0) quotient = q; } remainders = x; dividend = quotient; } var output = ""; for(i = remainders.length - 1; i : -->
158:
lb."], ], headings generally do not start with articles ('the', 'a(n)'). For example, if there was a section called ''<nowiki: -->
143:' +'<div+restoreStyle_PR+'" onclick="show_PR()" onMouseOver="window.status=\'Show suggestions\'" onMouseOut="window.status=\'\'": --> 35:
to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the
190:"; if(imgFU) outputText_PR+="\n{{subst:User:AndyZ/PR/imgfu"+imgFUstr+"}} <!--List images are fair use without rationale--: --> 133:'+instaview_button_txt + ' <input type="button" value="Readonly" name="switch_readonly" onclick="determineReadonly()": --> 448:
16); return (msw << 16) | (lsw & 0xFFFF); } function bit_rol(num, cnt) { return (num << cnt) | (num : -->
327:', (prev.charAt(i)=='*')? 'ul': ((prev.charAt(i)=='#')? 'ol': 'dl'))) } function parse_table() { endl(f('<table?: --> 230:= 24) outputText_PR+="\n{{subst:User:AndyZ/PR/toc}}"; if(!/\{\{main/gi.test(inputText_PR)){ if(inputText_PR.length : --> 105: 378:", InstaViewPR.conf.paths.articles)). // ] replace(/\]*?:)?(.*?)( *\(.*?\))?\|\]\]/g, f("<a href='?$ 1$ 2$ 3': --> 328:', noclue(/^\{\|( .*)$ /)? $ r: '')) for (;remain();) if (noclue('|')) switch (_(1)) { case '}': endl('</table: --> 725: 319:') } } for (var i=ipos; i<l_match.length; i++) { var li = l_match.charAt(i) if (li=='*') ps('<ul: --> 219:|squared (inches|feet|meter|(|kilo|centi|milli)(meter|metre)|mile))/gi vol2 = /\d(\s|)((in|ft|mi|(|m|c|k)m)<sup: --> 336:", align); if (thumb) { if (!width) width = InstaViewPR.conf.wiki.default_thumb_width; o += f("<div: --> 332:') do endl(parse_inline_nowiki(ll.substring(1)) + "\n"); while (remain() && noclue(' ')) ps('</pre: --> 149:
was a great day'', use ''January 30 was a great day''."], ], there should be a non-breaking space - <code: -->
380:", InstaViewPR.conf.paths.articles)). // External links replace(/\]*?) (.*?)\]/g, "<a href='$ 1:$ 2$ 3': --> 256:
using a semi-bot to generate your peer review.”"; if(redun_PR) outputText_PR+="\n**“In <font color='red': -->
32: 585:\s*(\w+)\,\s(\w+)\s\(\{0,2}\)\.\s\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}\.?\s*<\/ref: --> 64: 186:/i.test(inputText_PR)) outputText_PR+="\n{{subst:User:AndyZ/PR/ig}}"; //----------* Discourage <table: --> 68: 367:/i)) { var math_md5 = hex_md5(aux_match); str = str.replace(aux_match, f("<img src='?.png': --> 306:
document.editform.wpTextbox1.value += '===]===\n' + '<!--Reason for nomination.--: -->
294:| <a href='//en.wikipedia.org/search/?title="+mw.config.get('wgPageName')+"&action=history': --> 597:\s*(\w+)\,\s(\w+)\s\((\d{4})\)\.\s\+?)\s(]+?)\]?\sretrieved\son\s\{0,2}\,?\s\{0,2}\.?\s*<\/ref: --> 260:"+exyear+"”"; if(redun_PR) outputText_PR+="\n**Avoid misplaced formality: “in order to/for” (-: --> 599:{{cite web|url=$ 5|title=$ 6|last=$ 2|first=$ 3|accessmonthday=]|accessyear=]|year=$ 4}}</ref: --> 595:{{cite web|url=$ 5|title=$ 6|last=$ 2|first=$ 3|accessmonthday=]|accessyear=]|year=$ 4}}</ref: --> 386:"). replace(/(^| )(https?|news|ftp|mailto|gopher|irc):(\/*)(*)/g, "$ 1<a href='$ 2:$ 3$ 4': --> 376:", InstaViewPR.conf.paths.articles)). // ] replace(/\]+?)\]\](\w*)/g, f("<a href='?$ 1': --> 337:?", 2+width*1, make_image(filename, caption, width)) + f("<div class="db-dGh1bWJjYXB0aQ": --> 322:') } } switch (l_match.charAt(l_match.length-1)) { case '*': case '#': ps('<li: --> 581:\s*(\w+)\,\s(\w+)\.\s\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}\.?\s*<\/ref: --> 292:(<a href='//en.wikipedia.org/search/?title="+mw.config.get('wgPageName')+"&action=edit': --> 593:\s*(\w+)\,\s(\w+)\s\((\d{4})\)\.\s\+?)\s(]+?)\]?\sretrieved\s\{0,2}\,?\s\{0,2}\.?\s*<\/ref: --> 370:"). replace(RegExp('\\\\]','gi'),''). // ] replace(/\*?)\]\]/g, f("<a href='?$ 1': --> 299:<input type='button' value='Readonly' name='switch_readonly' onclick='determineReadonly()': --> 170:. At the bottom of the article, in a section named “References” or “Footnotes”, add <code: --> 325:' + parse_inline_nowiki(l_match)) } prev=l_match } for (var i=prev.length-1; i: --> 591:{{cite web|url=$ 4|title=$ 5|last=$ 2|first=$ 3|accessmonthday=]|accessyear=]}}</ref: --> 589:\s*(\w+)\,\s(\w+)\.\s\+?)\s(]+?)\]?\sretrieved\s(on\s)?\{0,2}\,?\s\{0,2}\.?\s*<\/ref: --> 665:/gi); for(i=0;i<12;i++) txt.value = txt.value.replace(cw_retrieval,'<ref$ 1: --> 634:{{cite web|url=$ 2|title=$ 3|accessmonthday=$ 6 $ 7|accessyear=$ 8|year=$ 4}}</ref: --> 147:; for example, instead of (if such appeared in the article) using ''January 30<sup: --> 617:{{cite web|url=$ 4|title=INSERT TITLE|last=$ 2|first=$ 3'+cur_accessdate+'}}</ref: --> 607:{{cite web|url=$ 5|title=$ 6|last=$ 2|first=$ 3|year=$ 4'+cur_accessdate+'}}</ref: --> 579:{{cite web|url=$ 5|title=$ 6|last=$ 2|first=$ 3|year=$ 4'+cur_accessdate+'}}</ref: --> 575:{{cite web|url=$ 5|title=$ 6|last=$ 2|first=$ 3|year=$ 4'+cur_accessdate+'}}</ref: --> 563:{{cite web|url=$ 4|title=INSERT TITLE|last=$ 3|first=$ 2'+cur_accessdate+'}}</ref: --> 555:{{cite web|url=$ 4|title=INSERT TITLE|last=$ 2|first=$ 3'+cur_accessdate+'}}</ref: --> 664:\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}, \{0,2}\.?\s*<\/ref: --> 662:\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}, \{0,2}\.?\s*<\/ref: --> 660:\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}, \{0,2}\.?\s*<\/ref: --> 658:\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}, \{0,2}\.?\s*<\/ref: --> 656:\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}, \{0,2}\.?\s*<\/ref: --> 654:\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}, \{0,2}\.?\s*<\/ref: --> 652:\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}, \{0,2}\.?\s*<\/ref: --> 650:\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}, \{0,2}\.?\s*<\/ref: --> 648:\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}, \{0,2}\.?\s*<\/ref: --> 646:\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}, \{0,2}\.?\s*<\/ref: --> 644:\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}, \{0,2}\.?\s*<\/ref: --> 642:\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}, \{0,2}\.?\s*<\/ref: --> 587:{{cite web|url=$ 5|title=$ 6|last=$ 2|first=$ 3|accessdate=$ 9|year=$ 4}}</ref: --> 719: 632:\s*\+?)\s(]+?)\]\s\(\{0,2}\)\sretrieved\s(on\s)?\{0,2}\,\s\{0,2}\.?\s*<\/ref: --> 269:")); spellchecked_words = list_wordpairs.substring(list_wordpairs.indexOf("-: --> 641:
to Cite web format var cw_retrieval = new Array( /<ref(\sname=.+?)?: -->
549:\s*\+?)\s(]+?)\]?\s(retrieved|accessed|reached)\s(on\s)?\{0,2}\.?\s*<\/ref: --> 402:
input.length * 8) output += b64pad; else output += tab.charAt((triplet : -->
290:
Return to <a href='//en.wikipedia.org/" + mw.config.get('wgPageName') + "': -->
666:{{cite web|url=$ 2|title=$ 3|accessmonthday=$ 6 $ 8|accessyear=$ 9}}</ref: --> 527:{{cite web|url=$ 2|title=INSERT TITLE|format=PDF'+cur_accessdate+'}}</ref: --> 123:' + '<div+topBarColor_PR+'; text-align:right; width:'+width4_PR+'px": --> 626:{{cite web|url=$ 5|title=$ 4|last=$ 2|first=$ 3'+cur_accessdate+'}}</ref: --> 622:{{cite web|url=$ 5|title=$ 4|last=$ 2|first=$ 3'+cur_accessdate+'}}</ref: --> 603:{{cite web|url=$ 4|title=$ 5|last=$ 2|first=$ 3'+cur_accessdate+'}}</ref: --> 567:{{cite web|url=$ 4|title=$ 5|last=$ 3|first=$ 2'+cur_accessdate+'}}</ref: --> 559:{{cite web|url=$ 4|title=$ 5|last=$ 2|first=$ 3'+cur_accessdate+'}}</ref: --> 117:{{#ifeq:{{{name}}}|" + mw.config.get('wgTitle') + "|~~~~}}</onlyinclude: --> 17: 583:{{cite web|url=$ 4|title=$ 5|last=$ 2|first=$ 3|accessdate=$ 8}}</ref: --> 374:", location)). // ] replace(/\*?)\]\](\w*)/g, f("<a href='?$ 1': --> 345:' + make_image(filename, caption) + f("<div class="db-dGh1bWJjYXB0aQ": --> 406:<< 8) | input.charCodeAt(i * 2 + 1); } while(dividend.length : --> 316:= ipos; i--) { var pi = prev.charAt(i) if (pi=='*') ps('</ul: --> 323:' + parse_inline_nowiki(l_match)); break case ';': ps('<dt: --> 57: 80:
After saving, you have to bypass your browser's cache to see the changes.
524:
to Cite web format, respectively*/ .replace(/<ref(\sname=.+?)?: -->
349:'; } else if (align != '') { o += f("<div class="db-ZmxvYXQ": --> 531:{{cite web|url=$ 2|title=$ 3|format=PDF'+cur_accessdate+'}}</ref: --> 287:
wgUserName = '" + mw.config.get('wgUserName') + "';</s" + "cript: -->
605:\s*(\w+)\,\s(\w+\.?\s\w+)\s\(\{0,2}\)\.\s\+?)\s(]+?)\]\s*<\/ref: --> 577:\s*(\w+)\,\s(\w+)\.\s\+?)\s(]+?)\]\.?\s\(?\{0,2}\)?\.?\s*<\/ref: --> 104:
toolbar button. For details and instructions about other browsers, see
630:{{cite web|url=$ 1|title=INSERT TITLE'+cur_accessdate+'}}</ref: --> 612:{{cite web|url=$ 2|title=INSERT TITLE'+cur_accessdate+'}}</ref: --> 571:{{cite web|url=$ 2|title=$ 3|year=$ 3'+cur_accessdate+'}}</ref: --> 547:{{cite web|url=$ 2|title=INSERT TITLE'+cur_accessdate+'}}</ref: --> 543:{{cite web|url=$ 2|title=INSERT TITLE'+cur_accessdate+'}}</ref: --> 539:{{cite web|url=$ 2|title=$ 3|year=$ 3'+cur_accessdate+'}}</ref: --> 426:
12) & 0x3F), 0x80 | ((x : -->
423:
18) & 0x07), 0x80 | ((x : -->
417:
12) & 0x0F), 0x80 | ((x : -->
372:", location)). // ] replace(/\\]/g, f("<a href='?$ 1': --> 573:\s*(\w+)\,\s(\w+)\s\(\{0,2}\)\.\s\+?)\s(]+?)\]\.?\s*<\/ref: --> 302:" + document.getElementById(output_PR).value + "</textarea: --> 132:' + '<div+botBarColor_PR+'; width:' + width4_PR + 'px": --> 504:
LAST, FIRST (YYYY). . retrieved on Month DD, YYYY.?</ref: -->
52: 26: 535:{{cite web|url=$ 2|title=$ 3'+cur_accessdate+'}}</ref: --> 502:
LAST, FIRST (YYYY). . retrieved Month DD, YYYY.?</ref: -->
498:
LAST, FIRST (YYYY). . retrieved on? YYYY-MM-DD.?</ref: -->
347:", parse_inline_nowiki(caption)) } o += '</div: --> 130:<textarea+width_PR+'px" rows="20" name="theResponse": --> 601:\s*(\w+)\,\s(\w+\.?\s\w+)\.\s\+?)\s(]+?)\]\s*<\/ref: --> 551:{{cite web|url=$ 2|title=$ 3|accessdate=$ 6}}</ref: --> 500:
LAST, FIRST. . retrieved on? Month DD, YYYY.?</ref: -->
339:<a href='?' class="db-aW50ZXJuYWw" title='Enlarge': --> 301:<textarea name='theResponse' cols='120' rows='50': --> 247:
pigs are pink, so we thought of <font color='red': -->
619:\s*(\w+)\,\s(\w+)\.\s"(.+?)"\.?\s<(http:\/\/.+?): --> 357:', substart); close = str.indexOf('</nowiki: --> 557:\s*(\w+)\,\s(\w+)\.\s\+?)\s(]+?)\]\.?\s*<\/ref: --> 496:
LAST, FIRST. . retrieved on? YYYY-MM-DD.?</ref: -->
703:") .replace(new RegExp("()(*)<ref(*?)/: --> 701:") .replace(new RegExp("()(*)<ref(*?)/: --> 699:") .replace(new RegExp("()(*)<ref(*?)/: --> 697:") .replace(new RegExp("()(*)<ref(*?)/: --> 313:/g,"&gt;") } function max(a,b) { return (a: --> 694:") .replace(new RegExp("()(*)<ref(*?): --> 691:") .replace(new RegExp("()(*)<ref(*?): --> 688:") .replace(new RegExp("()(*)<ref(*?): --> 685:") .replace(new RegExp("()(*)<ref(*?): --> 624:\s*(\w+)\,\s(\w+)\.\s"(.+?)"\.?\s\\s*<\/ref: --> 263:|\{\{(fn|ref)(\|.+)?\}\})\s?\./, /\.\s(<ref: --> 689:"+closetag+"*()", "gi"), "$ 1$ 2$ 6<ref$ 3: --> 686:"+closetag+"*()", "gi"), "$ 1$ 2$ 6<ref$ 3: --> 384:"). replace(/\/g, "<a href='$ 1:$ 2$ 3': --> 382:"). replace(/\/g, "<a href='http://$ 1': --> 521:(YYYY). retrieved on Month DD, YYYY.</ref: --> 460:)?/gi, ']') .replace(/(\D\d\d?)(<sup: --> 363:'; } else { em=!em; o+=em?'<em: --> 553:\s*(\w+)\,\s(\w+)\.\s\+?)\]?\.?\s*<\/ref: --> 695:"+closetag+"*()", "gi"), "$ 1$ 2<ref$ 3: --> 692:"+closetag+"*()", "gi"), "$ 2$ 6<ref$ 3: --> 682:") .replace(new RegExp("()(*)<ref: --> 679:") .replace(new RegExp("()(*)<ref: --> 677:"+closetag+"*()", "gi"), "$ 1$ 2$ 5<ref: --> 676:") .replace(new RegExp("()(*)<ref: --> 674:"+closetag+"*()", "gi"), "$ 1$ 2$ 5<ref: --> 569:\s*\]+?)\]\.?\s\(?\{0,2}\)?\.?\s*<\/ref: --> 222:)?(th|st|nd|rd)/gi dateth = /\d\d?(<sup: --> 561:\s*(\w+)\s(\w+)\.\s\+?)\]?\.?\s*<\/ref: --> 329:'); return case '-': endl(f('<tr ?: --> 160:'', it should be changed to ''<nowiki: --> 8: 683:"+closetag+"*()", "gi"), "$ 1$ 2<ref: --> 680:"+closetag+"*()", "gi"), "$ 2$ 5<ref: --> 614:\s*(\w+)\,\s(\w+)\.\s<(http:\/\/.+?): --> 537:\s*\]+?)\s\(\{0,2}\)\]\.?\s\s*<\/ref: --> 394:') } else { if(!p) { ps('<p: --> 439:output += String.fromCharCode((input : --> 291:" + mw.config.get('wgTitle') + "</a: --> 669:") .replace(new RegExp("(</ref: --> 508:LAST, FIRST MIDDLE (YYYY). .?</ref: --> 480:.? Retrieved on? YYYY-MM-DD.?</ref: --> 452:// ENDFILE: livepreview.js // <pre: --> 631:') .replace(/<ref(\sname=.+?)?: --> 623:') .replace(/<ref(\sname=.+?)?: --> 618:') .replace(/<ref(\sname=.+?)?: --> 613:') .replace(/<ref(\sname=.+?)?: --> 608:') .replace(/<ref(\sname=.+?)?: --> 604:') .replace(/<ref(\sname=.+?)?: --> 600:') .replace(/<ref(\sname=.+?)?: --> 596:') .replace(/<ref(\sname=.+?)?: --> 592:') .replace(/<ref(\sname=.+?)?: --> 588:') .replace(/<ref(\sname=.+?)?: --> 584:') .replace(/<ref(\sname=.+?)?: --> 580:') .replace(/<ref(\sname=.+?)?: --> 576:') .replace(/<ref(\sname=.+?)?: --> 572:') .replace(/<ref(\sname=.+?)?: --> 568:') .replace(/<ref(\sname=.+?)?: --> 565:\s*(\w+)\s(\w+)\.\s\?\.?\s*<\/ref: --> 564:') .replace(/<ref(\sname=.+?)?: --> 560:') .replace(/<ref(\sname=.+?)?: --> 556:') .replace(/<ref(\sname=.+?)?: --> 552:') .replace(/<ref(\sname=.+?)?: --> 548:') .replace(/<ref(\sname=.+?)?: --> 544:') .replace(/<ref(\sname=.+?)?: --> 540:') .replace(/<ref(\sname=.+?)?: --> 536:') .replace(/<ref(\sname=.+?)?: --> 532:') .replace(/<ref(\sname=.+?)?: --> 528:') .replace(/<ref(\sname=.+?)?: --> 479:(w/o brackets) <ref( name=)?: --> 477:(w/o brackets) <ref( name=)?: --> 317:') else if (pi=='#') ps('</ol: --> 700:*?()", "gi"), "$ 1$ 2$ 4<ref$ 3/: --> 698:*?()", "gi"), "$ 1$ 2$ 4<ref$ 3/: --> 392:1 && ll==(''))) endl('<p: --> 320:') else if (li=='#') ps('<ol: --> 97: 494:LAST, FIRST. .? (?YYYY)?.?</ref: --> 172:<div class=\"references-small\": --> 640:.? Retrieved on? ]?, ]?.?</ref: --> 529:\s*\+?\.pdf)\s(]+?)\]\s*<\/ref: --> 430:(input.charCodeAt(i) : --> 163:==Magellan's journey==</nowiki: --> 152:{{{3|18&amp;nbsp;mm}}}</tt: --> 129:' + '<form name="theForm": --> 67:seems to have a documentation page at 45:be executed when previewing this page. 704:*?()", "gi"), "$ 1$ 2<ref$ 3/: --> 702:*?()", "gi"), "$ 2$ 4<ref$ 3/: --> 240:=6 && thetempnum.length : --> 136:Questions/comments/errors?</a: --> 7: 467:in style: <ref( name=)?: --> 236:=8)&&(theaddnum.length : --> 663:/gi, /<ref(\sname=.+?)?: --> 661:/gi, /<ref(\sname=.+?)?: --> 659:/gi, /<ref(\sname=.+?)?: --> 657:/gi, /<ref(\sname=.+?)?: --> 655:/gi, /<ref(\sname=.+?)?: --> 653:/gi, /<ref(\sname=.+?)?: --> 651:/gi, /<ref(\sname=.+?)?: --> 649:/gi, /<ref(\sname=.+?)?: --> 647:/gi, /<ref(\sname=.+?)?: --> 645:/gi, /<ref(\sname=.+?)?: --> 643:/gi, /<ref(\sname=.+?)?: --> 506:LAST, FIRST MIDDLE. .?</ref: --> 492:LAST, FIRST (YYYY). .?</ref: --> 238:=8)&&(thevsnum.length : --> 712:] //cut out code can be found at ] 533:\s*\]+?)\s(]+?)\]\s*<\/ref: --> 505:!1! !2! <ref( name=)?: --> 503:!1! !2! <ref( name=)?: --> 501:!1! !2! <ref( name=)?: --> 451:(32 - cnt)); } // </nowiki: --> 338:<div class="db-bWFnbmlmeQ": --> 112: 24: 545:\s*(http:\/\/+?)\s*<\/ref: --> 159:==The Biography==</nowiki: --> 106:Knowledge (XXG):Bypass your cache 525:\s*\+?\.pdf)\]?\s*<\/ref: --> 519:LAST, FIRST. "~~". </ref: --> 131:'+initMsg_PR+'</textarea: --> 56: 639:in style: <ref( name=)?: --> 516:LAST, FIRST. "~~". <url: --> 264:|{\{(ref|fn))/, /<\/ref: --> 234:= 2 && check_brit : --> 144:'+restoreText_PR+'</div: --> 499:!2! <ref( name=)?: --> 223:)?(th|st|nd|rd)(<\/sup: --> 193:|squared inches|ft<sup: --> 1: 326:=0; i--) ps(f('</?: --> 201:|squared centi|mi<sup: --> 197:|squared meter|km<sup: --> 161:==Biography==</nowiki: --> 154:mi, kilometers squared -: --> 627:') .replace(/<sup: --> 298:<form name='theForm': --> 281:&amp;nbsp;</code: --> 203:|squared mile|in<sup: --> 199:|squared kilo|cm<sup: --> 188:{| ] |} if(/<\/table: --> 150:&amp;nbsp;</code: --> 668:", "gi"), "<ref $ 1: --> 482:LAST, FIRST. ?</ref: --> 283:"+list_params+"</tt: --> 213:|cubic centi|mi<sup: --> 209:|cubic meter|km<sup: --> 195:|squared feet|m<sup: --> 165:==Journey==</nowiki: --> 742: 609:\s*<(http:\/\/.+?): --> 541:\s*\+?)\]\s*<\/ref: --> 486:FIRST LAST. ?</ref: --> 484:LAST, FIRST. </ref: --> 278:this comment).<sup: --> 211:|cubic kilo|cm<sup: --> 205:|cubic inch|ft<sup: --> 709:*"in order to/for" -: --> 513:LAST, FIRST. <url: --> 488:FIRST LAST. </ref: --> 207:|cubic feet|m<sup: --> 168:THE FOOTNOTE</ref: --> 164:'', use ''<nowiki: --> 125:new window</span: --> 113: 37:appropriate village pump 726:Knowledge (XXG) scripts 490:(?YYYY)?.?</ref: --> 128:' + '</div: --> 69:User:AndyZ/peerreviewer 277:strike</strike: --> 249:a number of</s: --> 633:/gi, '<ref$ 1: --> 625:/gi, '<ref$ 1: --> 621:/gi, '<ref$ 1: --> 616:/gi, '<ref$ 1: --> 611:/gi, '<ref$ 1: --> 606:/gi, '<ref$ 1: --> 602:/gi, '<ref$ 1: --> 598:/gi, '<ref$ 1: --> 594:/gi, '<ref$ 1: --> 590:/gi, '<ref$ 1: --> 586:/gi, '<ref$ 1: --> 582:/gi, '<ref$ 1: --> 578:/gi, '<ref$ 1: --> 574:/gi, '<ref$ 1: --> 570:/gi, '<ref$ 1: --> 566:/gi, '<ref$ 1: --> 562:/gi, '<ref$ 1: --> 558:/gi, '<ref$ 1: --> 554:/gi, '<ref$ 1: --> 550:/gi, '<ref$ 1: --> 546:/gi, '<ref$ 1: --> 542:/gi, '<ref$ 1: --> 538:/gi, '<ref$ 1: --> 534:/gi, '<ref$ 1: --> 530:/gi, '<ref$ 1: --> 526:/gi, '<ref$ 1: --> 520:<ref( name=)?: --> 518:<ref( name=)?: --> 515:<ref( name=)?: --> 512:<ref( name=)?: --> 509:<ref( name=)?: --> 507:<ref( name=)?: --> 497:<ref( name=)?: --> 495:<ref( name=)?: --> 493:<ref( name=)?: --> 491:<ref( name=)?: --> 489:<ref( name=)?: --> 487:<ref( name=)?: --> 485:<ref( name=)?: --> 483:<ref( name=)?: --> 481:<ref( name=)?: --> 475:<ref( name=)?: --> 473:<ref( name=)?: --> 471:<ref( name=)?: --> 469:<ref( name=)?: --> 463:/gi, '<$ 1r /: --> 387:$ 2:$ 3$ 4</a: --> 385:$ 1:$ 2$ 3</a: --> 289:</s" + "cript: --> 120:move to</span: --> 366:(.*?)<\/math: --> 340:<img src='?': --> 258:the year </s: --> 173:<references/: --> 138:' + '</div: --> 461:)?th(<\/sup: --> 459:)?th(<\/sup: --> 362:':'</strong: --> 178:+ "|]]</sup: --> 157:, and pounds -: --> 141:' +'</form: --> 127:close</span: --> 629:/gi, '<ref: --> 295:history</a: --> 100:key and click the 710:to/for</s: --> 696:$ 4<\/ref: --> 693:$ 4<\/ref: --> 690:$ 4<\/ref: --> 687:$ 4<\/ref: --> 620:\s*<\/ref: --> 615:\s*<\/ref: --> 610:\s*<\/ref: --> 466:s</nowiki: --> 377:$ 2$ 3</a: --> 375:$ 1$ 2</a: --> 226:]</nowiki: --> 75: 74: 49: 48: 733: 684:$ 3</ref: --> 681:$ 3</ref: --> 678:$ 3</ref: --> 675:$ 3</ref: --> 672:*?*</sup: --> 670:|<ref*?/: --> 638:</nowiki: --> 478:url</ref: --> 446:16) + (lsw : --> 175:</nowiki: --> 169:</nowiki: --> 115://] <pre: --> 109: 96:: Hold down the 60: 53: 27: 741: 740: 736: 735: 734: 732: 731: 730: 716: 715: 714: 713: 628:\<\/sup: --> 472:.?</ref: --> 364:':'</em: --> 351:?</span: --> 308:// <pre: --> 293:edit</a: --> 285:]]</sup: --> 279:]]</sup: --> 275:]]</sup: --> 225:<nowiki: --> 220:3<\/sup: --> 218:2<\/sup: --> 214:3<\/sup: --> 212:3<\/sup: --> 210:3<\/sup: --> 208:3<\/sup: --> 206:3<\/sup: --> 204:3<\/sup: --> 202:2<\/sup: --> 200:2<\/sup: --> 198:2<\/sup: --> 196:2<\/sup: --> 194:2<\/sup: --> 192:2<\/sup: --> 171:<nowiki: --> 148:th</sup: --> 146:th</sup: --> 111: 110: 99: 76: 50: 40: 22: 21: 20: 12: 11: 5: 739: 737: 729: 728: 718: 717: 468:?</ref: --> 444:16) + (y : --> 381:$ 4</a: --> 379:$ 2</a: --> 373:$ 2</a: --> 371:$ 1</a: --> 369:$ 1</a: --> 354:?</div: --> 346:?</div: --> 343:?</div: --> 303:</form: --> 259:</font: --> 255:</font: --> 254:now</s: --> 250:</font: --> 246:</font: --> 245:All</s: --> 227:</code: --> 216:<\/sup: --> 176:</code: --> 156:2</sup: --> 155:km<sup: --> 114: 90:Microsoft Edge 73: 72: 61: 51: 47: 46: 25: 23: 15: 14: 13: 10: 9: 6: 4: 3: 2: 738: 727: 724: 723: 721: 671:)<sup: --> 637:<refs: --> 523:</sup: --> 517:</ref: --> 514:</ref: --> 511:</ref: --> 476:</ref: --> 474:</ref: --> 470:</ref: --> 389:?</h?: --> 352:</div: --> 350:<span: --> 348:</div: --> 342:</div: --> 311:</div: --> 296:) <br: --> 284:.<sup: --> 187:syntax -: --> 174:</div: --> 142:</div: --> 140:</div: --> 107: 103: 95: 91: 87: 83: 82:Google Chrome 79: 70: 66: 62: 59: 55: 54: 44: 38: 34: 29: 28: 19: 522:<sup: --> 510:<url: --> 465:<ref: --> 409:0 || q : --> 360:?</a: --> 167:<ref: --> 139:<div: --> 101: 93: 89: 85: 81: 77: 42: 393:<br: --> 383:</a: --> 341:</a: --> 300:<br: --> 297:<br: --> 137:<br: --> 65:user script 257:<s: --> 253:<s: --> 248:<s: --> 244:<s: --> 41:This code 18:User:AndyZ 720:Category 98:⇧ Shift 86:Firefox 33:A guide 102:Reload 94:Safari 450:: --> 449:: --> 447:: --> 445:: --> 443:: --> 441:: --> 440:: --> 437:: --> 435:: --> 434:: --> 432:: --> 431:: --> 428:: --> 427:: --> 425:: --> 424:: --> 422:: --> 421:: --> 419:: --> 418:: --> 416:: --> 415:: --> 413:: --> 412:: --> 404:: --> 403:: --> 399:: --> 398:: --> 78:Note: 63:This 16:< 92:and 43:will 408:--> 252:--> 122:--> 722:: 88:, 84:, 108:. 71:. 39:.

Index

User:AndyZ
A guide
appropriate village pump

user script
User:AndyZ/peerreviewer
Knowledge (XXG):Bypass your cache
Category
Knowledge (XXG) scripts

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.

↑