scriptscat / scriptcat

脚本猫,一个可以执行用户脚本的浏览器扩展
https://docs.scriptcat.org
GNU General Public License v3.0
1.41k stars 129 forks source link

local html file not run in scriptcat #44

Open lihengdao666 opened 2 years ago

lihengdao666 commented 2 years ago

when you set match is local file the script is show run this user script but not any operation my code only have alert but it is not run and show alert `// ==UserScript== // @name New Userscript // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match file:///C:/Users/%E6%B5%8B%E8%AF%95/test.html // @icon https://www.google.com/s2/favicons?sz=64&domain=undefined. // ==/UserScript==

(function() { 'use strict'; alert('888')

// Your code here...

})();`

TerryDreemurr commented 1 year ago

I heard that sometimes a website can block a script. I dont't exactly know if it is true.