Google Search - Time selections and EU popup

Stilez
2017-07-11T14:11:04Z

Add extra time ranges to Google Search (from 6 hours to 8 years), and as an aside, always show tools and remove any search result redirects (Search engine only) if nothing else has removed them.

MAIN AIM - EXTRA TIME SELECTIONS:

Google Search allows search during a period of time - 1 hour, 1 day, 1 week, 1 month, 1 year. There's a "custom range" option, but far too often I want the last 3 or 6 months, or the last 2 or 3 years. This script adds extra time intervals. I also added a few other cleanups. Note this is for the main search only, at the moment.

OTHER AIMS - EU CONSENT POPUP/OVERLAY:

In the EU, Google pops up an annoying reminder to consent, and keeps popping it up or creating an overlay if you dont want to log in. So this kills the EU popup, or tries to.

1) Add extra time ranges to Google Search time menu, from 6 hours to 8 years.
2) Attempt to kill the EU consent popup.
3) Start Google Search by showing "tools" menu.
4) Kill Google Search result redirects (Search only) to be plain URLs.

I might not keep this up to date, but I'll be using it myself so an update won't be hard to post (here or anywhere else). If you want an update because it's not working, let me know.

Also I'm not a pro with scripts, so this probably isn't the best script working it could be. If you want to fork and improve it, please do, and let me know!