【发布时间】:2017-01-24 08:42:53
【问题描述】:
我尝试删除 Chrome 起始页上最后看到的页面的 8 个图块。 你知道,如果你启动 Chrome 会出现的页面。
但由于根本没有 URL,我不知道我必须在 @match 输入什么。
我试过// @match *,但脚本没有执行。
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match *
// @grant none
// ==/UserScript==
(function() {
'use strict';
setInterval(function(){
var box = document.getElementById("mv-tiles");
box.remove();
},10
);
})();
【问题讨论】:
-
设置
// @match *://*/_/chrome/newtab*似乎有效。