mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 21:00:23 +01:00
parent
39ffe4d3b2
commit
424b88f04f
Binary file not shown.
@ -35,8 +35,13 @@ function check(stack, url, blockMode){
|
|||||||
function checkURL(url, blockMode){
|
function checkURL(url, blockMode){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
if (url.protocol === "about:" || url.protocol === "chrome:") {
|
switch (url.protocol){
|
||||||
return "allow";
|
case "about:":
|
||||||
|
if (url.href === "about:blank"){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "chrome:":
|
||||||
|
return "allow";
|
||||||
}
|
}
|
||||||
|
|
||||||
var mode = "block";
|
var mode = "block";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user