javascript - JS Userscript to run on Chrome new tab page -


i have simple userscript i've written tampermonkey, , i'd run on chrome new tab page.

according this site there no way run userscripts on new tab page:

the url of new tab page "chrome://newtab/" , chrome doesn't allow extensions inject scripts pages.

but script runs fine if specify in header section

// @match        *://*/* 

to match pages. still, i'd rather code ran on new tab page, possible?


nb. here's full script: chrome version 59.0.3071.115

// ==userscript== // @name         hide buttons // @namespace    http://tampermonkey.net/ // @version      0.1 // @description  test script // @author       greedo // @match        *://*/* // @grant        none // ==/userscript== (function(window, chrome){   "use strict";   var doc = window.document;   doc.getelementbyid("mv-tiles").style.opacity = "0"; doc.getelementbyid("f").style.opacity = "0.1"; }(window, chrome)); 


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -