User:Elune Anzu/ponify.js

addOnloadHook( ponify ); function ponify { $('b').html(function(index, oldhtml) {   var img;    // SUPPORT = applejack    var supPat = /^support/i;    if (supPat.test(oldhtml)) {      img = "http://i.imgur.com/UKMJR.png";    }    // SLIGHT SUPPORT = twilight sparkle    var slSupPat = /^slight support/i;    if (slSupPat.test(oldhtml)) {      img = "http://i.imgur.com/v5HZU.png";    }    // WEAK SUPPORT = fluttershy    var weSupPat = /^weak support/i;    if (weSupPat.test(oldhtml)) {      img = "http://i.imgur.com/OT4s5.png";    }    // STRONG SUPPORT = princess luna    var stSupPat = /^strong support/i;    if (stSupPat.test(oldhtml)) {      img = "http://i.imgur.com/AgRLo.png";    }    // EXTREME SUPPORT = princess celestia    var exSupPat = /^extreme support/i;    if (exSupPat.test(oldhtml)) {      img = "http://i.imgur.com/VKLL2.png";    }    // OPPOSE = rainbow dash    var opPat = /^oppose/i;    if (opPat.test(oldhtml)) {      img = "http://i.imgur.com/KHel4.png"; }   // SLIGHT OPPOSE = bon-bon var slOpPat = /^slight oppose/i; if (slOpPat.test(oldhtml)) { img = "http://i.imgur.com/cjJR6.png"; }   // WEAK OPPOSE = lyra/heartstrings var weOpPat = /^weak oppose/i; if (weOpPat.test(oldhtml)) { img = "http://i.imgur.com/KTO5W.png"; }   // STRONG OPPOSE = rarity var stOpPat = /^strong oppose/i; if (stOpPat.test(oldhtml)) { img = "http://i.imgur.com/sgAmF.png"; }   // EXTREME OPPOSE = nightmare moon var exOpPat = /^extreme oppose/i; if (exOpPat.test(oldhtml)) { img = "http://i.imgur.com/MUiX7.png"; }   // NEUTRAL = big macintosh var neutPat = /^neutral/i; if (neutPat.test(oldhtml)) { img = "http://i.imgur.com/0NReL.png"; }   // QUESTION = spitfire var quesPat = /^question/i; if (quesPat.test(oldhtml)) { img = "http://i.imgur.com/AvOdl.png"; }   // COMMENT = granny smith var commPat = /^comment/i; if (commPat.test(oldhtml)) { img = "http://i.imgur.com/GWyBx.png"; }   // FUCK YES/FUCK NO = pinkamena diane pie var fuPat = /^fuck (yes|no)/i; if (fuPat.test(oldhtml)) { img = "http://i.imgur.com/EJFqH.png"; }   // EXTREME BUCKET/BUKKIT SUPPORT = pinkie pie var bsPat = /^extreme bu(c|k)k(e|i)t support/i; if (bsPat.test(oldhtml)) { img = "http://i.imgur.com/clibf.png"; }   // EXTREME BUCKET/BUKKIT OPPOSE = discord var boPat = /^extreme bu(c|k)k(e|i)t oppose/i; if (boPat.test(oldhtml)) { img = "http://i.imgur.com/SAxk7.png"; }   // WITHDRAWN/WITHDRAWING = derpy var withPat = /^withdraw(n|ing)/i; if (withPat.test(oldhtml)) { img = "http://i.imgur.com/jwmQy.png"; }   // NOTICE OF INTENT = cutie mark crusaders var noiPat = /^notice of intent/i; if (noiPat.test(oldhtml)) { img = "http://i.imgur.com/MwriO.png"; }   // CLOSURE/CLOSING/CLOSED = mayor mare var cloPat = /^clos(ure|ing|ed)/i; if (cloPat.test(oldhtml)) { img = "http://i.imgur.com/d65lb.png"; }   // REOPENED/REOPENING = screwball var reoPat = /^reopen(ing|ed)/i; if (reoPat.test(oldhtml)) { img = "http://i.imgur.com/ArWmW.png"; }   // (SPECIAL) REQUEST FOR CLOSURE = trixie var rfc1Pat = /^a user has \ '; }   if (img != null) { return '  '; }   return oldhtml; }); }