1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00
uBlock/src/js
Raymond Hill 7ff750eaf6
Reflect blocking mode in badge color of toolbar icon
Related feedback:
- https://www.reddit.com/r/uBlockOrigin/comments/cmh910/

Additionally, the `3p` rule has been made distinct from
`3p-script`/`3p-frame` for the purpose of
"Relax blocking mode" command.

The badge color will hint at the current blocking mode.
There are four colors for the four following blocking
modes:
- JavaScript wholly disabled
- All 3rd parties blocked
- 3rd-party scripts and frames blocked
- None of the above

The default badge color will be used when JavaScript is not
wholly disabled and when there are no rules for `3p`,
`3p-script` or `3p-frame`.

A new advanced setting has been added to let the user choose
the badge colors for the various blocking modes,
`blockingProfileColors`. The value *must* be a sequence of
4 valid CSS color values that match 6 hexadecimal digits
prefixed with`#` -- anything else will be ignored.
2019-08-10 10:57:24 -04:00
..
codemirror Minor code review re. https://github.com/uBlockOrigin/uBlock-issues/issues/658 2019-07-11 09:50:12 -04:00
scriptlets Invalidate browser's memory cache after using element picker 2019-08-09 09:31:20 -04:00
wasm Do not store impossible to match filters in HNTrie 2019-04-29 13:15:16 -04:00
1p-filters.js Warn when navigating away from pane with unsaved changes 2019-05-19 15:35:00 -04:00
3p-filters.js Ensure the "Filter lists" pane is in sync with update status 2019-05-19 18:31:12 -04:00
about.js Select existing "Advanced settings" page if any 2019-05-25 08:31:06 -04:00
advanced-settings.js Small code review of a52b07ff6e 2019-04-20 19:10:34 -04:00
asset-viewer.js Add a link to the remote asset in asset viewer 2019-05-23 19:29:59 -04:00
assets.js Restore ability to redirect xhr to image resources 2019-08-06 10:51:24 -04:00
background.js Reflect blocking mode in badge color of toolbar icon 2019-08-10 10:57:24 -04:00
cachestorage.js Code review implementation of cacheStorage.clear() 2019-03-28 10:17:47 -03:00
cloud-ui.js improve ckoud widget for small screen devices 2018-04-10 11:21:56 -04:00
commands.js Reflect blocking mode in badge color of toolbar icon 2019-08-10 10:57:24 -04:00
console.js Fix spurious output at uBO's dev console 2019-02-18 14:41:04 -05:00
contentscript.js Fix use of sibling-related CSS syntax at prefix position 2019-06-29 14:07:54 -04:00
contextmenu.js Minor code review re. context menu code 2019-07-02 09:43:26 -04:00
cosmetic-filtering.js Add optional support for generic procedural cosmetic filters 2019-05-18 18:57:32 -04:00
dashboard-common.js Select existing "Advanced settings" page if any 2019-05-25 08:31:06 -04:00
dashboard.js Warn when navigating away from pane with unsaved changes 2019-05-19 15:35:00 -04:00
document-blocked.js Fix "Close this window" not working on document-blocked page 2019-05-21 18:56:59 -04:00
dyna-rules.js Fix last newline not being automatically appended 2019-07-07 06:57:30 -04:00
dynamic-net-filtering.js Use async/await in Matrix.benchmark() 2019-06-19 08:37:48 -04:00
fa-icons.js Grand refactoring of the logger 2019-01-12 16:36:20 -05:00
filtering-context.js Improve "Whitelist pane"; remove now useless built-in switch rule 2019-05-18 14:20:05 -04:00
hnswitches.js fix #2859 2018-09-03 14:06:49 -04:00
hntrie.js Code review of HNTrie/staticNetFilteringEngine 2019-06-19 10:00:19 -04:00
html-filtering.js Fix use of sibling-related CSS syntax at prefix position 2019-06-29 14:07:54 -04:00
i18n.js Grand refactoring of the logger 2019-01-12 16:36:20 -05:00
logger-ui-inspector.js Grand refactoring of the logger 2019-01-12 16:36:20 -05:00
logger-ui.js Prevent adding known invalid URL-based rules 2019-07-08 10:49:53 -04:00
logger.js Grand refactoring of the logger 2019-01-12 16:36:20 -05:00
lz4.js Fix Promise chain of WASM module load operations 2019-02-01 08:20:43 -05:00
messaging.js Reflect blocking mode in badge color of toolbar icon 2019-08-10 10:57:24 -04:00
pagestore.js Fix whitelist status evaluation of tabless network requests 2019-07-05 17:44:08 -04:00
popup.js Prevent popup panel to close when forcing a tab reload 2019-07-21 11:50:15 -04:00
redirect-engine.js Restore ability to redirect xhr to image resources 2019-08-06 10:51:24 -04:00
reverselookup-worker.js Fix https://github.com/gorhill/uBlock/issues/3541 2019-05-20 18:29:28 -04:00
reverselookup.js fix #2763 2018-07-22 10:47:02 -04:00
scriptlet-filtering.js Remove trailing commas in function parameter lists 2019-07-22 17:38:23 -04:00
settings.js Code review of whitelisting-related code 2019-06-25 11:57:14 -04:00
shortcuts.js code review re. 8e9fe020b5 2018-07-22 08:14:50 -04:00
start.js Refactor management of injectable resources 2019-07-03 09:47:56 -04:00
static-ext-filtering.js Mind escape sequences when validating :style filters 2019-07-13 07:49:07 -04:00
static-net-filtering.js Add new static network filter option: redirect-rule= 2019-08-03 10:18:47 -04:00
storage.js Reflect blocking mode in badge color of toolbar icon 2019-08-10 10:57:24 -04:00
strie.js Implement bidirectional plain-string trie 2019-06-18 19:16:39 -04:00
tab.js Reflect blocking mode in badge color of toolbar icon 2019-08-10 10:57:24 -04:00
text-encode.js refactor some webRequest-related code (now that firefox legacy is out of the way) 2018-10-28 10:58:25 -03:00
traffic.js Fix thrown exception in onHeadersReceived listener 2019-07-19 10:02:27 -04:00
ublock.js Reflect blocking mode in badge color of toolbar icon 2019-08-10 10:57:24 -04:00
udom.js Update fix for https://github.com/uBlockOrigin/uBlock-issues/issues/468 2019-04-14 16:57:09 -04:00
uritools.js Use const, let instead of var 2019-02-24 09:01:58 -05:00
url-net-filtering.js Fix regression in URL rules validation 2019-07-10 17:24:01 -04:00
utils.js Reflect blocking mode in badge color of toolbar icon 2019-08-10 10:57:24 -04:00
whitelist.js Fix broken import-from-file in Whitelist pane 2019-05-26 08:03:44 -04:00