From c107c0cdc7cafbf7510eb2aeefdb94858739f423 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Tue, 19 Jul 2016 17:37:04 +0200 Subject: [PATCH] Move actual logic to data/jusfox.js from index.js --- data/jusfox.js | 1 + index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 data/jusfox.js diff --git a/data/jusfox.js b/data/jusfox.js new file mode 100644 index 0000000..6f9f22b --- /dev/null +++ b/data/jusfox.js @@ -0,0 +1 @@ +if (document.body) document.body.style.border = '5px solid red'; diff --git a/index.js b/index.js index 7085dcb..4dd1a42 100644 --- a/index.js +++ b/index.js @@ -4,6 +4,6 @@ require("sdk/tabs").on("ready", getLinks); function getLinks(tab) { tab.attach({ - contentScript: "if (document.body) document.body.style.border = '5px solid red';" + contentScriptFile: self.data.url("jusfox.js") }); }