首页 > 技术文章 > 油候插件grant的使用

c-x-a 2020-02-28 15:56 原文

// ==UserScript==
// @name         Test Baidu
// @namespace    http://www.baidu.com/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://www.baidu.com
// @grant        GM_log

// ==/UserScript==

(function() {
    'use strict';
     GM_log("hello baidu")
})();

开启GM_开头的函数,这里是开启 GM_log类似,console.log

推荐阅读