summaryrefslogtreecommitdiffstats
path: root/conkeror/.conkerorrc/firebug.js
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-08-20 23:46:21 +0200
committerGravatar Tom Willemse2014-08-20 23:46:21 +0200
commitb833a5ce69028de5b3fd413153cde4afe64162e8 (patch)
treebfd1adbb13e16c7d34ba4829e09a43a0480c073b /conkeror/.conkerorrc/firebug.js
parentf2fd5b1db1ed95a75ec4c08732f3071a1921d852 (diff)
downloaddotfiles-b833a5ce69028de5b3fd413153cde4afe64162e8.tar.gz
dotfiles-b833a5ce69028de5b3fd413153cde4afe64162e8.zip
Update Conkeror config
Diffstat (limited to 'conkeror/.conkerorrc/firebug.js')
-rw-r--r--conkeror/.conkerorrc/firebug.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/conkeror/.conkerorrc/firebug.js b/conkeror/.conkerorrc/firebug.js
new file mode 100644
index 0000000..a194c40
--- /dev/null
+++ b/conkeror/.conkerorrc/firebug.js
@@ -0,0 +1,12 @@
+define_variable("firebug_url",
+ "http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js");
+
+function firebug (I) {
+ var doc = I.buffer.document;
+ var script = doc.createElement('script');
+ script.setAttribute('type', 'text/javascript');
+ script.setAttribute('src', firebug_url);
+ script.setAttribute('onload', 'firebug.init();');
+ doc.body.appendChild(script);
+}
+interactive("firebug", "open firebug lite", firebug);