change: attribute for nimo

This commit is contained in:
eson 2020-09-02 18:22:23 +08:00
parent b31b40fd9e
commit 0b2687ecfa
2 changed files with 7 additions and 3 deletions

View File

@ -32,11 +32,15 @@ core.storage = {
core.webrequest = {
"blocking": {"types": []},
"block": function (e) {
console.log("123");
if(e.url.startsWith("https://video-")) {
return {"cancel": true};
};
if(e.url.startsWith("https://txvid.vod")) {
return {"cancel": true};
};
var ftp = e.url.indexOf("ftp") === 0;
var http = e.url.indexOf("http") === 0;
if (http || ftp) {

View File

@ -21,7 +21,7 @@ config.options = {
set background (val) {app.storage.write("h_background", val)},
get svg () {return app.storage.read("h_svg") !== undefined ? app.storage.read("h_svg") : true},
get image () {return app.storage.read("h_image") !== undefined ? app.storage.read("h_image") : true},
get flash () {return app.storage.read("h_flash") !== undefined ? app.storage.read("h_flash") : true},
get flash () {return app.storage.read("h_flash") !== undefined ? app.storage.read("h_flash") : false},
get video () {return app.storage.read("h_video") !== undefined ? app.storage.read("h_video") : true},
get canvas () {return app.storage.read("h_canvas") !== undefined ? app.storage.read("h_canvas") : true},
get iframe () {return app.storage.read("h_iframe") !== undefined ? app.storage.read("h_iframe") : true},
@ -37,7 +37,7 @@ config.options = {
set background (val) {app.storage.write("b_background", val)},
get svg () {return app.storage.read("b_svg") !== undefined ? app.storage.read("b_svg") : true},
get image () {return app.storage.read("b_image") !== undefined ? app.storage.read("b_image") : true},
get flash () {return app.storage.read("b_flash") !== undefined ? app.storage.read("b_flash") : true},
get flash () {return app.storage.read("b_flash") !== undefined ? app.storage.read("b_flash") : false},
get video () {return app.storage.read("b_video") !== undefined ? app.storage.read("b_video") : true},
get canvas () {return app.storage.read("b_canvas") !== undefined ? app.storage.read("b_canvas") : true},
get iframe () {return app.storage.read("b_iframe") !== undefined ? app.storage.read("b_iframe") : true},