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

419 Commits

Author SHA1 Message Date
gorhill
7ad472e75d this fixes #903 2015-02-28 10:00:12 -05:00
gorhill
f4f7d56724 new version 2015-02-27 19:47:34 -05:00
gorhill
25c0333fbe this addresses a part of #498 2015-02-26 18:08:42 -05:00
gorhill
5291e3e27a debugging code 2015-02-26 12:30:12 -05:00
gorhill
24611bab29 code review 2015-02-25 16:51:04 -05:00
gorhill
a9ce435f1c code to migrate obsolete list locations to new locations 2015-02-25 16:33:51 -05:00
gorhill
b323a335cd this fixes #886 2015-02-25 14:15:36 -05:00
gorhill
f65d44ba47 this fixes #840 2015-02-24 20:27:47 -05:00
gorhill
6318d24f40 this fixes #869 2015-02-24 20:10:10 -05:00
gorhill
1993b20e19 this fixes #881 2015-02-24 18:29:58 -05:00
gorhill
a9a4c739a1 comment review 2015-02-24 15:35:32 -05:00
gorhill
9a622107ea this completes fix of #520 2015-02-24 13:48:03 -05:00
gorhill
aa6e0d563d code review 2015-02-23 23:25:14 -05:00
gorhill
c7bab5502e this mitigates #520, #376 2015-02-23 18:31:29 -05:00
gorhill
da63253145 this fixes #846 2015-02-19 23:25:29 -05:00
gorhill
4d48fd078c usability: minimized by default 2015-02-18 09:15:59 -05:00
gorhill
b498f2f98d double-click to edit rules 2015-02-17 01:31:01 -05:00
gorhill
e464dd9042 this fixes #820 2015-02-16 21:15:09 -05:00
Deathamns
7dd60738c1 Save mouse position only in top document
... for the element picker. This way, right click/block element in an
iframe won't select the wrong element in the top document. Instead, it
will allow the user to pick the element manually.
2015-02-16 18:17:26 +01:00
gorhill
0cdf937a5e #815: code review 2015-02-16 11:21:25 -05:00
gorhill
0dc5c62b1e this fixes #815 2015-02-16 11:14:37 -05:00
Chris
23bfecfa50 Asset loader: take local file XHR status in mind 2015-02-15 16:49:37 -07:00
gorhill
42dcfa88b8 this has been unrequired since a while 2015-02-15 09:04:56 -05:00
gorhill
388ac77166 preparing for 1st release candidate 2015-02-15 07:16:31 -05:00
gorhill
337cfeb150 do not leak uBlock is in use (see comment in 21ea1a6e03) 2015-02-14 13:51:08 -05:00
gorhill
9d76974710 #789: code review: even simpler, just check parent node 2015-02-14 12:32:14 -05:00
gorhill
21ea1a6e03 #789: code review: simpler, just keep a reference to the style tag 2015-02-14 12:27:33 -05:00
gorhill
65b9ef2468 this fixes #789 2015-02-14 12:16:36 -05:00
Deathamns
2642d5aa92 replacing documentElement is enough 2015-02-14 10:47:11 +01:00
Deathamns
af05ceffb8 Strengthen the picker's visibility 2015-02-14 10:47:10 +01:00
Deathamns
fba0bf73ef Don't highlight the picker, handle empty filters 2015-02-14 10:47:09 +01:00
Deathamns
b3a2c9c5d3 Get URLs with properties instead of getAttribute 2015-02-14 10:47:08 +01:00
Deathamns
2d507b3edc Fix highlighting nodes for net filters in element-picker 2015-02-14 10:47:06 +01:00
Deathamns
187355b2b2 Move every part of the picker to the iframe 2015-02-14 10:47:05 +01: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
76337c2ac8 typo in code 2015-02-13 19:03:43 -05:00
gorhill
51a6c8beba trivial test to workaround potential bad filters 2015-02-13 18:59:51 -05:00
gorhill
94dd2b3d86 make sure a single \/ is not treated as a valid regex 2015-02-13 18:52:35 -05:00
gorhill
bca949748d this fixes #376 2015-02-13 12:10:10 -05: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
0a55c3fb20 Merge branch 'master' of github.com:gorhill/uBlock 2015-02-11 14:44:22 -05:00
gorhill
d0c8561ee9 fix padlock position bug when refreshing from popup 2015-02-11 14:44:08 -05:00
Chris
fd1390713a CSS cleanup: dynamic rules tab (My rules)
For comparison, before: http://chrisly.me/image/1g01441z0F2c

