1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-09-30 09:06:56 +13:00
Commit graph

301 commits

Author SHA1 Message Date
gorhill
a2e5fd671e support external stock hosts files 2015-05-30 17:33:35 -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
23aa1e79cb remove overhead of tab selector update when no change 2015-05-18 07:32:25 -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
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
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
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
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
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
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
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
6f786635f4 extremely early draft of matrix integration within the logger 2015-05-06 00:30:45 -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
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
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
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
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