提问人:mnemotronic 提问时间:5/20/2019 最后编辑:mnemotronic 更新时间:5/20/2019 访问量:912
为什么这个 TamperMonkey 脚本不发出警报、记录或中断?
Why doesn't this TamperMonkey script alert, log or break?
问:
为什么这个最小的脚本不显示警报、命中断点或日志 Vitacost.com?我在 Win 7 上使用 Chrome。
// ==UserScript==
//
// @name VitaCost_Test
// @namespace http://your.homepage/
// @version 0.5
// @description Why don't TamperMonkey scripts run on VitaCost.com???
// @match *://*.vitacost.com/*
// @match *://vitacost.com/*
// @match *://vitacost.com
// @match https://www.vitacost.com/
// @match https://www.vitacost.com
// @grant none
//
// @filename C:\Users\Public\Documents\Source\js\Grease-Tamper Monkey\VitaCost_Test.js
// ==/UserScript==
debugger;
alert("VitaCost_test");
console.log("VitaCost_test");
(function() {
'use strict';
debugger;
alert("VitaCost_test function");
console.log("VitaCost_test function");
});
答: 暂无答案
评论
.com
/