Skip to content

Instantly share code, notes, and snippets.

@hashrock
Created October 9, 2013 08:20
Show Gist options
  • Save hashrock/6897979 to your computer and use it in GitHub Desktop.
Save hashrock/6897979 to your computer and use it in GitHub Desktop.
bookmarklet
(function(){
var s = document.createElement('link');
s.setAttribute('href','http://perchouli.github.com/ixedit/stylesheets/ixedit.css');
s.setAttribute('rel','stylesheet');
s.setAttribute('type','text/css');document.getElementsByTagName('head')[0].appendChild(s);
s = document.createElement("script");
s.type = "text/javascript";
s.src = "http://code.jquery.com/jquery.min.js";
document.getElementsByTagName('body')[0].appendChild(s);
s = document.createElement("script");
s.type = "text/javascript";
s.src = "http://code.jquery.com/ui/jquery-ui-git.js";
document.getElementsByTagName('body')[0].appendChild(s);
s = document.createElement("script");
s.type = "text/javascript";
s.src = "http://rawgithub.com/perchouli/ixedit/master/ixedit.js";
document.getElementsByTagName('body')[0].appendChild(s);
})();
@hashrock
Copy link
Author

hashrock commented Oct 9, 2013

javascript:(function(){var s = document.createElement(%27link%27);s.setAttribute(%27href%27,%27http:%2F%2Fperchouli.github.com%2Fixedit%2Fstylesheets%2Fixedit.css%27);s.setAttribute(%27rel%27,%27stylesheet%27);s.setAttribute(%27type%27,%27text%2Fcss%27);document.getElementsByTagName(%27head%27)[0].appendChild(s);s = document.createElement(%22script%22);s.type = %22text%2Fjavascript%22;s.src = %22http:%2F%2Fcode.jquery.com%2Fjquery.min.js%22;document.getElementsByTagName(%27body%27)[0].appendChild(s);s = document.createElement(%22script%22);s.type = %22text%2Fjavascript%22;s.src = %22http:%2F%2Fcode.jquery.com%2Fui%2Fjquery-ui-git.js%22;document.getElementsByTagName(%27body%27)[0].appendChild(s);s = document.createElement(%22script%22);s.type = %22text%2Fjavascript%22;s.src = %22http:%2F%2Frawgithub.com%2Fperchouli%2Fixedit%2Fmaster%2Fixedit.js%22;document.getElementsByTagName(%27body%27)[0].appendChild(s);})();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment