CosmoConsole

CryptoSiter

Apr 24th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Cryptositer
  3. // @namespace    http://eta.memmove.net/cos/typo/
  4. // @version      0.1
  5. // @description  Just crypts the site permanently and randomly
  6. // @author       You
  7. // @grant        none
  8. // ==/UserScript==
  9. q=Math.random;function f(t){["title","alt","value"].map(function(e){t.hasAttribute(e)&&t.setAttribute(e,x(t.getAttribute(e)))}),[].slice.call(t.childNodes).map(function(e){1==e.nodeType&&["script","style"].indexOf(e.nodeName)<0&&f(e,x),3==e.nodeType&&t.replaceChild(document.createTextNode(x(e.nodeValue)),e)})}var nx=0,ny=0;getLetter=function(t){if(void 0==t)return"";if(t=t.toString().toLowerCase(),"("==t)return"9";if(")"==t)return"0";if("!"==t)return"1";for(var e=function(t,e,r){return t>r?r:e>t?e:t},r=.62,n=1.05,a=.96,o=n,i=.05,f=function(t){return t},u=function(t){return t.toString().toUpperCase()},h=["1234567890","qwertyuiop","asdfghjkl;","zxcvbnm,./"],l=-1,d=0,c=0,s=0,m=3,p=[0,0,0,-1,1],g=[0,-1,1,0,0],v=0;v<h.length;v++)if(h[v].indexOf(t)>=0){l=h[v].indexOf(t),d=v;break}if(0>l)return"";for(l+=nx,d+=ny,c=l,s=d,t!=t.toLowerCase()&&t==t.toUpperCase()&&(f=u);m>0;){o=n;for(var y=r;y>i;){var M=Math.floor(5*q());if(l=e(l+p[M],0,9),d=e(d+g[M],0,3),q()<=y)return nx+=l-c,ny+=d-s,f(h[d].charAt(l));y*=o,y>.65&&(o=a)}m--}return t},x=function(t){for(var e=t,r=e.split(" "),n=function(t,e,r){var n=t[e];return t[e]=t[r],t[r]=n,t},a=[["your","ur","you're"],["their","they're","there"],["definitely","defiantly","definately","definatly","definetly"],["i'm","im"],["finish","finnish"],["grammar","grammer"]],o=0;o<r.length;o++){var i=r[o];if(q()>.2)for(var f=0;f<a.length;f++)for(var u=0;u<a[f].length;u++)if(a[f][u]==i.toLowerCase()){var h=a[f][Math.floor(q()*a[f].length)],l=i.charAt(0);l==l.toUpperCase()&&l!=l.toLowerCase()&&(h=h.charAt(0).toUpperCase()+h.substring(1)),i=h;break}for(var d=i.split(""),c=0;c<d.length;c++)if(!(q()<.88)){var s=Math.floor(14*q());if(5>s&&(d[c]=getLetter(d[c])),(5==s||6==s)&&d.splice(c,0,getLetter(d[c])),7==s&&(d.splice(c,1),c--),s>7){var m=c+(q()>.5?-1:1)*Math.round(Math.pow(q()+.55,1.1));if(0>m)continue;if(m>=d.length)continue;n(d,c,m)}}i=d.join(""),r[o]=i}return e=r.join(" ")};for(var i=0;i<40;i++)f(document.documentElement);
Advertisement
Add Comment
Please, Sign In to add comment