blob: f99e0e9c428d45c92667b0802d4c1e94eed21e1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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();
}
});
|