1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

experimental filter to fix #1116 without needing an exception filter

This commit is contained in:
gorhill 2015-12-27 01:16:40 -05:00
parent adcd0ef8fc
commit 0b97f95392
3 changed files with 22 additions and 5 deletions

View File

@ -4,8 +4,8 @@
f7c529ec45cca5b2a584a2597c2e96a3 assets/ublock/filters.txt
146704ad1c0393e342afdb416762c183 assets/ublock/badware.txt
5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt
d6f734c851d5077bd545d0fa39e8bb8d assets/ublock/experimental.txt
f5be62339fe301622f09bea4c9c1924b assets/ublock/resources.txt
890e6b30c6a4cfd2ac5aa1bbe36d30fe assets/ublock/experimental.txt
5830ba4852b7dda0950d955ce95eb91e assets/ublock/resources.txt
9b486d2c137467e2f4c651c0f8e721c8 assets/ublock/filter-lists.json
50573388b525ede1a920cd4b4ee7fbf0 assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt
61cc16cf02e034370f0f47bc17c46551 assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt

View File

@ -12,7 +12,11 @@
# to safely block `googletagservices.com` everywhere by default.
||googletagservices.com/tag/js/gpt.js$script,redirect=googletagservices.com/gpt.js,important
# Replacement for `www.google-analytics.com/ga.js`: the goal is to be able to
# block `www.google-analytics.com` while preventing web page breakage.
# www.google-analytics.com
# The goal is to be able to block `www.google-analytics.com` while preventing
# web page breakage.
# Replacement for `www.google-analytics.com/ga.js`
||www.google-analytics.com/ga.js$script,redirect=www.google-analytics.com/ga.js,important
# Replacement for `www.google-analytics.com/analytics.js`
||www.google-analytics.com/analytics.js$script,redirect=www.google-analytics.com/analytics.js,important

View File

@ -171,6 +171,19 @@ www.google-analytics.com/ga.js application/javascript
window._gaq = gaq.qf = gaq;
})();
www.google-analytics.com/analytics.js application/javascript
(function() {
var ga = function(a, b, c, d, e, f) {
if ( typeof f !== 'object' || typeof f.hitCallback !== 'function' ) {
return;
}
if ( d === 'click' ) {
f.hitCallback();
}
};
window.ga = ga;
})();
# Ubiquitous googletagservices.com: not blocked by EasyPrivacy.
# "Tags are tiny bits of website code that let you measure traffic and