1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-17 16:02:33 +01:00
Commit Graph

309 Commits

Author SHA1 Message Date
gorhill
44ce44aa42
code review: early injection of lookred up generic cosmetic filters when possible 2017-10-26 06:18:03 -04:00
gorhill
6112a68faf
fix #2984 2017-10-21 13:43:46 -04:00
gorhill
2660bee0d2
fix #2919 2017-09-05 19:49:48 -04:00
gorhill
eb3519b075
fix #2839 2017-08-03 10:18:05 -04:00
gorhill
39aeaa12a7
new feature: element zapper 2017-05-27 11:51:24 -04:00
gorhill
fcf43d972e
tentatively fix issue reported in #2612 re. FFox 24.8.1 2017-05-19 10:12:55 -04:00
gorhill
892d9b504a
minor code review while at it 2017-05-13 08:57:30 -04:00
gorhill
f1805d8175
fix #2607 2017-05-13 08:51:56 -04:00
gorhill
0232382695
refactor static network filtering, add support for csp injection 2017-05-12 10:35:11 -04:00
gorhill
510eba6bc4
fix #2477 2017-04-04 16:45:50 -04:00
gorhill
53b0db3d25
fix #2447 2017-03-14 15:09:40 -04:00
gorhill
cbca48307c fix https://github.com/gorhill/uBlock/pull/2314#issuecomment-278716960 2017-02-09 13:33:32 -05:00
gorhill
60605033bf fix #1871? ("blind" fix, need confirmation) 2017-02-03 08:12:26 -05:00
gorhill
aadf4a6427 fix #2340 2017-01-26 10:17:38 -05:00
gorhill
96df129ddb code reivew: do not cache assets fetched for viewing purpose 2017-01-23 10:13:07 -05:00
gorhill
50800427b3 generic code review related to the new 3rd-party filter pane 2017-01-23 09:35:05 -05:00
gorhill
9309df4196 3rd-party filters pane revisited 2017-01-22 16:05:16 -05:00
Raymond Hill
3b9fd49c50 Assets management refactored (#2314)
* refactoring assets management code

* finalizing refactoring of assets management

* various code review of new assets management code

* fix #2281

* fix #1961

* fix #1293

* fix #1275

* fix update scheduler timing logic

* forward compatibility (to be removed once 1.11+ is widespread)

* more codereview; give admins ability to specify own assets.json

* "assetKey" is more accurate than "path"

* fix group count update when building dom incrementally

* reorganize content (order, added URLs, etc.)

* ability to customize updater through advanced settings

* better spinner icon
2017-01-18 13:17:47 -05:00
gorhill
6e458dca5c fix #2264 2016-12-26 11:35:37 -05:00
gorhill
73a69711f2 add chainable and recursive cosmetic procedural filters 2016-12-25 16:56:39 -05:00
gorhill
d913eea1f6 fix #2132 + various minor code review 2016-11-08 15:53:08 -05:00
gorhill
ee4fc2aed6 code review re advanced settings + added popupFontSize 2016-11-06 16:27:21 -05:00
gorhill
8c3da95d65 fix #2067 (experimental) + support for hidden settings 2016-11-03 11:20:47 -04:00
gorhill
b2193a2b54 probably fix #2053 2016-10-29 11:15:04 -04:00
gorhill
3628de7a9d necessary changes for https://github.com/nikrolls/uBlock-Edge/pull/22 2016-10-28 08:40:38 -04:00
gorhill
e01a130bc5 changes required to use chromium platform code for webext platform code 2016-10-19 10:20:26 -04:00
gorhill
2e953b45c9 make cloud storage support optional
(currently not supported on FF-webext and MS Edge)
2016-10-16 13:04:31 -04:00
gorhill
da163bbe4b fix #1641 2016-10-13 13:25:57 -04:00
gorhill
3ff3ae7d70 fix #2053 2016-10-08 10:15:31 -04:00
gorhill
269c35a04a fix #1997 2016-09-16 17:41:17 -04:00
gorhill
e6d1a1f896 fix #1927 (revised commit msg due to missing quote) 2016-08-22 19:14:37 -04:00
gorhill
e9157bafb7 fix #1892, #1891 2016-08-13 16:42:58 -04:00
gorhill
6fd0bb4291 more refactoring of content script: better modularization of various components 2016-08-12 08:55:35 -04:00
gorhill
6fab1fe585 code review domCollapser: avoid duplicates -- helps for https://bugzilla.mozilla.org/show_bug.cgi?id=1232354 2016-08-08 09:59:57 -04:00
gorhill
6bd356dd2c fix #1856 2016-08-06 12:05:01 -04:00
gorhill
4da4709ed5 hopefully fix #1782: treat data: URI as 1st-party resources 2016-07-25 08:18:17 -04:00
gorhill
ed315d0a3b fix #1786 2016-07-07 16:42:01 -04:00
gorhill
8374799c7d various minor code review 2016-06-30 22:03:29 -04:00
gorhill
367e6ee8de fix #1726 2016-06-16 19:10:07 -04:00
gorhill
a33dc4f8e2 fix #1725 (assuming the issue was uBO not properly blocking data: images) 2016-06-16 09:46:18 -04:00
gorhill
e475e1ece8 this fixes #650; code reviewed changes re. #1202, #1545; fine tuning picker UI 2016-04-16 11:20:01 -04:00
gorhill
eb8c17d55c this takes care of #1443 2016-03-08 16:35:06 -05:00
gorhill
e5c2eff2d0 code review to fix "javascript.options.strict" warnings in browser console of Firefox 2016-03-07 09:55:04 -05:00
gorhill
abb6d1a610 this fixes #1403 2016-02-22 15:54:07 -05:00
gorhill
0adae9fb65 this fixes #1395 2016-02-17 09:28:20 -05:00
gorhill
89148351e8 #1163: this implements "block elements by size" 2016-01-17 13:30:43 -05:00
gorhill
7fbde83a28 this fixes #912 2016-01-04 10:48:28 -05:00
gorhill
ea49484dd3 this fixes #1067 + partially fixes #1070 2015-12-15 10:40:40 -05:00
gorhill
9c12ef02bb cosmetic filtering switch must disable ONLY cosmetic filtering.
Before this fix, the turning off cosmetic filtering through the per-site
cosmetic filtering switch was also disabling the blocked resources
collapser.
2015-12-13 00:33:53 -05:00
gorhill
fd1ccebf41 this fixes #1022 2015-12-07 08:59:22 -05:00
gorhill
2705432f43 code review 2015-12-02 00:59:51 -05:00
gorhill
72f5e44ec0 code review 2015-11-29 17:06:58 -05:00
gorhill
f2d2133d76 minor code review 2015-11-28 10:29:05 -05:00
gorhill
46d39838e3 redirect engine: more fine tuning + proof of concept for dayt.se 2015-11-26 17:56:30 -05:00
gorhill
2e8adfe944 this fixes #978 2015-11-26 11:11:28 -05:00
gorhill
135ad95d61 #760: reflect obsolete status immediately in UI 2015-10-14 14:16:43 -04:00
gorhill
6cc07a4027 removed unused code 2015-09-14 10:48:23 -04:00
gorhill
36a15e2e02 Experimental fix for #44
Disregard no-popups per-site switch for a URL which matches
a link clicked by the user.
2015-09-10 13:46:18 -04:00
gorhill
9b4b998364 #608: this fixes a bunch of strictness-related warnings 2015-08-18 11:44:24 -04:00
gorhill
690421aead sync feature (#80): draft 2015-08-11 15:29:14 -04:00
gorhill
8dd21c5f49 change of mind: removing 3p-passive because redundancy, better to work on doc 2015-07-27 09:20:47 -04:00
gorhill
35106dcd90 new dynamic rule type: "3p-passive", for css/images 2015-07-24 19:27:23 -04:00
gorhill
aeba71790f some refactoring: move to-aux-process-messaging timeout into vAPI 2015-06-29 10:46:20 -04:00
gorhill
f12bbd4703 comment 2015-06-27 08:52:45 -04:00
gorhill
7d2855180c some refactoring of new DOM inspector code 2015-06-26 15:45:54 -04:00
gorhill
631443768f dom inspector: ébauche 2015-06-26 00:08:41 -04:00
gorhill
9a5404ef07 this fixes the other half of #58: from which list(s) a cosmetic filter originates 2015-06-13 11:21:55 -04:00
gorhill
060a43fe81 this addresses half of #58: find list(s) from which a static network filter originates 2015-06-11 12:12:23 -04:00
gorhill
113c2e11a5 this (indirectly) fixes #15: let uBlock block remote fonts globally or on a site-basis 2015-06-10 09:23:48 -04:00
gorhill
90d009ea3f this fixes https://github.com/chrisaljoudi/uBlock/issues/675 2015-06-07 20:27:19 -04:00
gorhill
48f47a6849 logger: ability to create static net filters 2015-06-06 18:31:38 -04:00
gorhill
72c930ddff logger: UI work on URL-based dynamic filtering 2015-05-24 18:50:09 -04:00
gorhill
43f9657d0f this fixes #227 2015-05-22 08:05:55 -04:00
gorhill
284b4f62d1 dynamic url filtering 2015-05-21 14:15:17 -04:00
gorhill
6c3217d9af go-style switch-case 2015-05-19 13:59:53 -04:00
gorhill
f0a7f8ffea this fixes #184 2015-05-18 10:39:20 -04:00
gorhill
ea4f4cee72 logger: do not regenerate whole tab selector if no change 2015-05-18 08:12:35 -04:00
gorhill
e0284b8908 this fixes #193 2015-05-16 10:15:02 -04:00
gorhill
7eed999ff3 this fixes #188 2015-05-09 08:25:05 -04:00
gorhill
ce6eb9b7ac this fixes logger button in popup 2015-05-08 19:00:01 -04:00
gorhill
f9652b5f57 importing uMatrix unified logger 2015-05-08 18:28:01 -04:00
gorhill
ef84fd18ba this fixes https://github.com/chrisaljoudi/uBlock/issues/10 2015-04-26 11:39:39 -04:00
gorhill
0ce32af7af this fixes under-reporting of active cosmetic filters in logger 2015-04-25 08:27:27 -04:00
gorhill
9f9465d7e9 report in which frame the cosmetic filters were injected 2015-04-25 07:33:50 -04:00
gorhill
3d3bd13ea1 report active cosmetic filters in logger 2015-04-25 07:28:35 -04:00
gorhill
51e0ce6ad1 this fixes #87 2015-04-24 08:36:19 -04:00
gorhill
87a14ff339 import color-blind color scheme into logger 2015-04-23 18:46:14 -04:00
gorhill
361d2ac1a2 dissociate logging infrastructure from page stores 2015-04-23 18:23:03 -04:00
gorhill
78ad7929a6 This addresses colour-blindness issues, using contributed solution https://github.com/chrisaljoudi/uBlock/issues/467#issuecomment-95177219 2015-04-22 10:46:10 -04:00
gorhill
544e1215dd this fixes #63 2015-04-16 12:14:43 -04:00
gorhill
475aa5a8fc code review 2015-04-10 16:31:29 -04:00
gorhill
28fc4f99d4 cleanup 2015-04-10 09:52:16 -04:00
gorhill
67417c5cec cleaning up old stuff 2015-04-10 02:17:12 -04:00
gorhill
651c25c839 fixed popup blocker switch; added ability to manually edit switches 2015-04-09 11:19:31 -04:00
gorhill
6441161329 refactored tabs/context code 2015-04-08 18:46:08 -04:00
gorhill
4aa61fcf89 this fixes https://github.com/gorhill/uMatrix/issues/144 2015-04-07 19:10:03 -04:00
YFdyh000
6e77ec33ff Correct issue links 2015-04-07 09:46:26 +08:00
gorhill
d098a9fb3d strict blocking: give choice of domain/hostname on warning page 2015-04-06 10:26:32 -04:00
gorhill
2dde6f15de new switch: toggle cosmetic filtering on/off for a site 2015-04-05 12:03:14 -04:00
gorhill
53d96cc88f do not include unused entries in backup 2015-03-30 08:12:41 -04:00
gorhill
923019794d this fixes #618 2015-03-29 12:13:28 -04:00
gorhill
f2ff0edfaf this fixes #1013, #1062 (draft) 2015-03-27 13:00:55 -04:00
gorhill
b938022d0b this fixes #1102 2015-03-27 09:50:31 -04:00
gorhill
a4b4bc98ff this fixes #1013 2015-03-25 19:28:22 -04:00
gorhill
6f155d55f8 this fixes #1040, #870 2015-03-25 10:12:56 -04:00
gorhill
45882970fa remember/restore element picker session data when same URL 2015-03-20 11:39:20 -04:00
gorhill
74981341e8 attempt at addressing #514, #518 2015-03-18 13:00:07 -04:00
gorhill
4e281715cf this fixes #1012 2015-03-14 14:59:39 -04:00
Deathamns
16218a1609 Code organizing 2015-03-12 18:48:43 +01:00
gorhill
145e5da7ce this fixes #990 + code review for #978 2015-03-11 11:05:13 -04:00
Deathamns
415846e326 Merge pull request #956 from AlexVallat/master
UI for Fennec (Firefox for Android)
2015-03-11 15:32:42 +01:00
gorhill
39ad1585e9 this fixes #982, #978, #965 2015-03-10 23:46:18 -04:00
AlexVallat
62c8ffbcc4 Merge branch 'master' of https://github.com/gorhill/uBlock
Conflicts:
	platform/firefox/vapi-background.js
	src/_locales/en/messages.json
2015-03-10 18:34:16 +00:00
gorhill
2478bd4f61 this fixes #224 for Chromium 2015-03-09 12:57:52 -04:00
Deathamns
95b778fbc7 Change extension description 2015-03-07 19:20:18 +01:00
AlexVallat
4481e951cc Merge branch 'master' of https://github.com/gorhill/uBlock 2015-03-07 14:11:35 +00:00
gorhill
d8b949ecbe this fixes #932 2015-03-06 23:36:09 -05:00
AlexVallat
2b60436ece Initial UI support for Fennec 2015-03-02 18:49:34 +00:00
gorhill
c7bab5502e this mitigates #520, #376 2015-02-23 18:31:29 -05:00
gorhill
e464dd9042 this fixes #820 2015-02-16 21:15:09 -05:00
Deathamns
8693ab738d vAPI.sessionId, element-picker dialog as iframe
vAPI.sessionId - random ID generated every time when a page loads.

Having the dialog in an iframe lowers the chance of interference with the
styling of the page, also avoids using innerHTML (AMO complaint).
2015-02-14 10:47:04 +01:00
gorhill
58b54cf9f9 this fixes #772 2015-02-11 17:28:19 -05:00
gorhill
6013880472 this addresses https://github.com/gorhill/uBlock/issues/731#issuecomment-73956166 2015-02-11 15:49:22 -05:00
gorhill
44768e8dba #731: UI counterpart 2015-02-11 11:34:51 -05:00
gorhill
646f92b32f #731: added session and permanent firewalls 2015-02-11 00:26:45 -05:00
gorhill
d0f81f5e3b this fixes #689 2015-02-05 23:14:12 -05:00
Chris
14e6860c30 Fix getAppData not to require cloning of non-content-scope function .restart (resolves most common exception in background) 2015-02-04 19:11:17 -07:00
gorhill
9c2277fccf this fixes #690 2015-02-04 12:51:43 -05:00
gorhill
77133b58c6 this fixes #682 2015-02-04 09:03:34 -05:00
gorhill
c7edec0d68 this fixes #683 2015-02-04 00:24:12 -05:00
gorhill
b51b0e5350 code review 2015-01-22 13:00:59 -05:00
gorhill
4c7f4771e2 #475: whitelist behind-the-scene by default 2015-01-21 21:46:11 -05:00
gorhill
7b8392ca48 more fixes for #105 2015-01-21 11:13:32 -05:00
gorhill
a64bca0fa6 code review 2015-01-21 00:32:32 -05:00
gorhill
759a156e24 started work on #105, #475, and possibly #510 2015-01-19 18:42:58 -05:00
gorhill
ee01803419 this fixes one part of #498 2015-01-14 17:45:55 -05:00
gorhill
5201946c3f this fixes #473 2015-01-11 09:47:14 -05:00
gorhill
9fc136e7e8 hopefully this fixes #470 2015-01-10 11:23:28 -05:00
gorhill
ba31014503 support elemhide filter option 2015-01-08 21:04:48 -05:00
gorhill
0c152b2859 fixed flawed 1st-/3rd-party test 2015-01-08 10:37:19 -05:00
gorhill
881e8111d8 "advanced user" flag + rearranging a bit dashboard 2015-01-06 11:44:06 -05:00
gorhill
1597ce7fd9 lot of work related to dynamic filtering + new net requests logger 2015-01-06 08:01:15 -05:00
gorhill
3c941f8309 another round of work re dynamic filtering 2014-12-31 17:26:17 -05:00
gorhill
a0279b1378 more work to expand dynamic filtering 2014-12-30 16:36:29 -05:00
gorhill
1fe7045b92 too many changes for #433: branching so that I can commit and keep working on it 2014-12-28 10:07:43 -05:00
gorhill
a7c9134bf6 this fixes #417 2014-12-17 08:04:21 -05:00
Raymond Hill
0e12797709 extension restart is platform-dependent 2014-12-02 14:02:17 -02:00
Raymond Hill
2e4c0a2bfe remove depending on vapi-appinfo.js 2014-12-01 14:25:33 -02:00
Raymond Hill
fb1221a8a1 remove overhead of PSL for "3rd-party filters" tab 2014-11-26 15:45:36 -02:00
Raymond Hill
91276bebfb eliminate overhead of creating two funcs/closure for each port connection 2014-11-16 12:49:55 -02:00
Raymond Hill
338bf59507 give specific message handlers priority over default one 2014-11-16 11:09:28 -02:00
Raymond Hill
84c069dfaa continued: corralling platform-specific stuff into their meta folder 2014-11-16 00:21:13 -02:00
Deathamns
6d49ef0dac Avoid using Chrome's @@bidi_* type i18n messages
... for the sake of portability.

When including vapi-common.js in an HTML file, then the body element there
will have a "dir" attribute filled with the current locale's direction
(ltr or rtl).

The following languages are considered right-to-left: ar, he, fa, ps, ur.
Everything else is left-to-right.

After the "dir" attribute is set, we can decide in CSS which elements
should have different styling for rtl languages (e.g., body[dir=rtl] #id).
2014-11-09 17:40:40 +01:00
Deathamns
749b6f186d Use a dedicated file for storing extension info
Chrome has getManifest(), Safari doesn't have anything, Firefox has an
asynchronous API...
So, instead of using extension APIs, store the common informations
(extension name, version, homepage url) in a file (vapi-appinfo.js), which
can be included when it's needed (its data will be available at vAPI.app.____).
The file's content is updated each time the extension is being built, so
it shouldn't be modified manually.
2014-11-09 17:39:38 +01:00
Deathamns
d38ca13107 Script injection, element picker, messaging
- Add script injection to vAPI, plus a raw implementation for Safari
  (element-picker.js requires it)
- Tweak element picker to work with Safari
- Revert a change from previous commit: element-picker.js' background
  message handler (since actually it can have its own messaging channel)
- Don't send "undefined" reponses from background to content
2014-11-09 17:39:30 +01:00
Deathamns
88a7910bcb element-picker fixes, changes
- Include latest changes from gorhill/uBlock/master
- Append the pickerRoot container to document.documentElement instead
  of document.body ("body > div" type CSS selectors are more common, so
  they could overwrite the extension's styling with higher probability)
- Request localized strings from the background script instead of using
  the i18n API in content scripts
- Fuse element-picker.js' message handling into contentscript-end.js', since
  only one messaging channel can live at a time in a content script
2014-11-09 17:39:28 +01:00
Deathamns
1a83d1a753 Move vAPI into .jshintrc as a global 2014-11-09 17:39:22 +01:00
Deathamns
0886f7e886 Add .jshintrc, and use the "use strict" directive
.jshintrc's otion-set is a personal choice, merely a suggestion.
Beside that, it includes some common globals for specific browsers, so
there's no need to set the globals in every .js file.

In order to force strict coding, "use strict" directive was added into
every .js file.
2014-11-09 17:39:17 +01:00
Deathamns
5b79bf3536 Work on vendor API abstraction, and near complete Safari support 2014-11-09 17:39:12 +01:00