The following file seems to be the style file for Google Chrome’s empty new tab page:
chrome-search://most-visited/single.css
You can see the file if you enter it into the address bar. It seems the file is not directly accessible, at least I couldn’t find it. Any ideas how to edit it?
Any ideas how to edit it?
I want to “display:none” the most visited pages section on new tab…
As the chrome pages are hardcoded in a browser resource file neither user scripts or user styles can change them. Though an extension can do some changes.
Edit the browser resourse file. Stays only til next update:
In Chrome Windows You can use a resourse-editor and edit the new_tab.html and its css in the section browser_resources.
In e.g. Chromium Linux You can always hack that file. Open /usr/lib/chromium-browser/resources.pak as root with a hex-editor e:g: Okteta and search for the characters: #most-visited {, find its declaration: -webkit-user-select: none; below and replace it with spaces and display: none; and save the file. Restart browser.
edit: #most-visited {¬ -webkit-user-select: none;
to: #most-visited {¬ spaces spaces display: none;
EDIT thanks Discourse for messing with spaces in code: use overwrite and replace with spaces, you can’t change the strings number of bytes
…and none of the extensions I tried worked so far.
I tested the New Tab Redirect extension, it works by redirecting to an about:blank or costum page:
Did I mention I don’t use Google Chrome? I prefer Chromium.
Google Chrome and the open source project Chromium behind it apparently uses PAK files for theire chrome-urls pages. Those seems to be of their own archive format and can’t be opened/saved by any archiver or edited by any resource editor I know of today.
You can also use PSPad, my favourite code editor for Windows, it can load large files in hex mode and it would be much simplier to use in this case than the full blown hex editors above.
Used it for many years as an IDE for all sorts of projects, I can still use it on Wine and today successfully tested the resource.pak edit I posted before. It’s freeware and I would happily recommend it as a general dev tool. http://www.pspad.com/en/
For other occasions try Resource Hacker, it can edit/save Win exe and dll embedded resources. This is my old fauvorite since more than ten years, I still use it on Wine. http://angusj.com/resourcehacker/
I guess not, but If you happen to have Ms Visual Studio installed you could try its built in Solution Explorer, at least Chrome Win version is a Visual C project I think.