Welcome Guest.   Make a donation to an author on the site April 16, 2014, 10:51:58 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Your Support Funds this Site: View the Supporter Yearbook.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: [IDEA] Simple GreaseMonkey Script for Google Search options.  (Read 2265 times)
Flippertie
Participant
*
Posts: 18


see users location on a map View Profile Give some DonationCredits to this forum member
« on: April 19, 2010, 03:23:57 AM »

<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/sea...o=1&tbs=qdr:d&ei=.....    Past 24 hrs:
http://www.google.com/sea...o=1&tbs=qdr:w&ei=....    Past week:
http://www.google.com/sea...o=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/sea...o=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
« Last Edit: April 19, 2010, 03:28:04 AM by Flippertie » Logged
ewemoa
Honorary Member
**
Posts: 2,232



View Profile Give some DonationCredits to this forum member
« Reply #1 on: April 21, 2010, 05:47:36 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.or...en-US/firefox/addon/10243
  http://sites.google.com/s...nsions/google-date-keeper

Does that suit your needs?
Logged
Flippertie
Participant
*
Posts: 18


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #2 on: April 23, 2010, 10:15:47 PM »

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....
Logged
ewemoa
Honorary Member
**
Posts: 2,232



View Profile Give some DonationCredits to this forum member
« Reply #3 on: April 24, 2010, 01:07:17 AM »

That's odd, I'm using FF 3.6.3 and with what I tried I got:



Perhaps that's not working in some way?
Logged
Flippertie
Participant
*
Posts: 18


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #4 on: October 28, 2010, 08:57:46 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 :-)
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.034s | Server load: 0.02 ]