gorhill
d7cb45c237
maybe make uMatrix usable on a mobile device
2017-11-21 11:39:02 -05:00
gorhill
dd1cb33626
import translation work from https://crowdin.com/project/umatrix
2017-11-21 10:39:18 -05:00
gorhill
b1f53a6d09
fix #821
2017-11-21 10:36:08 -05:00
gorhill
cdffe16b98
import translation work from https://crowdin.com/project/umatrix
2017-11-20 09:22:03 -05:00
gorhill
e8136cb667
fix https://discourse.mozilla.org/t/support-umatrix/5131/158
2017-11-19 21:07:15 -05:00
gorhill
6460e5893c
minor code review
2017-11-19 18:47:35 -05:00
gorhill
48eb207fa5
import translation work from https://crowdin.com/project/umatrix
2017-11-19 18:47:10 -05:00
gorhill
76639f528a
fix #819
2017-11-19 18:18:02 -05:00
gorhill
a15f1fa92e
fix #789
2017-11-14 17:13:11 -05:00
gorhill
e23276b83a
add Esperanto; fix Serbian import
2017-11-13 18:46:22 -05:00
gorhill
2692e866dd
import translation work from https://crowdin.com/project/umatrix
2017-11-13 18:37:00 -05:00
gorhill
97957b7bc3
fix #807 : merging was supported after all
2017-11-13 18:05:14 -05:00
gorhill
ffc44db085
fix #807 : cloud-merging not supported
2017-11-13 14:07:39 -05:00
gorhill
f2d7d32d1e
remove unused legacy code from HTTPSB
2017-11-10 10:56:55 -05:00
StoyanDimitrov
6de0f2b9b9
Remove unused l10n string
2017-10-16 17:57:14 +03:00
Neui
9672465292
Use native textarea when editing user rules
...
Use native textarea (no color set) when editing temporary user rules.
Improves visibility significantly when eg. using Firefox with a dark GTK theme.
2017-10-12 23:43:51 +02:00
gorhill
893b885b5a
AMO validation errors: do not rely on innerHTML
2017-10-05 12:51:42 -04:00
gorhill
acf318d83c
fix AMO validation errors: innerHTML is forbidden
2017-10-05 12:49:26 -04:00
gorhill
9eda7bf59c
import fix from f1036395f7
2017-10-05 08:49:08 -04:00
gorhill
406f6473b6
use indexedDB to cache assets: https://bugzilla.mozilla.org/show_bug.cgi?id=1371255#c11
2017-09-01 08:19:14 -04:00
gorhill
5ea59ab7c4
address https://github.com/WaldiPL/webpageScanner/issues/8
2017-08-27 14:52:45 -04:00
gorhill
be2ab1bdca
translation work from https://crowdin.com/project/umatrix
2017-08-09 10:49:24 -04:00
Pulsera
6da5e5e5b2
Commented unused code
2017-07-20 09:32:30 -04:00
gorhill
c74174a3c4
fix https://discourse.mozilla-community.org/t/support-umatrix/5131/40
2017-06-21 12:56:23 -04:00
gorhill
cb482d3651
translation work from https://crowdin.com/project/umatrix
2017-05-30 07:06:40 -04:00
gorhill
4765db4d86
code review: simplify CSP injection code
2017-04-27 10:38:22 -04:00
gorhill
27dea59284
fix #759
2017-04-27 08:10:54 -04:00
gorhill
da8cc90ab4
fix visual glitch in recent versions of Chromium
2017-04-27 07:38:26 -04:00
gorhill
754e8213cf
code review 6781a98f
2017-04-27 00:02:08 -04:00
gorhill
6781a98fd6
"fix" #771
2017-04-26 16:06:34 -04:00
gorhill
57022a410f
translation work from https://crowdin.com/project/umatrix
2017-04-07 07:35:10 -04:00
gorhill
7b0cb1b729
remove unused i18n strings
2017-04-07 07:31:02 -04:00
gorhill
35e9417e8f
translation work from https://crowdin.com/project/umatrix
2017-04-07 07:23:03 -04:00
gorhill
e8bcc4ca9f
fix #752
2017-04-02 15:35:40 -04:00
gorhill
6e8ebd8253
fix #727
2017-04-01 16:46:27 -04:00
gorhill
8835aceb35
translation work from https://crowdin.com/project/umatrix
2017-04-01 10:11:01 -04:00
gorhill
ce97268895
fix #747
2017-04-01 10:06:23 -04:00
gorhill
97509f6d03
hybrid webextension for seamless migration from legacy
2017-03-29 13:46:19 -04:00
gorhill
585802510a
report raw type in logger instead of normalized type
2017-03-29 10:06:08 -04:00
gorhill
c2d7096500
refactor assets management; working webextension version
2017-03-29 09:12:12 -04:00
gorhill
da992312f3
fix #711 (will need confirmations)
2017-03-20 17:01:19 -04:00
gorhill
4b8345bb94
translation work from https://crowdin.com/project/umatrix
2017-03-15 16:33:42 -04:00
gorhill
48d9a0fd26
fix #711
2017-03-15 16:30:48 -04:00
gorhill
8828c4d5cb
proper labelling of column
2017-01-31 17:33:41 -05:00
gorhill
a4fb878b08
fix https://github.com/gorhill/uBlock/issues/2084 for uMatrix
2016-12-04 10:30:55 -05:00
gorhill
09004e0d1e
translation work from https://crowdin.com/project/umatrix
2016-11-15 10:19:28 -05:00
gorhill
4ccb9bd0d4
fix uncaught exception
2016-11-15 10:05:05 -05:00
gorhill
e68d9bd76e
Merge branch 'master' of https://github.com/gorhill/uMatrix
2016-10-22 10:41:34 -04:00
gorhill
e451e70fe0
fix #648
2016-10-22 10:41:08 -04:00
Alexey Petrenko
3b5b572f36
Fixed broken link
2016-10-04 11:40:06 +05:00
gorhill
70910fd2aa
Merge branch 'master' of https://github.com/gorhill/uMatrix
2016-09-16 07:59:56 -04:00
gorhill
af5afd12f2
translation work from https://crowdin.com/project/umatrix
2016-09-16 07:59:49 -04:00
Mathias Rangel Wulff
978c145180
Correct check for undefined variable
...
The code was comparing the result of `typeof` with a variable named `undefined`
As typeof returns a string it should compare to `'undefined'`
2016-09-12 10:23:31 +02:00
gorhill
3c539f0ec8
fix #604
2016-08-11 19:21:51 -04:00
gorhill
fdc9c38f1a
Merge branch 'master' of https://github.com/gorhill/uMatrix
2016-08-11 09:18:26 -04:00
gorhill
e21f87a5f6
fix #591
2016-08-11 09:18:15 -04:00
Llamatron2112
e6bebd4775
Added black default color for popup buttons
...
On Linux Firefox with dark GTK theme, the three rightmost toolbar icons of the popup can be light gray, or even white some time, this fixes this issue.
2016-08-03 12:02:29 +02:00
gorhill
83b342d4e4
fix #597 + code review + merge media and image
2016-07-30 09:58:13 -04:00
Coffeemakr
12ebb136ba
In addition to text files allow json files for import
2016-06-14 15:06:07 +02:00
gorhill
09cf683e1a
fix #429
2016-06-05 09:11:34 -04:00
gorhill
93f963bc6c
this fixes #538
2016-03-31 08:57:54 -04:00
gorhill
8f7f184837
this fixes #513
2016-03-02 16:41:51 -05:00
gorhill
2bbf72d9ab
forgot to import zh-TW from https://crowdin.com/project/umatrix
2016-03-02 11:27:25 -05:00
gorhill
c0821da875
brought up to date with uBO's version
2016-02-29 09:31:22 -05:00
gorhill
65924d1be8
this fixes #489
2016-02-28 16:15:23 -05:00
gorhill
17cc720dc1
this addresses #506
2016-02-27 21:46:43 -05:00
gorhill
44c1ddd00a
translation work from https://crowdin.com/project/umatrix
2016-02-27 21:05:10 -05:00
gorhill
e9e1f7e631
this fixes #489
2016-02-27 21:02:08 -05:00
gorhill
4f63e079bc
reverting fix to #441 : undesirable side effects on Firefox
2016-02-27 17:50:30 -05:00
WyohKnott
c9f7cc1855
Adding visual cue indicating that a temp rule will be deleted if clicked
...
When clicking a temporary rule that is not in the permanent list, it is
deleted, yet no visual cue indicates this is the intended behaviour. I
initially thought it would commit the line to the permanent rules.
This patch adds a line-through on :hover to signal it.
2016-02-14 15:05:48 +01:00
gorhill
fbe58341e4
translation work from https://crowdin.com/project/umatrix
2016-02-02 09:40:34 -05:00
gorhill
87e85fa0da
code review: this fix broken pruning code for domainCache
2016-01-25 10:20:50 -05:00
gorhill
8200c07a7f
Merge tag '0.9.3.2'
2016-01-16 12:41:42 -05:00
gorhill
1d08de94fd
translation work from https://crowdin.com/project/umatrix
2016-01-16 10:00:46 -05:00
gorhill
fc1662e742
Issue #441 : code review
...
(fixed issue number in commit comment)
2015-12-19 15:52:29 -05:00
Kenny MacDermid
9170fc4b96
Allow horizontal scrolling.
...
Provide a horizontal scrollbar when required, and scroll the
menu header correctly while keeping it fixed vertically.
This allows Chromium users with a `Page zoom` setting to be able to see
the whole matrix.
Closes #440 .
2015-12-18 17:56:03 -04:00
Rick van Hattem
9b1dda2c45
fixed chrome os x issue with too small popup size ( fixes #423 )
2015-12-01 15:03:59 +01:00
gorhill
f4dd0254aa
translation work from https://crowdin.com/project/umatrix
2015-11-15 17:35:51 -05:00
gorhill
6eaa85eee1
this should fix #357 , #395
2015-11-15 17:33:05 -05:00
gorhill
8c6b94e213
this addresses #358 for the time being
2015-11-01 09:09:06 -05:00
gorhill
158eb0f45e
translation work from https://crowdin.com/project/umatrix
2015-10-31 18:31:55 -04:00
gorhill
3eedfd6fbb
translation work from https://crowdin.com/project/umatrix
2015-10-08 11:40:01 -04:00
gorhill
6fdbf9dd94
this addresses #122
2015-09-26 11:51:06 -04:00
gorhill
7d4e569bd6
see if this helps #362
2015-09-26 11:11:08 -04:00
gorhill
3c1419ad3b
this addresses https://github.com/gorhill/uBlock/issues/724
2015-09-26 11:10:10 -04:00
gorhill
16f986860e
translation work from https://crowdin.com/project/umatrix
2015-09-16 19:16:48 -04:00
gorhill
c03d38a5c6
this fixes #349
2015-09-09 00:31:28 -04:00
gorhill
e18782672d
this fixes #345
2015-09-08 10:49:41 -04:00
gorhill
e25d748aa4
translation work from https://crowdin.com/project/umatrix
2015-09-05 12:36:59 -04:00
gorhill
f3876463d3
imported cloud storage support from uBlock: user rules supported for now
2015-09-05 12:29:28 -04:00
gorhill
9e4e4943f3
this fixes many strictness warning in browser console
2015-08-27 14:29:35 -04:00
gorhill
7bc684f2b8
translation work from https://crowdin.com/project/umatrix
2015-08-27 13:23:02 -04:00
gorhill
2224ece1a5
this fixes #320
2015-08-13 11:15:28 -04:00
David Manouchehri
471c314bed
Added warning about User Agent leaking.
2015-08-03 17:13:11 -04:00
gorhill
cfbce5297a
translation work from https://crowdin.com/project/umatrix
2015-07-30 09:37:16 -04:00
gorhill
98c51dbff4
#301 : resize only if necessary
2015-07-28 15:00:31 -04:00
gorhill
a914c01ea9
popup resize: code review
2015-07-24 08:22:54 -04:00
gorhill
479b454307
Hopefully this fixes #301
2015-07-23 16:24:07 -04:00
gorhill
77b0dd8233
translation work from https://crowdin.com/project/umatrix
2015-07-21 21:17:36 -04:00
gorhill
6c24fe8e2a
this fixes scope button height in matrix popup + matrix popup from logger
2015-07-21 21:14:55 -04:00
gorhill
c8765697e1
bring in uBlock's changes to uDom
2015-07-21 08:29:15 -04:00
John Keeping
20e294884a
Add trailing newline to exported rules file
...
According to POSIX a text file is "a file that contains characters
organized into zero or more lines" [1] and a line is "a sequence of zero
or more non- <newline> characters plus a terminating <newline>
character" [2]. Since we are claiming to produce a text file, it should
have a trailing newline.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_397
[2] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
2015-07-08 16:24:06 +01:00
gorhill
3591ca42f6
translation work from https://crowdin.com/project/umatrix
2015-07-05 08:55:34 -04:00
gorhill
3d3673f163
this fixes #283
2015-07-05 08:21:10 -04:00
gorhill
07ba0a0a4b
this fixes #270
2015-06-18 08:27:44 -04:00
gorhill
a7329ef71d
support importing uBlock ruleset syntax
2015-06-05 09:19:15 -04:00
gorhill
a1f8e9599e
translation work from https://crowdin.com/project/umatrix
2015-06-04 10:29:24 -04:00
gorhill
fd4a7579f1
re-worked popup UI to access dashboard from title bar (like uBlock)
2015-06-04 08:26:28 -04:00
gorhill
ef68842b80
this fixes #232 + AMO feedback re. using innerHTML
2015-05-31 18:11:00 -04:00
gorhill
5997dec5d1
this brings logger's filter exp. parser improvements from uBlock
2015-05-30 17:44:21 -04:00
gorhill
a2e5fd671e
support external stock hosts files
2015-05-30 17:33:35 -04:00
gorhill
32333a440a
translation work from https://crowdin.com/project/umatrix
2015-05-30 07:55:15 -04:00
gorhill
b20d44e36c
this should fix #225
2015-05-27 07:51:48 -04:00
gorhill
f81933fb59
this fixes 23aa1e79cb (commitcomment-11318549)
2015-05-21 20:11:54 -04:00
gorhill
0d6c28642c
translation work from https://crowdin.com/project/umatrix
2015-05-19 07:19:37 -04:00
gorhill
23aa1e79cb
remove overhead of tab selector update when no change
2015-05-18 07:32:25 -04:00
gorhill
8063ea1e67
translation work from https://crowdin.com/project/umatrix
2015-05-17 23:49:28 -04:00
gorhill
e927581336
translation work from https://crowdin.com/project/umatrix
2015-05-17 15:17:02 -04:00
gorhill
33708938da
this fixes #212
2015-05-17 15:11:57 -04:00
gorhill
855833c978
code review
2015-05-17 15:00:37 -04:00
gorhill
779c9a6c36
this fixes #211
2015-05-17 14:56:53 -04:00
gorhill
cbc0337110
code review re. new tab selector
2015-05-16 13:17:46 -04:00
gorhill
d7b6be4567
logger: filter entries by tab
2015-05-15 23:05:37 -04:00
gorhill
262661347b
translation work from https://crowdin.com/project/umatrix
2015-05-14 21:10:02 -04:00
gorhill
05d8c51580
this fixes #205
2015-05-14 21:04:49 -04:00
gorhill
0d92dd7e5b
default to block if no rule at all
2015-05-14 13:28:58 -04:00
gorhill
d03434cc43
more bools
2015-05-13 19:14:00 -04:00
gorhill
6369d37567
must return bool, not undefined
2015-05-13 19:11:44 -04:00
gorhill
446b5a0a81
minor css
2015-05-13 18:14:08 -04:00
gorhill
02760abbf0
translation work from Crowdin
2015-05-13 18:13:49 -04:00
gorhill
20bd54c56b
allow some local settings to be modified by users
2015-05-13 15:32:45 -04:00
gorhill
f3c5815848
interim version number for dev build
2015-05-13 14:53:29 -04:00
gorhill
aea695bf8b
code review
2015-05-13 14:32:16 -04:00
gorhill
568ad296a3
this should fix #194
2015-05-12 19:50:48 -04:00
gorhill
ae701d9aff
this fixes #191 : loggin every ua-str rotation is overkill
2015-05-12 19:47:33 -04:00
gorhill
6f4257bb2a
this fixes #189
2015-05-12 18:29:51 -04:00
gorhill
73ed896a85
this fixes browser history quirk on Chromium
2015-05-12 08:22:05 -04:00
gorhill
535a46db37
this fixes warning/error entries in browser console
2015-05-12 08:04:13 -04:00
gorhill
2f075c71e2
translation work from https://crowdin.com/project/umatrix
2015-05-12 06:38:04 -04:00
gorhill
438a7dca0a
minor code review
2015-05-12 06:36:30 -04:00
gorhill
83cc6053eb
more minor details fixed
2015-05-11 16:48:29 -04:00
gorhill
4ba4d55e6b
fixing small details
2015-05-11 15:44:11 -04:00
gorhill
4d4837924c
translation work from https://crowdin.com/project/umatrix
2015-05-11 15:32:32 -04:00
gorhill
b65fd71012
minor css edit
2015-05-11 14:53:59 -04:00
gorhill
9d245c0510
logger: "bts" keyword to filter behind-the-scene events
2015-05-11 13:16:50 -04:00
gorhill
7dcfdf9e08
improved cookie emphasis in logger
2015-05-11 12:49:03 -04:00
gorhill
c8f162d0bb
punycode scope selector
2015-05-11 11:53:02 -04:00
gorhill
8aaadb8fc0
toward a release: general code review, polishing, removing obsolete stuff
2015-05-11 10:55:06 -04:00
gorhill
257334b4c2
importing rp rules
2015-05-10 18:22:52 -04:00
gorhill
3d3160efdf
minor code review
2015-05-10 17:59:58 -04:00
gorhill
9afbbae8cf
minor css tweaks
2015-05-10 15:28:05 -04:00
gorhill
9a40eb17a0
fixed i18n mistake
2015-05-09 20:16:57 -04:00
gorhill
3384a7614a
do not count own inline script
2015-05-09 19:34:45 -04:00
gorhill
6bc728f8b8
refactoring of inline script blocking + improving AMO validation
2015-05-09 19:18:16 -04:00
gorhill
57de4fdf14
code review
2015-05-09 17:14:22 -04:00
gorhill
1cc471bd39
reset minimized state
2015-05-09 12:48:57 -04:00
gorhill
5155b87ca9
translation work from https://crowdin.com/project/umatrix
2015-05-09 12:35:41 -04:00
gorhill
486183cbe6
this fixes popup matrix position/resize issues
2015-05-09 12:07:20 -04:00
gorhill
04f160efba
this addresses #171
2015-05-09 07:44:56 -04:00
gorhill
186c649984
thsi fixes #170
2015-05-08 09:02:12 -04:00
gorhill
654821f101
translation work from https://crowdin.com/project/umatrix
2015-05-08 07:48:57 -04:00
gorhill
52540c1a9a
various fixes
2015-05-08 07:43:23 -04:00
gorhill
05089dc370
preparing for i18n + better defaults
2015-05-07 18:38:29 -04:00
gorhill
a313e4653d
use textContent, not innerText
2015-05-07 11:53:07 -04:00
gorhill
8f2b473928
filtering in logger + various small fixes
2015-05-07 11:39:21 -04:00
gorhill
4142551c13
fixed controls broken by incremental rendering
2015-05-07 00:39:17 -04:00
gorhill
f8c38177e2
this fixes sticky dirty state
2015-05-06 19:13:38 -04:00
gorhill
0211bcec64
regression: fixed broken polling
2015-05-06 18:59:07 -04:00
gorhill
e025afe8ea
allow cleaning up voided rows
2015-05-06 18:31:13 -04:00
gorhill
7c8a8cdf64
better incremental rendering of the matrix
2015-05-06 16:32:41 -04:00
gorhill
af57d6d9e7
one pulling if needed is better than always pushing to many + polishing logger
2015-05-06 13:01:02 -04:00
gorhill
1d8243583c
more work on matrix popup integration within logger
2015-05-06 10:04:49 -04:00
gorhill
1901b9c6e8
allow access to toolbar controls
2015-05-06 00:41:25 -04:00
gorhill
6f786635f4
extremely early draft of matrix integration within the logger
2015-05-06 00:30:45 -04:00
gorhill
b518ab5573
minor fixes
2015-05-04 20:58:30 -04:00
gorhill
89a2610ab1
various fixes
2015-05-04 20:26:45 -04:00
gorhill
13c03d802d
oops
2015-05-04 19:07:12 -04:00
gorhill
4a86eb0525
https://xkcd.com/1296/
2015-05-04 18:00:01 -04:00
gorhill
c18db8cc7f
a few css fixes
2015-05-04 17:49:15 -04:00
gorhill
a49340b57a
firefox: cookie and browser cache management
2015-05-04 15:14:51 -04:00
gorhill
4ad7c65362
various fixes
2015-05-04 10:50:44 -04:00
gorhill
33b5ac1a57
minor css changes
2015-05-04 01:19:05 -04:00
gorhill
5b513a005f
committing missing files
2015-05-04 01:01:07 -04:00
gorhill
b4254db51c
refactoring: many changes throughout -- not close to be done
2015-05-03 20:55:27 -04:00
gorhill
b7e5a7bd44
fixed content script's clean shutdown
2015-05-03 09:06:35 -04:00
gorhill
818a3db9e4
code review: easier to maintain
2015-05-03 08:18:06 -04:00
gorhill
fb639870df
code review
2015-05-03 07:58:10 -04:00
gorhill
d32137ced0
code review
2015-05-03 07:33:24 -04:00
gorhill
622d0a7e9d
provide iframe URL in placeholders
2015-05-03 07:10:05 -04:00
gorhill
3fe5d48c05
this addresses 44f1a61c42 (commitcomment-11015041)
2015-05-03 06:01:24 -04:00
gorhill
dac3bab44f
1st step of refactoring request logger
2015-05-02 19:40:49 -04:00
gorhill
b4fb58891d
oops
2015-05-02 18:47:59 -04:00
gorhill
4e76965155
remove useless code
2015-05-02 18:46:25 -04:00
gorhill
be3e86e055
user is responsible to reload + fixed cleanup of stale tabs
2015-05-02 18:33:55 -04:00
gorhill
d47d8bf0bf
this fixes #158
2015-05-02 17:41:52 -04:00
gorhill
44f1a61c42
placeholder styling gone: it's bloat-ish
2015-05-02 17:13:55 -04:00
gorhill
cd13d2870b
this fixes sticky popup on FF
2015-05-02 13:43:50 -04:00
gorhill
ddaa948cf4
new way of handling blocked documents
2015-05-02 13:30:29 -04:00
gorhill
e751a5403b
code review
2015-05-02 12:07:40 -04:00
gorhill
0e77cbd15d
this fixes #45 + revised color-blind mode + support shutdown of content script
2015-05-02 11:17:17 -04:00
gorhill
1583a3edc6
no longer needed
2015-05-02 09:26:14 -04:00
gorhill
dbe14694c8
code review
2015-05-02 00:18:31 -04:00
gorhill
eb42375215
code review
2015-05-01 23:54:32 -04:00
gorhill
c472e23c7d
assets updater, hosts files pane, etc.
2015-05-01 19:27:43 -04:00
gorhill
f4807b6b29
code review
2015-05-01 08:09:01 -04:00
gorhill
37331b1ef2
various fixes re. behind-the-scene scope
2015-04-30 19:37:55 -04:00
gorhill
b01964db9b
more fixes for rule edit mode
2015-04-30 19:13:03 -04:00
gorhill
171fef784e
this fixes rule rendering in edit mode in FF
2015-04-30 19:03:35 -04:00
gorhill
f815223f27
https://github.com/gorhill/uBlock/issues/150 needs to be fixed here too
2015-04-30 10:05:00 -04:00
gorhill
1c05281183
comments
2015-04-30 09:58:45 -04:00
gorhill
1f4ff9c809
more refactoring, code review
2015-04-21 19:47:19 -04:00
gorhill
8ae33e9c12
FF: this fixes availability of response headers for when item pulled from cache
2015-04-21 17:38:54 -04:00
gorhill
7cd060a15f
refactoring, fixing script/frame blocking on FF, etc., more to do
2015-04-21 16:22:29 -04:00
gorhill
cb29f10173
fixed matrix css
2015-04-21 10:16:46 -04:00
gorhill
c1314e496b
support ping request type explicitly
2015-04-19 16:30:28 -04:00
gorhill
595de33e83
sanitizing outgoing headers (drafty)
2015-04-19 16:19:14 -04:00
gorhill
5106c4bc44
this fixes rendering of toolbar icon
2015-04-19 10:06:05 -04:00
gorhill
0b1ddfa17b
code review
2015-04-13 15:05:53 -04:00
gorhill
5f177a2e30
this fixes reload button
2015-04-13 15:01:12 -04:00
gorhill
2d4431fe0c
punycode: use non-minified version
2015-04-13 13:09:57 -04:00
gorhill
9340975606
a whole lot more left to do, at least popup shows
2015-04-13 12:31:55 -04:00
gorhill
19ddf588fb
i18n work
2015-04-12 07:06:50 -04:00
gorhill
ed67045360
first pass
2015-04-11 17:15:57 -04:00
Deathamns
e54c09da8a
Ports cleanup
...
- Remove duplicate platform specific (from src/) and other unnecessary
files
- Fix and update vapi-*.js files for Safari
- Add tools/make-safari.sh
- Move js/vapi-appinfo.js to meta/ (so, every vendor specific file will be
at the same location)
2015-04-10 19:39:18 -04:00
Deathamns
e6e3868080
Building extension files
...
Adds possibility to build extension files (Chrome and Safari) from
command line.
To run from the project directory:
python tools/build.py [meta]
If the optional `meta` argument is set, then only the manifest and
language files are uptated.
Without that everything is being built (extension files too) into the
`dist/build/version_number` folder.
For Chrome there will be two files, a crx, and a .zip file which
includes the key.pem private key (so this must not be shared,
it's just a bit help for publishing it to the Chrome Web Store).
Beside the extension files, update-files are generated too (for self
hosting - Safari needs it).
2015-04-10 19:39:18 -04:00
Deathamns
9f23b45651
Site-patching possibility for Safari
...
Safari's extension API doesn't provide a way to intercept requests
initiated by plugins, so those cases need special care (or at least the
popular sites).
This commit adds a new JS file (sitepatch-safari.js), which will store the
patches (if it's possible to create one) for specific sites.
As an example, this commit includes a technique for removing in-video ads
from YouTube videos.
2015-04-10 19:39:18 -04:00
Deathamns
686403af38
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).
2015-04-10 19:39:18 -04:00
Deathamns
358ec2c644
Fix download URL for the fallback method
2015-04-10 19:39:18 -04:00
Deathamns
da0e62dff6
Use HTML5 download instead of extension API
...
Benefits:
- Cross browser solution (however only for relatively new browsers)
- Doesn't need extra permission in Chrome
If the browser doesn't suppor the download attribute, then a new tab will
be opened with the exported data.
Other changes:
- Start the download only if the data is not empty (previously the
download started anyway)
- Reorder code in vapi-client.js for Safari, so unnecessary code doesn't
run on extension pages
2015-04-10 19:39:18 -04:00
Deathamns
25caa9241c
Set default dimensions for Safari's popup
2015-04-10 19:39:18 -04:00
Deathamns
2216b7f32e
Implement popup autoresizing for Safari
...
By default, Safari doesn't resize the popup to its content, but it's
possible to set the size pragmatically.
The popup will be resized every time when a change happens in the DOM tree.
2015-04-10 19:39:18 -04:00
Deathamns
db83931fb7
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.
2015-04-10 19:39:18 -04:00
Deathamns
cd08ad9782
Work on vendor API abstraction, and near complete Safari support
2015-04-10 19:39:18 -04:00
Deathamns
33e6728468
Ports cleanup
...
- Remove duplicate platform specific (from src/) and other unnecessary
files
- Fix and update vapi-*.js files for Safari
- Add tools/make-safari.sh
- Move js/vapi-appinfo.js to meta/ (so, every vendor specific file will be
at the same location)
2015-04-10 19:37:25 -04:00
Deathamns
03af075a64
Move MutationObserver shim
...
Since it will be used only for older Safari versions, move it to Safari
related code, so it doesn't pollute the content scripts.
2015-04-10 19:37:25 -04:00
Deathamns
ef30ab4c2d
Respect defer
attribute when mirroring
2015-04-10 19:37:25 -04:00
Deathamns
abb13424b4
Call XHR.open even if the request will be blocked
...
Without calling it an error may be thrown if other XHR parameters are set.
2015-04-10 19:37:25 -04:00
Deathamns
d9c9627758
Only top window should have type main_frame
2015-04-10 19:37:25 -04:00
Deathamns
8f0172467a
Remove unnecessary messaging workaround
...
A better fix was introduced in e36c702 for this issue.
The actual problem was that Safari when sends a message from the
background to content, then it passes to all the frames in the target tab,
but it doesn't make copies, it passes only references to the same object,
so if one frame modifies the message, then other frames would have
received the modified message.
2015-04-10 19:37:25 -04:00
Deathamns
aebfb15aa2
Building extension files
...
Adds possibility to build extension files (Chrome and Safari) from
command line.
To run from the project directory:
python tools/build.py [meta]
If the optional `meta` argument is set, then only the manifest and
language files are uptated.
Without that everything is being built (extension files too) into the
`dist/build/version_number` folder.
For Chrome there will be two files, a crx, and a .zip file which
includes the key.pem private key (so this must not be shared,
it's just a bit help for publishing it to the Chrome Web Store).
Beside the extension files, update-files are generated too (for self
hosting - Safari needs it).
2015-04-10 19:37:25 -04:00
Deathamns
a39572448d
Fix messaging for Safari
2015-04-10 19:37:25 -04:00
Deathamns
08247fb5dd
Preferences button for Safari
...
Brings back the possibility to click a checkbox which opens the extension
settings from Safari's Preferences/Extensions.
2015-04-10 19:37:25 -04:00
Deathamns
1a38523875
Messaging fixes
...
Checking the message name (and connectorId) is mandatory for Safari,
because when the background page sends a response back to a document,
then all the frames in its owner tab will receive the exact same
message, which could confuse the script in some cases.
2015-04-10 19:37:25 -04:00
Deathamns
0bc67a8819
Drop js-loader, updates from gorhill/uBlock/master
2015-04-10 19:37:25 -04:00
Deathamns
d150eb6d1c
Use different page navigation detection for Safari
...
The beforeNavigate event wasn't reliable (sometimes didn't fire, sometimes
fired unnecessary when opening a link with the middle click - which had a
workaround previously, but that's also removed by this commit).
When the event didn't fire, the bindTabToPageStats method didn't run,
and the requests related to the tab weren't blocked.
2015-04-10 19:37:25 -04:00
Deathamns
ed1e23cfb1
Site-patching possibility for Safari
...
Safari's extension API doesn't provide a way to intercept requests
initiated by plugins, so those cases need special care (or at least the
popular sites).
This commit adds a new JS file (sitepatch-safari.js), which will store the
patches (if it's possible to create one) for specific sites.
As an example, this commit includes a technique for removing in-video ads
from YouTube videos.
2015-04-10 19:37:25 -04:00
Deathamns
192053ae99
document.head isn't always available in Safari
2015-04-10 19:37:25 -04:00
Deathamns
4df265b15f
Badge number sometimes disappeared in Safari
2015-04-10 19:37:25 -04:00
Deathamns
bc980a3522
Implement pop-up blocking for Safari
...
It works similarly to the xhr intercepting, except here the window.open
global function is being overridden.
Note that it could only work if the site's Content Security Policy allows
inline scripts, and the script on the webpage doesn't have a copy of the
original window.open function (it can happen only if the page has an
inline script in its head element, where the reference to the original
function can be obtained - likely this cannot be prevented in Safari).
2015-04-10 19:37:25 -04:00
Deathamns
9313a7f16b
Element picker tweaks
...
- Indentation whitespace fixes.
- Use built-in getBoundingClientRect() function instead of self-made.
- Use built-in DOM API for manipulating the class attributes instead of
altering the className property.
- Add pointer-events: none to the svgRoot when using
document.elementFromPoint(), but if the browser (older Safari for
example) doesn't take the pointer-events into account, then fall back to
display: none.
- Initiate every part of the picker at the same time; when the message is
received from the background. This way the selected element will have
the red overlay immediately, instead of showing first the black overlay,
then a few milliseconds later the red.
2015-04-10 19:37:25 -04:00