Advertisement
grahamperrin

Google Search date range shortcut 0.2.2 release note (condensed)

Jan 23rd, 2021
72
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. https://addons.mozilla.org/addon/googlesearchdaterangeshortcut/
  2.  
  3. Release notes for 0.2.2 are empty:
  4. https://addons.mozilla.org/en-GB/firefox/addon/googlesearchdaterangeshortcut/versions/0.2.2/updateinfo/
  5.  
  6. ----
  7.  
  8. % diff google_search_date_range_shortcut-0.2.0-fx/script.js google_search_date_range_shortcut-0.2.2-fx/script.js
  9. 107c107
  10. < const timepara = para.match(/^tbs=qdr:([hdwmy])(\d*)$/);
  11. ---
  12. > const timepara = para.match(/^tbs=[^&]*qdr:([hdwmy])(\d*)$/);
  13. 120c120
  14. < const timepara = now_val.match(/^qdr:([hdwmy])(\d*)$/);
  15. ---
  16. > const timepara = now_val.match(/qdr:([hdwmy])(\d*)$/);
  17. 195c195
  18. < if(/tbs=qdr:m/.test(href)){
  19. ---
  20. > if(/tbs=[^&]*qdr:m/.test(href)){
  21. 198c198
  22. < else if(/tbs=qdr:y/.test(href)){
  23. ---
  24. > else if(/tbs=[^&]*qdr:y/.test(href)){
  25. %
  26.  
Advertisement
RAW Paste Data Copied
Advertisement