Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Old WTFramework bookmarklet
javascript:
(function(){
var m,n=[],j,c,t=document.getElementById("_wtframework"),q=0;c=function(){document.body.removeChild(m);};if(t){document.body.removeChild(t);return;}var b=["MooTools.version","MooTools.More.version","base2.version","dojo.version","Ext.version","jQuery.fn.jquery","$.ui.version","MochiKit.MochiKit.VERSION","Prototype.Version","Scriptaculous.Version","YAHOO.VERSION","S2.Version"];var r=["MooTools Core","MooTools More","Base2","Dojo","Ext JS","jQuery","jQuery UI","MochiKit","Prototype","Script.aculo.us","Yahoo UI","Scripty2"];var k={cursor:"pointer",textAlign:"left",padding:"8px 10px",margin:"0 0 5px",listStyle:"none",font:"bold 11px Lucida Grande",backgroundColor:"rgba(0, 0, 0, 0.7)",color:"#fff",BorderRadius:"5px",MozBorderRadius:"5px",WebkitBorderRadius:"5px",borderTop:"solid%201px%20rgba(255,%20255,%20255,%200.4)",borderLeft:"solid%201px%20rgba(0,%200,%200,%200.8)",borderRight:"solid%201px%20rgba(0,%200,%200,%200.8)",borderBottom:"solid%201px%20#000",textShadow:"0%201px%200%20#000",BoxShadow:"0%20-1px%200%20#000",MozBoxShadow:"0%20-1px%200%20#000",WebkitBoxShadow:"0%20-1px%200%20#000",cssFloat:"right",clear:"both"};var%20l={width:"190px",position:"fixed",padding:"0",margin:"0",right:"10px",top:"10px",zIndex:30000};var%20e={onclick:c,id:"_wtframework"};m=document.createElement("ul");for(var%20d%20in%20e){m[d]=e[d];}for(var%20h%20in%20l){m.style[h]=l[h];}document.body.appendChild(m);var%20f=function(v,i){n=document.createElement("li");n.innerHTML=v+(i?"%20("+i+")":"");for(var%20u%20in%20k){n.style[u]=k[u];}m.appendChild(n);};for(var%20a%20in%20b){if(b.hasOwnProperty(a)){var%20g=b[a].split("."),o=window;for(var%20p%20in%20g){if(g.hasOwnProperty(p)){o=o&&o[g[p]];}}if(o){f(r[a],o);q++;}}}if(q<1){f("No%20framework%20detected");}
})();
void(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.