const {Cu} = require("chrome"); Cu.import("resource://gre/modules/ctypes.jsm"); libc = ctypes.open("libc.so.6"); var getpid = libc.declare("getpid", ctypes.default_abi, ctypes.int); console.log(getpid()); var windowUtils = require("window-utils"); windowUtils = new windowUtils.WindowTracker({ onTrack: function (window) { var toolbox = window.document.getElementById("navigator-toolbox"); toolbox.style.display = "none"; var addonbar = window.document.getElementById("addon-bar"); addonbar.style.display = "none"; var content = window.document.getElementById("content"); content.getNotificationBox().removeCurrentNotification(); } });