From d065fe3ddaee8fff7acc9b4738df11877f8f7c42 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Thu, 11 Sep 2014 18:27:50 +0200 Subject: Release for upstream v31ESR --- .../resources/librejs/data/widget/images/README | 21 ++++++++++++++ .../librejs/data/widget/images/librejs-off.png | Bin 0 -> 498 bytes .../librejs/data/widget/images/librejs.png | Bin 0 -> 503 bytes .../resources/librejs/data/widget/widget.js | 32 +++++++++++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/images/README create mode 100644 helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/images/librejs-off.png create mode 100644 helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/images/librejs.png create mode 100644 helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/widget.js (limited to 'helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget') diff --git a/helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/images/README b/helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/images/README new file mode 100644 index 0000000..e442861 --- /dev/null +++ b/helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/images/README @@ -0,0 +1,21 @@ +/** + * GNU LibreJS - A browser add-on to block nonfree nontrivial JavaScript. + * * + * Copyright (C) 2011, 2012 Loic J. Duros + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +All images in this directory are free, released under the GPLv3 or later. \ No newline at end of file diff --git a/helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/images/librejs-off.png b/helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/images/librejs-off.png new file mode 100644 index 0000000..abb7b95 Binary files /dev/null and b/helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/images/librejs-off.png differ diff --git a/helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/images/librejs.png b/helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/images/librejs.png new file mode 100644 index 0000000..ee6a59b Binary files /dev/null and b/helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/images/librejs.png differ diff --git a/helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/widget.js b/helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/widget.js new file mode 100644 index 0000000..5bbb77a --- /dev/null +++ b/helpers/DATA/firefox/gnu/extensions/jid1-KtlZuoiikVfFew@jetpack/resources/librejs/data/widget/widget.js @@ -0,0 +1,32 @@ +/** + * GNU LibreJS - A browser add-on to block nonfree nontrivial JavaScript. + * * + * Copyright (C) 2011, 2012 Loic J. Duros + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +this.addEventListener('click', function(event) { + if(event.button === 0 && event.shiftKey === false) { + + self.port.emit('left-click'); + + } + + if(event.button == 2 || (event.button === 0 && event.shiftKey === true)){ + self.port.emit('right-click'); + } + event.preventDefault(); +}, true); -- cgit v1.2.3