tampermonkey-vscode-helper-cli
v1.0.4
Published
1.`npm init` initialize the project
Downloads
366
Readme
Use
1.npm init
initialize the project
2.Enter npm i tampermonkey-vscode-helper tampermonkey-vscode-helper-cli -s
3.Create a new file, named test.js
in the example
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 2024-04-21
// @description try to take over the world!
// @author You
// @match https://www.google.com
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant none
// ==/UserScript==
alert('hello workd')
4.Create a new tampermonkey.config.js
file in the current directory and enter the configuration items
const path = require("path");
module.exports = {
watch: path.join(__dirname, "./test.js"), //watch target file
autoRefresh: "all", //refresh
};
5.Enter npx tampermonkey_vscode_helper_cli
to wake up the browser
6.Just change test.js
!