subject
Mathematics, 13.03.2021 07:00 ilovecatsomuchlolol

Translate this into english: let inExtMode = typeof (isExtension) !== "undefined";

let inGMMode = typeof (GM_info. scriptHandler) !== "undefined"; // = "Greasemonkey" || "Tampermonkey" || "ViolentMonkey"

// 新版本的GreaseMonkey是带有scriptHandler,但是 没有GM_getResourceText;旧版本不带scriptHan dler,但是有GM_getResourceText

// let isNewGM = typeof(GM_info. scriptHandler) !== "undefined" && GM_info. scriptHandler. toLowerCase() === "greasemonkey";

let isNewGM = false;

// inExtMode & inGMMode

// true true =扩展下的GM代码 不执行

// true false=扩展下代码 执行

// false true =仅GM代码 执行

// false false=异常 但是还是要执行代码

debug("程序开始");

if (inExtMode === true && inGMMode === true || typeof(window. AC666Init) !== 'undefined') {

console. log("扩展模式-脚本不启用");

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 20:30
Steve had 48 chocolates but he decided to give 8 chocolats to each of his f coworkers. how many chocolates does steve have left
Answers: 1
question
Mathematics, 21.06.2019 23:30
Find │–14│ a. 14 b. –14 c. start fraction 1 over 14 end fraction
Answers: 2
question
Mathematics, 22.06.2019 00:30
Ineed to find the answer to number 2
Answers: 2
question
Mathematics, 22.06.2019 02:10
Plzz ! need the answer asap! 7% of 980
Answers: 2
You know the right answer?
Translate this into english: let inExtMode = typeof (isExtension) !== "undefined";

let...
Questions
Questions on the website: 13722363