Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
clip-it bookmarklet
javascript:(function(){function b(g){var m=document,k=m.createElement("script"),f=m.body,h=m.location,i="";try{if(!f){throw (0)}i=m.title;m.title="(Saving...) "+m.title;k.setAttribute("src",h.protocol+"//liveclippings.interdev.biz/clipping/create?content_type=html&public="+g+"&url="+encodeURIComponent(h.href));f.appendChild(k);m.title=i;return 0}catch(j){alert("The page has not loaded. Please try again in a moment.")}}function a(e,h){var d=document.createElement("script");d.src=e;var f=document.getElementsByTagName("head")[0];var g=false;d.onload=d.onreadystatechange=function(){if(!g&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){g=true;h();d.onload=d.onreadystatechange=null;f.removeChild(d)}};f.appendChild(d)}function c(d){var f=document.createElement("link");f.href=d;f.rel="stylesheet";f.type="text/css";var e=document.getElementsByTagName("head")[0];e.appendChild(f)}a("http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js",function(){a("http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js",function(){c("http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/smoothness/jquery-ui.css");var d=$("<div></div>").dialog({autoOpen:false,buttons:{Yes:function(){b(1);$(this).dialog("close")},No:function(){b(0);$(this).dialog("close")}},height:"auto",modal:true,title:"Would you like to make this url public?",width:"auto"});d.html(document.location.href);d.dialog("open")})})})();
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.