ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

[IDEA] Simple GreaseMonkey Script for Google Search options.

(1/1)

Flippertie:
<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:



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.com/search?q=codingsnacks&hl=en&safe=off&tbo=1&tbs=qdr:m&ei=....    Past month:



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

ewemoa:
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:
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"

--- End quote ---

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:
That's odd, I'm using FF 3.6.3 and with what I tried I got:

[IDEA] Simple GreaseMonkey Script for Google Search options.

Perhaps that's not working in some way?

Flippertie:
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 :-)

Navigation

[0] Message Index

Go to full version