From 0b2687ecfa352335036da5028be73a179726d508 Mon Sep 17 00:00:00 2001 From: eson Date: Wed, 2 Sep 2020 18:22:23 +0800 Subject: [PATCH] change: attribute for nimo --- lib/common.js | 6 +++++- lib/config.js | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/common.js b/lib/common.js index 1c7fd37..e6dcfaf 100644 --- a/lib/common.js +++ b/lib/common.js @@ -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) { diff --git a/lib/config.js b/lib/config.js index 09be7c4..b9779ff 100644 --- a/lib/config.js +++ b/lib/config.js @@ -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},