Skip to content

Instantly share code, notes, and snippets.

@nt1m
Created August 8, 2016 21:01
Show Gist options
  • Save nt1m/b517bd1eee085af636ab33a3fc9660d5 to your computer and use it in GitHub Desktop.
Save nt1m/b517bd1eee085af636ab33a3fc9660d5 to your computer and use it in GitHub Desktop.
frame script
const tabs = require("sdk/tabs");
const { viewFor } = require("sdk/view/core");
let messageManager = viewFor(tabs.activeTab).linkedBrowser.messageManager;
messageManager.loadFrameScript(self.data.url("yourframescript.js"), false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment