Commit Graph

663 Commits (c9ddc9d5d05a08bb092ecbd0a05de7ae9fd6cd67)

Author SHA1 Message Date
gorhill 8828c4d5cb proper labelling of column 8 years ago
gorhill a4fb878b08 fix https://github.com/gorhill/uBlock/issues/2084 for uMatrix 8 years ago
gorhill 09004e0d1e translation work from https://crowdin.com/project/umatrix 8 years ago
gorhill 4ccb9bd0d4 fix uncaught exception 8 years ago
gorhill e68d9bd76e Merge branch 'master' of https://github.com/gorhill/uMatrix 8 years ago
gorhill e451e70fe0 fix #648 8 years ago
Alexey Petrenko 3b5b572f36 Fixed broken link 8 years ago
gorhill 70910fd2aa Merge branch 'master' of https://github.com/gorhill/uMatrix 8 years ago
gorhill af5afd12f2 translation work from https://crowdin.com/project/umatrix 8 years ago
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'`
8 years ago
gorhill 3c539f0ec8 fix #604 8 years ago
gorhill fdc9c38f1a Merge branch 'master' of https://github.com/gorhill/uMatrix 8 years ago
gorhill e21f87a5f6 fix #591 8 years ago
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.
8 years ago
gorhill 83b342d4e4 fix #597 + code review + merge media and image 8 years ago
Coffeemakr 12ebb136ba In addition to text files allow json files for import 9 years ago
gorhill 09cf683e1a fix #429 9 years ago
gorhill 93f963bc6c this fixes #538 9 years ago
gorhill 8f7f184837 this fixes #513 9 years ago
gorhill 2bbf72d9ab forgot to import zh-TW from https://crowdin.com/project/umatrix 9 years ago
gorhill c0821da875 brought up to date with uBO's version 9 years ago
gorhill 65924d1be8 this fixes #489 9 years ago
gorhill 17cc720dc1 this addresses #506 9 years ago
gorhill 44c1ddd00a translation work from https://crowdin.com/project/umatrix 9 years ago
gorhill e9e1f7e631 this fixes #489 9 years ago
gorhill 4f63e079bc reverting fix to #441: undesirable side effects on Firefox 9 years ago
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.
9 years ago
gorhill fbe58341e4 translation work from https://crowdin.com/project/umatrix 9 years ago
gorhill 87e85fa0da code review: this fix broken pruning code for `domainCache` 9 years ago
gorhill 8200c07a7f Merge tag '0.9.3.2' 9 years ago
gorhill 1d08de94fd translation work from https://crowdin.com/project/umatrix 9 years ago
gorhill fc1662e742 Issue #441: code review
(fixed issue number in commit comment)
9 years ago
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.
9 years ago
Rick van Hattem 9b1dda2c45 fixed chrome os x issue with too small popup size (fixes #423) 9 years ago
gorhill f4dd0254aa translation work from https://crowdin.com/project/umatrix 9 years ago
gorhill 6eaa85eee1 this should fix #357, #395 9 years ago
gorhill 8c6b94e213 this addresses #358 for the time being 9 years ago
gorhill 158eb0f45e translation work from https://crowdin.com/project/umatrix 9 years ago
gorhill 3eedfd6fbb translation work from https://crowdin.com/project/umatrix 9 years ago
gorhill 6fdbf9dd94 this addresses #122 9 years ago
gorhill 7d4e569bd6 see if this helps #362 9 years ago
gorhill 3c1419ad3b this addresses https://github.com/gorhill/uBlock/issues/724 9 years ago
gorhill 16f986860e translation work from https://crowdin.com/project/umatrix 9 years ago
gorhill c03d38a5c6 this fixes #349 9 years ago
gorhill e18782672d this fixes #345 9 years ago
gorhill e25d748aa4 translation work from https://crowdin.com/project/umatrix 9 years ago
gorhill f3876463d3 imported cloud storage support from uBlock: user rules supported for now 9 years ago
gorhill 9e4e4943f3 this fixes many strictness warning in browser console 9 years ago
gorhill 7bc684f2b8 translation work from https://crowdin.com/project/umatrix 9 years ago
gorhill 2224ece1a5 this fixes #320 9 years ago
David Manouchehri 471c314bed Added warning about User Agent leaking. 9 years ago
gorhill cfbce5297a translation work from https://crowdin.com/project/umatrix 9 years ago
gorhill 98c51dbff4 #301: resize only if necessary 9 years ago
gorhill a914c01ea9 popup resize: code review 9 years ago
gorhill 479b454307 Hopefully this fixes #301 9 years ago
gorhill 77b0dd8233 translation work from https://crowdin.com/project/umatrix 9 years ago
gorhill 6c24fe8e2a this fixes scope button height in matrix popup + matrix popup from logger 9 years ago
gorhill c8765697e1 bring in uBlock's changes to uDom 9 years ago
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
10 years ago
gorhill 3591ca42f6 translation work from https://crowdin.com/project/umatrix 10 years ago
gorhill 3d3673f163 this fixes #283 10 years ago
gorhill 07ba0a0a4b this fixes #270 10 years ago
gorhill a7329ef71d support importing uBlock ruleset syntax 10 years ago
gorhill a1f8e9599e translation work from https://crowdin.com/project/umatrix 10 years ago
gorhill fd4a7579f1 re-worked popup UI to access dashboard from title bar (like uBlock) 10 years ago
gorhill ef68842b80 this fixes #232 + AMO feedback re. using innerHTML 10 years ago
gorhill 5997dec5d1 this brings logger's filter exp. parser improvements from uBlock 10 years ago
gorhill a2e5fd671e support external stock hosts files 10 years ago
gorhill 32333a440a translation work from https://crowdin.com/project/umatrix 10 years ago
gorhill b20d44e36c this should fix #225 10 years ago
gorhill f81933fb59 this fixes 23aa1e79cb (commitcomment-11318549) 10 years ago
gorhill 0d6c28642c translation work from https://crowdin.com/project/umatrix 10 years ago
gorhill 23aa1e79cb remove overhead of tab selector update when no change 10 years ago
gorhill 8063ea1e67 translation work from https://crowdin.com/project/umatrix 10 years ago
gorhill e927581336 translation work from https://crowdin.com/project/umatrix 10 years ago
gorhill 33708938da this fixes #212 10 years ago
gorhill 855833c978 code review 10 years ago
gorhill 779c9a6c36 this fixes #211 10 years ago
gorhill cbc0337110 code review re. new tab selector 10 years ago
gorhill d7b6be4567 logger: filter entries by tab 10 years ago
gorhill 262661347b translation work from https://crowdin.com/project/umatrix 10 years ago
gorhill 05d8c51580 this fixes #205 10 years ago
gorhill 0d92dd7e5b default to block if no rule at all 10 years ago
gorhill d03434cc43 more bools 10 years ago
gorhill 6369d37567 must return bool, not undefined 10 years ago
gorhill 446b5a0a81 minor css 10 years ago
gorhill 02760abbf0 translation work from Crowdin 10 years ago
gorhill 20bd54c56b allow some local settings to be modified by users 10 years ago
gorhill f3c5815848 interim version number for dev build 10 years ago
gorhill aea695bf8b code review 10 years ago
gorhill 568ad296a3 this should fix #194 10 years ago
gorhill ae701d9aff this fixes #191: loggin every ua-str rotation is overkill 10 years ago
gorhill 6f4257bb2a this fixes #189 10 years ago
gorhill 73ed896a85 this fixes browser history quirk on Chromium 10 years ago
gorhill 535a46db37 this fixes warning/error entries in browser console 10 years ago
gorhill 2f075c71e2 translation work from https://crowdin.com/project/umatrix 10 years ago
gorhill 438a7dca0a minor code review 10 years ago
gorhill 83cc6053eb more minor details fixed 10 years ago
gorhill 4ba4d55e6b fixing small details 10 years ago
gorhill 4d4837924c translation work from https://crowdin.com/project/umatrix 10 years ago
gorhill b65fd71012 minor css edit 10 years ago
gorhill 9d245c0510 logger: "bts" keyword to filter behind-the-scene events 10 years ago
gorhill 7dcfdf9e08 improved cookie emphasis in logger 10 years ago
gorhill c8f162d0bb punycode scope selector 10 years ago
gorhill 8aaadb8fc0 toward a release: general code review, polishing, removing obsolete stuff 10 years ago
gorhill 257334b4c2 importing rp rules 10 years ago
gorhill 3d3160efdf minor code review 10 years ago
gorhill 9afbbae8cf minor css tweaks 10 years ago
gorhill 9a40eb17a0 fixed i18n mistake 10 years ago
gorhill 3384a7614a do not count own inline script 10 years ago
gorhill 6bc728f8b8 refactoring of inline script blocking + improving AMO validation 10 years ago
gorhill 57de4fdf14 code review 10 years ago
gorhill 1cc471bd39 reset minimized state 10 years ago
gorhill 5155b87ca9 translation work from https://crowdin.com/project/umatrix 10 years ago
gorhill 486183cbe6 this fixes popup matrix position/resize issues 10 years ago
gorhill 04f160efba this addresses #171 10 years ago
gorhill 186c649984 thsi fixes #170 10 years ago
gorhill 654821f101 translation work from https://crowdin.com/project/umatrix 10 years ago
gorhill 52540c1a9a various fixes 10 years ago
gorhill 05089dc370 preparing for i18n + better defaults 10 years ago
gorhill a313e4653d use textContent, not innerText 10 years ago
gorhill 8f2b473928 filtering in logger + various small fixes 10 years ago
gorhill 4142551c13 fixed controls broken by incremental rendering 10 years ago
gorhill f8c38177e2 this fixes sticky dirty state 10 years ago
gorhill 0211bcec64 regression: fixed broken polling 10 years ago
gorhill e025afe8ea allow cleaning up voided rows 10 years ago
gorhill 7c8a8cdf64 better incremental rendering of the matrix 10 years ago
gorhill af57d6d9e7 one pulling if needed is better than always pushing to many + polishing logger 10 years ago
gorhill 1d8243583c more work on matrix popup integration within logger 10 years ago
gorhill 1901b9c6e8 allow access to toolbar controls 10 years ago
gorhill 6f786635f4 extremely early draft of matrix integration within the logger 10 years ago
gorhill b518ab5573 minor fixes 10 years ago
gorhill 89a2610ab1 various fixes 10 years ago
gorhill 13c03d802d oops 10 years ago
gorhill 4a86eb0525 https://xkcd.com/1296/ 10 years ago
gorhill c18db8cc7f a few css fixes 10 years ago
gorhill a49340b57a firefox: cookie and browser cache management 10 years ago
gorhill 4ad7c65362 various fixes 10 years ago
gorhill 33b5ac1a57 minor css changes 10 years ago
gorhill 5b513a005f committing missing files 10 years ago
gorhill b4254db51c refactoring: many changes throughout -- not close to be done 10 years ago
gorhill b7e5a7bd44 fixed content script's clean shutdown 10 years ago
gorhill 818a3db9e4 code review: easier to maintain 10 years ago
gorhill fb639870df code review 10 years ago
gorhill d32137ced0 code review 10 years ago
gorhill 622d0a7e9d provide iframe URL in placeholders 10 years ago
gorhill 3fe5d48c05 this addresses 44f1a61c42 (commitcomment-11015041) 10 years ago
gorhill dac3bab44f 1st step of refactoring request logger 10 years ago
gorhill b4fb58891d oops 10 years ago
gorhill 4e76965155 remove useless code 10 years ago
gorhill be3e86e055 user is responsible to reload + fixed cleanup of stale tabs 10 years ago
gorhill d47d8bf0bf this fixes #158 10 years ago
gorhill 44f1a61c42 placeholder styling gone: it's bloat-ish 10 years ago
gorhill cd13d2870b this fixes sticky popup on FF 10 years ago
gorhill ddaa948cf4 new way of handling blocked documents 10 years ago
gorhill e751a5403b code review 10 years ago
gorhill 0e77cbd15d this fixes #45 + revised color-blind mode + support shutdown of content script 10 years ago
gorhill 1583a3edc6 no longer needed 10 years ago
gorhill dbe14694c8 code review 10 years ago
gorhill eb42375215 code review 10 years ago
gorhill c472e23c7d assets updater, hosts files pane, etc. 10 years ago
gorhill f4807b6b29 code review 10 years ago
gorhill 37331b1ef2 various fixes re. behind-the-scene scope 10 years ago
gorhill b01964db9b more fixes for rule edit mode 10 years ago
gorhill 171fef784e this fixes rule rendering in edit mode in FF 10 years ago
gorhill f815223f27 https://github.com/gorhill/uBlock/issues/150 needs to be fixed here too 10 years ago
gorhill 1c05281183 comments 10 years ago
gorhill 1f4ff9c809 more refactoring, code review 10 years ago
gorhill 8ae33e9c12 FF: this fixes availability of response headers for when item pulled from cache 10 years ago
gorhill 7cd060a15f refactoring, fixing script/frame blocking on FF, etc., more to do 10 years ago
gorhill cb29f10173 fixed matrix css 10 years ago
gorhill c1314e496b support ping request type explicitly 10 years ago
gorhill 595de33e83 sanitizing outgoing headers (drafty) 10 years ago
gorhill 5106c4bc44 this fixes rendering of toolbar icon 10 years ago
gorhill 0b1ddfa17b code review 10 years ago
gorhill 5f177a2e30 this fixes reload button 10 years ago
gorhill 2d4431fe0c punycode: use non-minified version 10 years ago
gorhill 9340975606 a whole lot more left to do, at least popup shows 10 years ago
gorhill 19ddf588fb i18n work 10 years ago
gorhill ed67045360 first pass 10 years ago
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)
10 years ago
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).
10 years ago
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.
10 years ago
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).
10 years ago
Deathamns 358ec2c644 Fix download URL for the fallback method 10 years ago
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
10 years ago
Deathamns 25caa9241c Set default dimensions for Safari's popup 10 years ago
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.
10 years ago
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.
10 years ago
Deathamns cd08ad9782 Work on vendor API abstraction, and near complete Safari support 10 years ago
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)
10 years ago
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.
10 years ago
Deathamns ef30ab4c2d Respect `defer` attribute when mirroring 10 years ago
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.
10 years ago
Deathamns d9c9627758 Only top window should have type `main_frame` 10 years ago
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.
10 years ago
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).
10 years ago
Deathamns a39572448d Fix messaging for Safari 10 years ago
Deathamns 08247fb5dd Preferences button for Safari
Brings back the possibility to click a checkbox which opens the extension
settings from Safari's Preferences/Extensions.
10 years ago
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.
10 years ago
Deathamns 0bc67a8819 Drop js-loader, updates from gorhill/uBlock/master 10 years ago
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.
10 years ago
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.
10 years ago
Deathamns 192053ae99 document.head isn't always available in Safari 10 years ago
Deathamns 4df265b15f Badge number sometimes disappeared in Safari 10 years ago
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).
10 years ago
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.
10 years ago
Deathamns c56d3ca717 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).
10 years ago
Deathamns f514bf0835 Workaround for a messaging bug in Safari 10 years ago
Deathamns 5d08b448b0 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
10 years ago
Deathamns 34e1df3218 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
10 years ago
Deathamns 4072264fa8 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.
10 years ago
Deathamns a04a788eea Work on vendor API abstraction, and near complete Safari support 10 years ago
Deathamns fccb781950 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)
10 years ago
Raymond Hill bd5492654f give specific message handlers priority over default one 10 years ago
Deathamns c3178cd442 Only top window should have type `main_frame` 10 years ago
Deathamns 8eb76e880c 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).
10 years ago
Deathamns 29eabd44fd Fix messaging for Safari 10 years ago
Deathamns 872a478f91 Preferences button for Safari
Brings back the possibility to click a checkbox which opens the extension
settings from Safari's Preferences/Extensions.
10 years ago
Deathamns 3d535c6c69 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.
10 years ago
Deathamns bda4dba902 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.
10 years ago
Deathamns ceb18d4629 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.
10 years ago
Deathamns c0b1565131 Badge number sometimes disappeared in Safari 10 years ago
Deathamns 31f9683d9f 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).
10 years ago
Deathamns 1be99cf58e Remove unnecessary comments 10 years ago
Deathamns 816dca2f33 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
10 years ago
Deathamns 9981c25286 Remove storage change-event listener from Safari
Earlier, a technique was used to open the extension's Options page when
the user clicked a checkbox input at Safari's extension settings. The method was removed because:
- the Options page can be opened via the extension's toolbar button (which
  cannot be disabled in Safari, so it will be there all the time);
- involved more clicks than opening from the toolbar button;
- the string beside the checkbox couldn't be localized.
10 years ago
Deathamns be7668767f Minor changes
- Update assets from gorhill/uBlock/master
- Remove whitespace from element-picker.js
- Simplify code in profiler.js (btw, Date is still needed as fallback
  for older browsers)
- Clarification for Safari's storage where the QUOTA_BYTES came from
10 years ago
Deathamns 35ed9cd853 Work on vendor API abstraction, and near complete Safari support 10 years ago
gorhill 63aa4be9f7 reorganizing, preparing move to vAPI 10 years ago
gorhill 056e68da66 this fixes #42 10 years ago
gorhill 01f7cea94f re #89: fixed using non-compliant color 10 years ago
emanueLczirai 7085beb66a missing semicolon 10 years ago
gorhill 0174955287 comment re potential redundant eval 10 years ago
gorhill b68ba6d728 this fixes #82 10 years ago
Raymond Hill f0063372c5 this fixes #77 10 years ago
Raymond Hill 5777dc0b15 code review: actually no `file:` should occurs within `https:` doc 10 years ago
Raymond Hill baa8e86fd4 this addresses issue raised in #71 10 years ago
Raymond Hill b62fb94a00 code review 10 years ago
Raymond Hill 44533d77eb this fixes #72 10 years ago
Raymond Hill e39b36beda code review; make strict https break less stuff on new tab page 10 years ago
Raymond Hill 36233c7325 vertical ellispsis instead 10 years ago
Raymond Hill ee361ae37f comments 10 years ago
Raymond Hill a31351c6f9 doc is hardcoded now 10 years ago
Raymond Hill bf5b6c4517 code review 10 years ago
Raymond Hill 9a93c2375c move "Strict HTTPS" last since now it is built-in the browser 10 years ago
Raymond Hill cf02253cdd this should help futur occurrences of #65 10 years ago
Raymond Hill dc3de2a3ca make ua-spoofing code easier to read from dev tools 10 years ago
Raymond Hill 40bc8087e5 this fixes #61 10 years ago
Raymond Hill 238e6c3536 re #61 10 years ago
Raymond Hill 5d8bae3da2 this fixes #59 10 years ago
Raymond Hill 977f94a50a fine-tuning for RTL languages 10 years ago
Raymond Hill d01ab961b8 this fixes #7, #36 10 years ago
Raymond Hill ce6305210c UI work toward fixing #7, #36 10 years ago
Raymond Hill 5f3dc76b32 code review 10 years ago
Raymond Hill 5e19edaab7 ability to foil mixed content 10 years ago
Raymond Hill 5ba8f58094 ensure switches are listed first: more convenient 10 years ago
Raymond Hill 2962bd19e2 cide review 10 years ago
Raymond Hill 4aab150af3 infrastructure work toward addressing #7, #36 10 years ago
gorhill 3524c12924 fixed double definition as per 4bf6664d6b 10 years ago
gorhill f0a58ad06f bring back color hint for site-level scope 10 years ago
gorhill 3edd9eabc6 export must be on left side since permanent rules are exported 10 years ago
gorhill 4211613055 fix rendering of mu character 10 years ago
gorhill 970e1253da code review 10 years ago
gorhill 5d90401f54 this fixes #49 10 years ago
gorhill 9cc0e9bba0 this fixes #47 10 years ago
gorhill 667becf500 imported mutation observer code from uBlock: more efficient, robust 10 years ago
gorhill fb9def312a buttons must be able to wrap 10 years ago
Raymond Hill e8152f1517 ensure rule panes are always aligned 10 years ago
gorhill 8d8ff67546 just reordering labels 10 years ago
gorhill df6bdbe464 this fixes #44 completely 10 years ago
gorhill 4026149a17 this fixes #44 10 years ago
gorhill 4f456da482 translation work from Crowdin 10 years ago
gorhill 1d9a8e18e8 just trying something to possibly workaround reported crashes in #40 10 years ago
gorhill 92c48c0d49 "matrix:" instead of too generic "switch:" 10 years ago
gorhill 7e038a9433 use pretty 1st-party label only for rendering 10 years ago
gorhill 3ddb31a96c rtl languages friendly: issue #29 10 years ago
gorhill b42fd99bd0 no badge when count is zero 10 years ago
gorhill 1908504895 this fixes #37 completely 10 years ago
gorhill f6a366194c this address #37: the rebinding of pages which change incrementally 10 years ago
gorhill 2f7af6890d this addresses #37 10 years ago
gorhill e49e87ba54 better url 10 years ago
gorhill 50bcc24049 this is a start for #29 10 years ago
gorhill 3c455d3fdc give credits to issue authors 10 years ago
gorhill f7c2e68887 jshint 10 years ago
gorhill 4b4dc3c0db code review 10 years ago
Raymond Hill 4dd3b09ae4 this fixes #34 10 years ago
gorhill 85ecc71230 this fixes #31 10 years ago
gorhill 296f16f08e this fixes #31/#issuecomment-61376018 10 years ago
gorhill 8e7ae17b5c updating default UA strings 10 years ago
gorhill faef346878 this address 3 in #28 10 years ago
gorhill 575676e415 this addresses some of #28 issues 10 years ago
gorhill 48c5f7bf45 no longer needed 10 years ago
gorhill 30c570253f this fixes #23 10 years ago
gorhill 03609910c5 not needed anymore 10 years ago
gorhill 5c05a8773a revamped "My rules" tab 10 years ago
gorhill 89f757d61e this does help a bit further re. #27 10 years ago
gorhill 24502090e2 this somewhat fixes #27 10 years ago
gorhill 49bbe6f7dd ip address friendly 10 years ago
gorhill c5acad2332 minor code review 10 years ago
gorhill b2d19afeb8 finally... fixes #24 10 years ago
gorhill 9838d009aa this fixes #24 10 years ago
gorhill 967707723a this fixes #24 10 years ago
gorhill 49441de2b6 bring back `doc` req type; many little fixes 10 years ago
gorhill eab99cf26b forgot to rename to uMatrix (as per wilderssecurity.com thread) 10 years ago
gorhill 20ba3157eb slight colored bg for tooltips 10 years ago
gorhill 448a56cc70 fixed tooltips; illegal characters in messages.json 10 years ago
gorhill 10ef2cf0f1 fix meta row of blacklisted hostnames group 10 years ago
gorhill 425f512aa4 getting ready for crowdin work 10 years ago
gorhill ff4d827e1f this fixes #21 10 years ago
gorhill 02e6b2c2d8 oops: 5 min, not 5 hr 10 years ago
gorhill 257844c233 a bit of refacotring work 10 years ago
gorhill ead35cedbe code review 10 years ago
gorhill 5131a5d806 this fixes #19 10 years ago
gorhill 3aeeea7abd code review 10 years ago
gorhill 118306ab51 this fixes #17 10 years ago
gorhill e187161b84 take care of session storage as well 10 years ago
gorhill c0450c578d todo 10 years ago
gorhill 6d72b65a1a jshint 10 years ago
gorhill b605f3d4ea this fixes #18 10 years ago
gorhill 8cb0619687 fix to ensure PSL is available when binding tabs 10 years ago
gorhill abdbbd55dd jshint 10 years ago
gorhill 5e96f44798 this fixes #14 10 years ago
gorhill 77cfb56d94 this fixes #12 10 years ago
gorhill bd411290dd forgot to tag source code with github issue 10 years ago
gorhill b946a96bb6 this fixes #13, hopefully 10 years ago
gorhill ceed73dd59 this fixes another console error as per #10 10 years ago
gorhill cbb0b8a8f1 fixed as per code review 10 years ago
gorhill 8653401961 this fixes #10 10 years ago
gorhill 9441ffe719 this fixes #8 (the 2nd part) 10 years ago
gorhill b31b7227ff this fixes #8 10 years ago
gorhill fa84fa2508 this fixes #9 10 years ago
gorhill 92717f4cfd this fixes #4 10 years ago
gorhill 56a9e8a460 this fixes #3 10 years ago
gorhill 0d459545a2 this fixes #2 10 years ago
gorhill 0c6d0b3a98 another check for #1 10 years ago
gorhill 1743f198e5 another check for #1 10 years ago
gorhill 207ee2773b ui details 10 years ago
gorhill a39bd536b5 work on auto-update, backup/restore/reset 10 years ago
gorhill b94047f9f7 forgot to check this 10 years ago
gorhill 2b41bc8087 work on many things, need more 10 years ago
gorhill 65a8000657 fixed parsing of partial rules 10 years ago
gorhill dc39fa9452 moving assets out of src 10 years ago
gorhill 5f63a0f984 no good reason to prevent scopable literal "1st-party" 10 years ago
gorhill cd7996fb7d fixed bad test for 1st-party 10 years ago
gorhill 3952a09f6c dont display literal "1st-party" when there is no 1st-party 10 years ago
gorhill 78555a5b7c literal "1st-party" row removes the need for auto-whitelist, strict blocking 10 years ago
gorhill 85437661bf bring back behind-the-scene matrix 10 years ago
gorhill 1626c3ecc6 fix manually removing rules, code review 10 years ago
gorhill a633e16f01 user rules tab 10 years ago