可以通過其掛載的js腳本實現某些頁面的功能,比如定時刷新,簽到,點贊等。。。
1.在瀏覽器擴展應用中添加該插件
2.管理面板添加需要執行的腳本
match:可以匹配某個瀏覽器網址,例如,只要打開百度,就會執行alert(111111);
例如:
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.baidu.com/
// ==/UserScript==
(function() {
'use strict';
alert(111111);
// Your code here...
})();