Skip to content

Instantly share code, notes, and snippets.

View TheWebTech's full-sized avatar
🚀
Building big things

Jon McLaren TheWebTech

🚀
Building big things
View GitHub Profile
@TheWebTech
TheWebTech / hubspot_cos_bookmarklet.js
Last active March 14, 2018 14:20 — forked from spingary/hubspot_cos_bookmarklet.js
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);