Jump to content

User:Auscompgeek/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Auscompgeek (talk | contribs) at 02:16, 6 May 2011 (move content from other custom js pages). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
function rmflinks(){
regexTool("Custom regex","custom()"); //a default tool which performs regex input in a dynamic form
regexTool("Cleanup web jargon","cleanJargon()")
}
function cleanJargon(){regex(/\bi\b/g,"I");regex(/\bu\b/g,"you");regex(/\by?ur\b/g,"your");regex(/\byoure\b/g,"you're");regex(/\bwhats\b/g,"what's");regex(/\bthats\b/g,"that's");regex(/\bpl[ea]{0,2}(s|z)\b/g,"please");regex(/\b(than(x|z)|thx)\b/g,"thanks");regex(/\b(ty|thank ?(you|u|ya|ye)|ta)\b/g,"thank you");regex(/\bsrr?y\b/g,"sorry");regex(/\bdont\b/g,"don't");regex(/\bb4\b/g,"before");regex(/\bi\'?m\b/g,"I'm");regex(/\bdunno\b/g,"don't know");regex(/\bbrb\b/g,"be right back");regex(/\bi ?dk\b/g,"I don't know");regex(/\bi ?dr\b/g,"I don't remember");regex(/\b(b?cuz)|(b\/c(uz)?)\b/g,"because");regex(/\bdat\b/g,"that");regex(/\br\b/g,"are");regex(/\biirc\b/g,"if I recall/remember correctly");regex(/\bd\/l\b/g,"download");regex(/\bawsome\b/g,"awesome");setReason("Cleaned up 'web jargon'","appendonce")}
document.title=document.title.replace(/, the free encyclopedia$/,"").replace(/ - /g,": ")