Open sbordeyne opened 5 years ago
This is neat, but might a little overkill since Chrome lets you create custom search engines. That said, the top/controversial/new suggestions are a nice value-add, as is adding a preconfigured tool for many uses' benefit. Since most of RES' target browsers support chrome.omnibox
now, this would probably be a good candidate -- assuming that the feature would first check if it were enabled inside RES' user settings.
A few recommendations:
http://reddit.com
with https://www.reddit.com
to avoid redirects.manifest.json
description
, you don't need to mention "An extension to..." -- that's obvious from the context.Thanks for the input, I've edited the code in my issue.
There's not really a good way to check if the tab is a new tab. From what I know though, the new tab page is titled "New Tab" even though the rest of chrome is in another language.
I coded a chrome extension for something that always bothered me, typing "reddit.com/r/" in the omnibar. This is what goes into the background.js file.
This is the manifest.json file: