Bing: Definition box auto expander

Clicks the "See more" button for you. Sadly, that button is really interactive after some time, so there is a delay.

  1. // ==UserScript==
  2. // @name Bing: Definition box auto expander
  3. // @namespace Violentmonkey Scripts
  4. // @match https://www.bing.com/search*
  5. // @grant none
  6. // @version 1.0.0
  7. // @author myf
  8. // @license CC0
  9. // @run-at document-end
  10. // @description Clicks the "See more" button for you. Sadly, that button is really interactive after some time, so there is a delay.
  11. // ==/UserScript==
  12. /*
  13. * https://greasyfork.org/en/scripts/526181-bing-definition-box-auto-expander
  14. * Changelog
  15. * 1.0.0 (2025-02-07) Init
  16. */
  17. function expandOnce() {
  18. const cont = document.querySelector('.dc_innerCont');
  19. if( !cont || cont.matches('.dc_innerCont.dc_HeightExp')) {
  20. // console.log('Auto exapand definitopn: DONE or not applicable.')
  21. return
  22. }
  23. document.querySelector('.b_DictBtnLink')?.click();
  24. // console.log('Auto exapand definitopn: check and attempt.')
  25. setTimeout(expandOnce, 100);
  26. }
  27. expandOnce();