[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 257/483: Added hidden preference to allow selecting elements in local files - rules created this way will have no effect however
David Prévot
taffit at moszumanska.debian.org
Thu Jan 22 21:41:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus-element-hiding-helper.
commit 3cdcb103af05df3f431b70d7317d3dc50e2aae7c
Author: Wladimir Palant <trev at adblockplus.org>
Date: Tue Oct 26 11:09:27 2010 +0200
Added hidden preference to allow selecting elements in local files - rules created this way will have no effect however
---
defaults/preferences/elemhidehelper.js | 2 +-
modules/Aardvark.jsm | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/defaults/preferences/elemhidehelper.js b/defaults/preferences/elemhidehelper.js
index 1183c8b..09b9ad7 100644
--- a/defaults/preferences/elemhidehelper.js
+++ b/defaults/preferences/elemhidehelper.js
@@ -1,3 +1,3 @@
pref("extensions.elemhidehelper.selectelement_key", "Accel Shift K, Accel Shift S");
pref("extensions.elemhidehelper.showhelp", true);
-
+pref("extensions.elemhidehelper.acceptlocalfiles", false);
diff --git a/modules/Aardvark.jsm b/modules/Aardvark.jsm
index 12cee21..7a91f4c 100644
--- a/modules/Aardvark.jsm
+++ b/modules/Aardvark.jsm
@@ -106,7 +106,8 @@ Aardvark.canSelect = function(browser)
return false;
}
- if (location.hostname == "" &&
+ if (!Prefs.acceptlocalfiles &&
+ location.hostname == "" &&
location.protocol != "mailbox:" &&
location.protocol != "imap:" &&
location.protocol != "news:" &&
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus-element-hiding-helper.git
More information about the Pkg-mozext-commits
mailing list