DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: [IDEA] Simple GreaseMonkey Script for Google Search options.  (Read 8,659 times)

Flippertie

  • Participant
  • Joined in 2010
  • *
  • Posts: 18
<Sorry - Posted this in wrong topic. - Moderator please move>

Using Google search options sidebar you can limit results to a certain time range.

Default options are:  Any time, Latest, Past 24 hours, Past week, Past year, Specific date range,

The one that I want to use all the time is "Past Month" - but it's not there.

But if you manually edit the URL and replace one character Google returns links for the past month - so the search parameters are already coded - just need to request the correct URL

Examples
http://www.google.com/search?q=codingsnacks&hl=en&safe=off&tbo=1&tbs=qdr:d&ei=.....    Past 24 hrs:
http://www.google.com/search?q=codingsnacks&hl=en&safe=off&tbo=1&tbs=qdr:w&ei=....    Past week:
http://www.google.com/search?q=codingsnacks&hl=en&safe=off&tbo=1&tbs=qdr:y&ei=....    Past Year:

[attach]
« Last Edit: April 19, 2010, 08:28 AM by Flippertie »

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: [IDEA] Simple GreaseMonkey Script for Google Search options.
« Reply #1 on: April 21, 2010, 10:47 AM »
I don't have a GM script for you but regarding the "past month" functionality, it looks like the Google Date Keeper extension might be helpful:

  https://addons.mozilla.org/en-US/firefox/addon/10243
  http://sites.google.com/site/littlesparkprojects/downloads/firefox-extensions/google-date-keeper

Does that suit your needs?

Flippertie

  • Participant
  • Joined in 2010
  • *
  • Posts: 18
Re: [IDEA] Simple GreaseMonkey Script for Google Search options.
« Reply #2 on: April 24, 2010, 03:15 AM »
Thanks for the suggestion.  That addon looks as if it would do the trick, but from the landing page (after you install it):

Quote
"Was waiting for public approval when found out some codes isn't working in Firefox 3.6.0 and above! Still working on it"

I've installed it and it makes no difference to the page. I'll keep hunting. This may be my opportunity to teach myself a little scripting....

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: [IDEA] Simple GreaseMonkey Script for Google Search options.
« Reply #3 on: April 24, 2010, 06:07 AM »
That's odd, I'm using FF 3.6.3 and with what I tried I got:

GoogleDateKeeper.png

Perhaps that's not working in some way?

Flippertie

  • Participant
  • Joined in 2010
  • *
  • Posts: 18
Re: [IDEA] Simple GreaseMonkey Script for Google Search options.
« Reply #4 on: October 29, 2010, 01:57 AM »
Just checked back on this thread.  The last month feature has been working for me too for the past couple of months...

Not sure whether google rolled it out to my part of the world later than other places, or what - but it's the time period i use most often - so i'm a happy camper :-)

Original address: https://www.donationcoder.com/forum/index.php?topic=22484.0