Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/addon/lib/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'addon/lib/main.js')
-rw-r--r--addon/lib/main.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/addon/lib/main.js b/addon/lib/main.js
new file mode 100644
index 0000000..f99e0e9
--- /dev/null
+++ b/addon/lib/main.js
@@ -0,0 +1,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();
+ }
+});