Skip to content

Instantly share code, notes, and snippets.

@spingary
Last active March 14, 2018 14:04
Show Gist options
  • Save spingary/4884322f5ac71a42b74f to your computer and use it in GitHub Desktop.
Save spingary/4884322f5ac71a42b74f to your computer and use it in GitHub Desktop.
Hubspot COS Helper Bookmarklet
javascript: (function() {
var link = document.createElement("link");
link.href = "https://rawgit.com/spingary/060fcc7924ccdd21cc1b/raw/hubspot_cos_help_styles.css";
link.type = "text/css";
link.rel = "stylesheet";
var linkb = link.cloneNode(true);
document.getElementsByTagName("head")[0].appendChild(link);
var frame = window.frames['design-manager-iframe'];
var contents = jQuery(frame).contents();
jQuery('head',contents).append(linkb);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment