mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 18:42:00 +01:00
Do not forceLoad depending on Firefox version
This commit is contained in:
parent
3fcc5774c2
commit
a5f3e78292
@ -65,12 +65,7 @@
|
|||||||
scope.intercept({subject: window}, apis);
|
scope.intercept({subject: window}, apis);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let firefoxVersion = navigator.userAgent.match(/Firefox\/([\d.]+)$/);
|
let forceLoad = false;
|
||||||
let forceLoad = true;
|
|
||||||
if (firefoxVersion){
|
|
||||||
let versionParts = firefoxVersion[1].split(".");
|
|
||||||
forceLoad = parseInt(versionParts[0], 10) >= 57;
|
|
||||||
}
|
|
||||||
let preIntercepted = false;
|
let preIntercepted = false;
|
||||||
let intercepted = false;
|
let intercepted = false;
|
||||||
const forEachFunction = function(callback){
|
const forEachFunction = function(callback){
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "CanvasBlocker",
|
"name": "CanvasBlocker",
|
||||||
"description": "__MSG_addon_description__",
|
"description": "__MSG_addon_description__",
|
||||||
"version": "0.4.3-Development",
|
"version": "0.4.3a-Development",
|
||||||
"icons": {
|
"icons": {
|
||||||
"48": "icons/icon.svg",
|
"48": "icons/icon.svg",
|
||||||
"96": "icons/icon.svg"
|
"96": "icons/icon.svg"
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
Version 0.4.3:
|
Version 0.4.3a:
|
||||||
|
known issues:
|
||||||
|
- due to API blocking some web pages may break. Use 0.4.3b instead.
|
||||||
|
|
||||||
changes:
|
changes:
|
||||||
- hide white, black and ignore list as they can be done with the url specific settings. They are still present and working in the background.
|
- hide white, black and ignore list as they can be done with the url specific settings. They are still present and working in the background.
|
||||||
- if settings are not loaded fast enough the loading is not force but all APIs are blocked (only Firefox < 57)
|
- if settings are not loaded fast enough the loading is not force but all APIs are blocked
|
||||||
|
|
||||||
new features:
|
new features:
|
||||||
- reset settings
|
- reset settings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user