topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday April 16, 2024, 12:01 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

Flippertie

  • Participant
  • Joined in 2010
  • *
  • Posts: 18
    • View Profile
    • Donate to Member
<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.co...mp;tbs=qdr:d&ei=.....    Past 24 hrs:
http://www.google.co...mp;tbs=qdr:w&ei=....    Past week:
http://www.google.co...mp;tbs=qdr:y&ei=....    Past Year:

Date options Default.jpg

Note the only change is the character before the last  '&'  

So I changed the "y" to a "m" and google returns the links for the past month, and adds "> Past month" to the sidebar.

http://www.google.co...mp;tbs=qdr:m&ei=....    Past month:

Date options Month.jpg

It seems to me that it should be quite possible to make a greasemonkey (or similar) user script to add a link to "Past Month" in the sidebar, and use it to generate the same URL as the others.

Any takers? or suggestions as to how else I can get a 1 click "Past month" search?

Thanks
« Last Edit: April 19, 2010, 03:28 AM by Flippertie »

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: [IDEA] Simple GreaseMonkey Script for Google Search options.
« Reply #1 on: April 21, 2010, 05: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.mozil.../firefox/addon/10243
  http://sites.google....s/google-date-keeper

Does that suit your needs?

Flippertie

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

"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
    • View Profile
    • Donate to Member
Re: [IDEA] Simple GreaseMonkey Script for Google Search options.
« Reply #3 on: April 24, 2010, 01:07 AM »
That's odd, I'm using FF 3.6.3 and with what I tried I got:

GoogleDateKeeper.png[IDEA] Simple GreaseMonkey Script for Google Search options.

Perhaps that's not working in some way?

Flippertie

  • Participant
  • Joined in 2010
  • *
  • Posts: 18
    • View Profile
    • Donate to Member
Re: [IDEA] Simple GreaseMonkey Script for Google Search options.
« Reply #4 on: October 28, 2010, 08:57 PM »
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 :-)