and after: http://chrisly.me/image/1v160U0P2i07

Also:

* give good class names to some element in dyna-rules.html
* select the ul more generically in dyna-rules.js (since a container was added)
2015-02-11 11:56:48 -07:00
gorhill
064f8f0f61 this fixes #771 2015-02-11 12:44:17 -05:00
gorhill
ea21aac192 jshint 2015-02-11 11:54:05 -05:00
gorhill
4b3e90de8c do not treat empty line as a rule 2015-02-11 11:49:08 -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
Chris
a17882a8cc Remove previous Safari overhead; cleanup workarounds from rest of code 2015-02-10 14:24:04 -07:00
Chris
029a673a58 Oops; timer wasn't being set 2015-02-10 13:25:10 -07:00
gorhill
7c08a4b259 this fixes #759 2015-02-10 10:55:54 -05:00
gorhill
90b8ddf404 this fixes #757 2015-02-09 20:12:37 -05:00
gorhill
0c3de436ca typo 2015-02-09 15:35:47 -05:00
gorhill
3c1cdef241 this fixes #748 2015-02-09 15:24:24 -05:00
gorhill
01474c7adb this fixes #727 2015-02-08 10:07:15 -05:00
gorhill
d9244b24c9 #723: code review pre-compute bit array 2015-02-07 23:42:07 -05:00
gorhill
ada85ca75e this fixes https://github.com/gorhill/uBlock/issues/723#issuecomment-73395963 2015-02-07 23:40:51 -05:00
gorhill
6be9a8a9d3 this fixes #723 2015-02-07 22:20:24 -05:00
gorhill
ff2746f276 code review of last commit 2015-02-07 15:39:46 -05:00
gorhill
92e26cb3d7 fixed request count indicators for incrementally built popup 2015-02-07 15:32:20 -05:00
gorhill
88b2cefa95 silly typo 2015-02-07 14:43:17 -05:00
gorhill
38b4dfdfae code review re. #704 2015-02-07 13:48:22 -05:00
gorhill
6e31f8011b this fixes #719 2015-02-07 08:34:11 -05:00
gorhill
2378a63cf0 re. #704: forgot localized string 2015-02-06 18:20:33 -05:00
gorhill
99be9f5c30 be ready to deal with invalid hostname 2015-02-06 18:11:36 -05:00
gorhill
478155d4f6 code review #704: fix var name accuracy 2015-02-06 17:46:20 -05:00
gorhill
be8b365e3c this fixes #704 2015-02-06 17:42:09 -05:00
gorhill
a24d22cd0f this fixes #708 2015-02-06 12:20:30 -05:00
gorhill
932f14bd6e code review re. #695 2015-02-06 06:49:48 -05:00
gorhill
36f0b4dec9 typo in comment 2015-02-06 01:20:43 -05:00
gorhill
edd57458df this fixes #695 2015-02-06 01:20:04 -05:00
gorhill
d0f81f5e3b this fixes #689 2015-02-05 23:14:12 -05:00
gorhill
f270f419d2 links to latest jsperf versions 2015-02-05 19:30:20 -05:00
gorhill
6688eb2cca comments to better document code 2015-02-05 08:45:29 -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
7a5d09b4a2 this fixes #665 2015-02-04 18:06:31 -05: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
085e600078 this addresses non-UI part of #682 2015-02-04 00:04:43 -05:00
gorhill
a9e9ea454f this fixes part of #671 2015-02-03 18:43:51 -05:00
gorhill
bbb2d8d1ff move profiling code to platform-specific 2015-02-03 18:40:56 -05:00
gorhill
e2b3e28762 for debugging purpose 2015-01-31 18:34:46 -05:00
gorhill
fb59756bc6 this fixes #656 2015-01-31 18:33:15 -05:00
gorhill
9467e7fdec this fixes #637 2015-01-30 00:49:30 -05:00
gorhill
357e226001 this fixes #630 2015-01-28 16:19:46 -05:00
gorhill
ba54b43fc4 trivial improvements 2015-01-27 13:42:17 -05:00
gorhill
44fa4d72d0 This fixes scrolling not being pinned on Firefox 2015-01-26 14:21:28 -05:00
barri
206eda785f dynamic-net-filtering.js length typos
Corrected length typos in dynamic-net-filtering.js in the is3rdParty function.
2015-01-26 10:27:58 +01:00
gorhill
42db160b93 forgot about reload: always rebind 2015-01-24 12:34:36 -05:00
gorhill
8dcc994371 addressing all small details 2015-01-24 12:06:22 -05:00
gorhill
d5fdd84da4 removed stray git-conflict line 2015-01-24 08:21:14 -05:00
gorhill
8088fa08ff Merge branch 'master' of github.com:gorhill/uBlock into fix-475 2015-01-24 08:17:31 -05:00
gorhill
2d287b5315 this fixes #589 + regression re. elemhide option 2015-01-23 21:47:56 -05:00
gorhill
1d1a3983e3 syncing with master 2015-01-23 15:36:32 -05:00
gorhill
f718e8e1f2 better/safer fix for #587 2015-01-23 15:02:47 -05:00
gorhill
91142ce847 code review: removed unused member 2015-01-23 13:39:06 -05:00
gorhill
44bc263a69 code review: oops 2015-01-23 11:56:43 -05:00
gorhill
eeb5e8de5b associate code change with issue #587 2015-01-23 11:47:31 -05:00
gorhill
673b8774be this fixes #582 2015-01-23 11:32:49 -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
4edfae4b94 code review: jshint'ed 2015-01-21 08:59:23 -05:00
gorhill
a64bca0fa6 code review 2015-01-21 00:32:32 -05:00
gorhill
255c68baa4 this fixes #536 2015-01-20 19:39:13 -05:00
gorhill
7f78ce2260 bring up to date with master 2015-01-19 18:45:00 -05:00
gorhill
759a156e24 started work on #105, #475, and possibly #510 2015-01-19 18:42:58 -05:00
gorhill
5ee417e110 new revision 2015-01-18 22:26:07 -05:00
gorhill
de88721132 Re. #540: disabling local mirroring for the time being 2015-01-18 19:17:36 -05:00
Deathamns
f1bcc0a24b Focus window when activating element-picker 2015-01-18 08:12:39 +01:00
gorhill
470eef85f3 this fixes #525 2015-01-17 15:03:33 -05:00
gorhill
94453ed878 this fixes #519 2015-01-17 07:53:19 -05:00
gorhill
3ab9aa46b0 this fixes #516 2015-01-17 07:19:48 -05:00
gorhill
f3475aedc2 code review: fixed double semi-column 2015-01-16 18:08:40 -05:00
gorhill
554129648d this fixes #503 2015-01-16 12:15:12 -05:00
gorhill
d7b16a8383 this fixes #515 2015-01-16 10:57:56 -05:00
gorhill
ca77c677d7 not needed 2015-01-15 08:30:38 -05:00
Deathamns
089af13e32 URL handling changes 2015-01-15 13:24:35 +01:00
gorhill
ee01803419 this fixes one part of #498 2015-01-14 17:45:55 -05:00
gorhill
de9fad5ec3 this fixes #464 2015-01-13 15:52:15 -05:00
Deathamns
bcc1c0da11 Fix prorblems caused by vAPI.insertHTML 2015-01-13 20:25:10 +01:00
gorhill
b436f8e829 this fixes #490 2015-01-13 11:54:54 -05:00
gorhill
5ec300602a this fixes default tab selection for Firefox 2015-01-13 11:01:33 -05:00
Deathamns
b4ea545412 Implement vAPI.insertHTML
The purpose of this API is basically to satisfy AMO reviewers in the
future, since the use of innerHTML with variables (i.e., not plain text) will
be rejected without any questions.

