// Your code here… 处填入代码 e.g.
// ==UserScript== // @name test_code // @namespace http://tampermonkey.net/ // @version 0.1 // @description 重载测试脚本 // @author 叶志豪2020 // @match *://www.baidu.com/* // @match *://www.jd.com/* // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... //从此开始编写JS代码 //自动重载页面 // 测试代码 setInterval(function(){fun();},5000); function fun(){ location.reload() } // *://localhost:8080/* })(); ctrl-s 保存脚本