/ Published in: JavaScript

Keeps your page intact if you don't wish to add to (just visit) Snipplr, by opening a new tab... also, this one works in both, Firefox + Safari/Opera.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
javascript:if(!confirm('Add%20to%20Snipplr?'))window.open('http://snipplr.com').focus();else(function()%7Bvar%20x=document.getElementsByTagName('head').item(0);var%20o=document.createElement('script');if(typeof%20o!='object')o=document.standardCreateElement('script');o.setAttribute('src','http://snipplr.com/bookmarklets/'+(navigator.userAgent.indexOf('Firefox')+1?'firefox':'safari')+'.js');o.setAttribute('type','text/javascript');x.appendChild(o);%7D)();
Comments