Since this is not a problem for browsers other than Firefox, they will
use simple innerHTML assignment, however safe-parsing could be implemented
for them too.
2015-01-13 07:30:07 +01:00
Deathamns
8a9165daa2 Firefox: blocking improvements / other fixes
- Implement pop-up blocking
- Support blocking redirected requests
- Fix Local mirroring and inline-script blocking
- Block content on data: and about:blank pages
2015-01-13 07:29:56 +01:00
Deathamns
5e55ba772d Code styling 2015-01-13 07:29:49 +01:00
Deathamns
b8c943d539 Make vAPI.setIcon less Chromium specific 2015-01-13 07:29:46 +01:00
Deathamns
b301ac031e Popup related changes 2015-01-13 07:29:44 +01:00
Deathamns
cb5d860725 Firefox: implement toolbar button and popup 2015-01-13 07:29:01 +01:00
Deathamns
3c76c61f61 Firefox: partial vAPI.tabs implementation 2015-01-13 07:28:57 +01:00
gorhill
42937eb1b1 this fixes #482 2015-01-12 10:10:03 -05:00
gorhill
5201946c3f this fixes #473 2015-01-11 09:47:14 -05:00
gorhill
8ff2dc362c this fixes #471 2015-01-11 08:31:38 -05:00
gorhill
a3d166d18e jshint 2015-01-10 11:44:37 -05:00
gorhill
80ef8f3777 code review 2015-01-10 11:32:24 -05:00
gorhill
9fc136e7e8 hopefully this fixes #470 2015-01-10 11:23:28 -05:00
gorhill
58e3acd0c7 probably more reasonable 2015-01-09 14:34:50 -05:00
gorhill
e6793c1fdb code review re #26 2015-01-09 00:06: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
bdf770a1bb need to maybe skip type after transposition 2015-01-07 20:42:19 -05:00
gorhill
ae2eb25e25 also log root document for convenience 2015-01-07 18:56:03 -05:00
gorhill
3e084455a7 regression 2015-01-07 18:38:05 -05:00
gorhill
cf446e97c8 output localized numbers 2015-01-07 17:42:13 -05:00
gorhill
cef1ac0ec9 regression 2015-01-07 14:24:06 -05:00
gorhill
d639c63670 code review 2015-01-07 11:36:23 -05:00
gorhill
f36880315a code review: fixed reloading of dynamic filtering rules 2015-01-07 08:49:52 -05:00
gorhill
2bed24bb99 code review 2015-01-06 19:51:50 -05:00
gorhill
ace190a33e regression 2015-01-06 15:35:08 -05:00
gorhill
4b9fc6d6f5 fixed import/export of dynamic rules 2015-01-06 12:14:37 -05:00
gorhill
881e8111d8 "advanced user" flag + rearranging a bit dashboard 2015-01-06 11:44:06 -05:00
gorhill
3a5c2cfa57 code review 2015-01-06 08:44:19 -05:00
gorhill
1597ce7fd9 lot of work related to dynamic filtering + new net requests logger 2015-01-06 08:01:15 -05:00
gorhill
81e035589b Merge branch 'master' of github.com:gorhill/uBlock into fix-433 2015-01-04 10:04:59 -05:00
gorhill
ea2043c0eb auto cleanup of listeners 2015-01-04 10:03:51 -05:00
gorhill
e8045d154b bringing changes from master 2015-01-02 14:19:12 -05:00
gorhill
00995992d2 this fixes #455 2015-01-02 13:42:35 -05:00
gorhill
2d05d51664 code review for #456 2015-01-01 21:14:53 -05:00
gorhill
2a7e9f8d98 this fixes #456: another unrelated bug unveil from previous fix 2015-01-01 20:58:19 -05:00
gorhill
057e95bed0 fixed comment 2015-01-01 19:16:02 -05:00
gorhill
33d73b343d this fixes #456 2015-01-01 19:09:40 -05:00
gorhill
4cbfb0fa6b semantically better 2015-01-01 10:57:03 -05:00
gorhill
5bfe3b09a7 filtering result has been refactored 2015-01-01 10:55:00 -05:00
gorhill
df2db73fb1 bringing branch up to date with master 2015-01-01 09:40:14 -05:00
gorhill
8562f70144 avoid potential double execution of firstRetrieveHandler (because mutations observer) 2015-01-01 09:15:37 -05:00
gorhill
aca35e4cbc code review for #452: avoid if'ing each time 2015-01-01 08:09:44 -05:00
gorhill
4c7533b786 code review for #452 2015-01-01 07:46:33 -05:00
gorhill
619b89e6a6 avoid dom changes if possible 2015-01-01 07:29:28 -05:00
gorhill
3b0dac6402 Merge branch 'master' of github.com:gorhill/uBlock into fix-433 2014-12-31 23:24:07 -05:00
gorhill
baa0fee0f3 this fixes #452 2014-12-31 23:09:22 -05:00
gorhill
3c941f8309 another round of work re dynamic filtering 2014-12-31 17:26:17 -05:00
gorhill
43e773aab2 finally a fully working draft: now onto myriad finishing touches 2014-12-31 10:47:19 -05:00
gorhill
a0279b1378 more work to expand dynamic filtering 2014-12-30 16:36:29 -05:00
gorhill
b49b0864d3 code review: #433 2014-12-28 12:04:48 -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
aed66e5278 code review for #438 2014-12-27 13:42:47 -05:00
gorhill
c0b9e634b3 this fixes #438 2014-12-26 15:26:44 -05:00
gorhill
f60f149531 1000 is k, not K 2014-12-24 08:11:22 -05:00
gorhill
8eaa92f0a2 for debugging purpose when investigating 2014-12-22 18:38:18 -05:00
gorhill
e904e96d4d this fixes #436 2014-12-22 14:48:17 -05:00
gorhill
97bf6e279e further fix re #426 2014-12-21 00:07:08 -05:00
gorhill
4f229c7c27 this fixes #426 2014-12-20 15:28:16 -05:00
gorhill
59abd062ef #423: code review (oops) 2014-12-19 14:06:55 -05:00
gorhill
0cdc703f13 #423: code review 2014-12-19 14:04:17 -05:00
gorhill
6fc7f96a48 this fixes #423 2014-12-19 14:00:46 -05:00
gorhill
0d3dd3d2ec code review for #420: mind that the rule can apply everywhere 2014-12-17 10:47:52 -05:00
gorhill
b9c1f2e397 this fixes #420 2014-12-17 10:32:50 -05:00
gorhill
ceb36732cc jshint 2014-12-17 10:09:08 -05:00
gorhill
a7c9134bf6 this fixes #417 2014-12-17 08:04:21 -05:00
gorhill
5019f241df this fixes #418; also remove last chrome API reference from portable code 2014-12-17 08:02:37 -05:00
gorhill
a1172b1efe code review related to #405 2014-12-15 14:37:09 -05:00
gorhill
49d77eab05 more changes related to fix to #405 2014-12-15 11:02:50 -05:00
gorhill
084a1ef8d0 # is allowed with fix to #405 2014-12-15 09:28:56 -05:00
gorhill
22fe58e59a this fixes #414 2014-12-15 09:00:49 -05:00
gorhill
f7860cab7c this fixes #343 2014-12-15 07:19:32 -05:00
gorhill
b12bc6a7cf code review for #405 2014-12-14 17:21:59 -05:00
gorhill
d5a3226066 this fixes #405 (and formerly closed-as-wontfix #162) 2014-12-14 08:57:00 -05:00
Raymond Hill
c8c01a8f91 code review, jshint 2014-12-12 20:59:47 -02:00