mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-08-14 06:35:53 +08:00
add
This commit is contained in:
parent
8f59a7e98c
commit
b245f45c13
@ -388,6 +388,9 @@ function sub_logger(){
|
||||
sub_logger()
|
||||
|
||||
chrome.webRequest.onBeforeRequest.addListener(function (details) {
|
||||
if(!JSON.parse(localStorage.webRedirect_toggle || "false")){
|
||||
return {}
|
||||
}
|
||||
var url = details.url;
|
||||
for (var i = 0; i < webRedirect.length; i++) {
|
||||
var [mstr, rurl] = webRedirect[i]
|
||||
@ -407,7 +410,6 @@ chrome.webRequest.onBeforeRequest.addListener(function (details) {
|
||||
);
|
||||
|
||||
var webRedirect = []
|
||||
var webRedirect_toggle = JSON.parse(localStorage.webRedirect_toggle || "false");
|
||||
window.addEventListener('storage', function(){
|
||||
webRedirect = JSON.parse(localStorage.webRedirect || "[]")
|
||||
}, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user