Giter VIP home page Giter VIP logo

ermahgerd-twerter's Introduction

#ERMAHGERD TWERTER Now YOU TOO can join in the idioicy and ERMAGERD your Twitter Stream

Drop the following into a bookmark and giv'r on your twitter stream javascript:void(function(){var tweets=document.getElementById('stream-items-id').getElementsByClassName("js-tweet-text");for(i=0;i<tweets.length;i++){var self=tweets[i];var ermagedh_itd=function(a){a=a.toUpperCase();var b=a.split(" "),c=[];for(var d in b){var e=b[d].match(/^\W+/)||"",f=b[d].match(/\W+$/)||"",g=b[d].replace(e,"").replace(f,"");if(g){c.push(e+translate(g)+f)}else{c.push(b[d])}}self.innerHTML=c.join(" ")};var str_split=function(a,b){if(b===null){b=1}if(a===null||b<1){return false}a+="";var c=[],d=0,e=a.length;while(d<e){c.push(a.slice(d,d+=b))}return c};var translate=function(a){if(a.length==1){return a}switch(a){case"AWESOME":return"ERSUM";case"BANANA":return"BERNERNER";case"BAYOU":return"BERU";case"FAVORITE":case"FAVOURITE":return"FRAVRIT";case"GOOSEBUMPS":return"GERSBERMS";case"LONG":return"LERNG";case"MY":return"MAH";case"THE":return"DA";case"THEY":return"DEY";case"WE'RE":return"WER";case"YOU":return"U";case"YOU'RE":return"YER"}var b=a;if(b.length>2){a=a.replace(/[AEIOU]$/,"")}a=a.replace(/[^\w\s]|(.)(?=\1)/gi,"");a=a.replace(/[AEIOUY]{2,}/g,"E");a=a.replace(/OW/g,"ER");a=a.replace(/AKES/g,"ERKS");a=a.replace(/[AEIOUY]/g,"ER");a=a.replace(/ERH/g,"ER");a=a.replace(/MER/g,"MAH");a=a.replace("ERNG","IN");a=a.replace("ERPERD","ERPED");a=a.replace("MAHM","MERM");if(b.charAt(0)=="Y"){a="Y"+a}a=a.replace(/[^\w\s]|(.)(?=\1)/gi,"");if(b.substr(-3)=="LOW"&&a.substr(-3)=="LER"){a=a.substr(0,a.length-3)+"LO"}return a};ermagedh_itd(self.innerHTML)}})();

##BUGS

  1. Links don't work nicely

ermahgerd-twerter's People

Contributors

devonrw avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.