Skip to content

ao-uni/googleSearchExtraButtons

 
 

Repository files navigation

2024-02-20: Forked from original

TODO

  • Clean obsolete
  • Refactor
  • Study manifest v2, v3 and update if necessary
  • Add functionality
    • Set Search result language
    • Add ja
    • Modify site search presets
    • Improve button visibility
    • Add dropdown for popular(?) choices: 1hr,6hr,1d,3d,7d,1m,3m,6m,1y
  • Fix
    • First button (1day, 1year, 1month) not working

↓ Readme from Original Repo ↓

Google Search Extra Buttons

(show this instruction in Russian)

Add buttons of customized search to start page and results page of Google.
(Fx, Chrome, Opera12+, Safari, MS Edge + Win10 + Tampermonkey), Vivaldi, KMeleon, Yandex, Brave

NOTE 2022-08: 1) for working in Images tab in Chrome it need install extension whiсh disable CSP (Content Security Policy) else breaks by JS error. (It's not required for common search.)
NOTE: 2) G. Search in images restrict past intervals! Only day|week|month|year.
3) WxH (show sizes) function is removed, so button is changed to B/W.

2022-08-22: Google Dark Theme support (in input field);
2018-12-11: White-Mint-Oval design (as default), blue old design as additional;
2018-12-05..11: start page with buttons is repaired; fix img search; hide buttons in shop|boks|finance;
2018-11-30..12-4: search by up to 30 filetypes; images search by types and Show Sizes checkbox;
2018-11-19: by changes of layout (classes and logic) of results page (TODO start page, 'pdf+enter+next' bug); (when search with filetype:pdf then search by Enter key without pdf (appears 'filetype:pdf'))
2017-12-12: transitions in fading columns; some style modifications.
2017-03-11: change constructor Tout() to short function SC() (decelerating timeout - refactoring).
2016-12-12: gray design of buttons on the pages with new desing of Google. 2016-12-07: fixes for compatibility of new design of input fields; old format is supported also.
2016-01-17: fix autostart after select of site; switch of checkbox.

Hosting: greasyfork.org: Google Search Extra Buttons

  • Fx - script installed by GreaseMonkey or Tampermonkey (addons for userscripts);
  • Chrome - immediately (on the page chrome://extensions/ it placed as unpacked script in "developer mode"; directory sholuld be contain manifest.json; or by other methods (Tampermonkey));
  • Opera - save userscript in file placed in Opera directory... ( there are instructions );
  • Safari - installed by Tampermonkey for Safari.

Script adds 8 types of buttons that doubled links hidden in:

  • change interface language (en(default), fr, ru, de, es) in Settings area;
  • search PDF, DOC docs;
  • search in site (from list; if no list in settings (or commented in code), this button is not displayed);
  • write list of your favorite sites in code (example: ['slashdot.org','digg.com']);
  • search in interval of dates (fast opening of Google inteface);
  • search for 1,2..13 last days;
  • search for 1,2..10 last weeks;
  • search for 1,2..11 last months;
  • search for 1,2..10 last years;
  • search for 1,2..22 last hours;
  • multilanguage interface by settings in navigator.language or in script: ('en' is default or on undescribed language);
  • remove lang in settings for no hints (interface language will be English).
  • save settings (language and sites list) in the external localStorage (google clean own storage), copy list as text.
  • keep type of current page ('tbm=' parameter) - news, pictures, video etc.
  • hide first button (File Types in search) in Settings
  • hide second button ("site") if you clean sites list and change any another setting (formally for save)

This script is based on BarsMonster article (ru) .

Screenshots:

Search with extra buttons

List for search in sites (old version with 6 buttons)

List for search in sites in dark header style of page

Version from 9/9/2015: more buttons

Version from 12/12/2016: new design of Google search page and new design of exta buttons:

Version from 12/12/2016: new design of Google search

Version from 12/12/2016: new 3rd design - main page

About

Google Search Extra Buttons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.5%
  • HTML 2.5%