summaryrefslogtreecommitdiffabout
path: root/content/generated-content.js
Side-by-side diff
Diffstat (limited to 'content/generated-content.js') (more/less context) (show whitespace changes)
-rw-r--r--content/generated-content.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/content/generated-content.js b/content/generated-content.js
new file mode 100644
index 0000000..0ad08bb
--- a/dev/null
+++ b/content/generated-content.js
@@ -0,0 +1,17 @@
+var generated = {
+ fireflix: null,
+ data: null,
+
+ init: function() {
+ this.fireflix = window.arguments[0];
+ this.data = window.arguments[1];
+ this.databox = document.getElementById('data');
+ this.databox.value = this.data;
+ this.databox.select();
+ },
+ copy: function() {
+ var ch = Components.classes["@mozilla.org/widget/clipboardhelper;1"]
+ .getService(Components.interfaces.nsIClipboardHelper);
+ ch.copyString(this.data);
+ }
+};