X
Tap here to go to the mobile version of the site.

Support Forum

How can I make Firefox sort history per day instead of grouping the "Last 7 days" in the history sidebar ?

Posted

There are history entries for "Today", "Yesterday", and then "Last 7 days". I often need to find the address of a website I visited a few days ago, but I'm forced to search the whole "Last 7 days" entry, which can be quite large, even if I know the precise day. I should add that I have tried and am not interested in the History Submenu add-on for the History menu : there is no per site grouping, and I find navigating in large menus uneasy. Thank you for your assistance !

There are history entries for "Today", "Yesterday", and then "Last 7 days". I often need to find the address of a website I visited a few days ago, but I'm forced to search the whole "Last 7 days" entry, which can be quite large, even if I know the precise day. I should add that I have tried and am not interested in the History Submenu add-on for the History menu : there is no per site grouping, and I find navigating in large menus uneasy. Thank you for your assistance !

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.1 r102
  • Plugin NPAPI Ma-Config.com
  • Foxit Reader Plug-In For Firefox and Netscape
  • Pando Web Plugin
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
  • Version 1.1.5, copyright 1996-2010 The VideoLAN Teamhttp://www.videolan.org/
  • Wacom Dynamic Link Library
  • DRM Netscape Network Object
  • DRM Store Netscape Plugin
  • Npdsplay dll
  • Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
  • np-mswmp

Application

  • User Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20100101 Firefox/11.0

More Information

David Tenser 30 solutions 310 answers

Helpful Reply

I don't think it's possible to break up the "Last 7 days" like you describe. However, if you click the Firefox button and then History, and then click "Last 7 days", you will see the following columns by default: Name, Tags, Location. Right click on any of these columns and you will see a menu where you can add more columns -- add Visit Date.

You should now be able to see which date (and time) each page was visited, and you will be able to have more granularity than before.

Hope this helps.

I don't think it's possible to break up the "Last 7 days" like you describe. However, if you click the Firefox button and then History, and then click "Last 7 days", you will see the following columns by default: Name, Tags, Location. Right click on any of these columns and you will see a menu where you can add more columns -- add Visit Date. You should now be able to see which date (and time) each page was visited, and you will be able to have more granularity than before. Hope this helps.

Question owner

Thank you for your answer. Yes, it's a start. But I prefer using the sidebar. If that is not possible, should I (can I) turn my question into a suggestion for a future release ?

Thank you for your answer. Yes, it's a start. But I prefer using the sidebar. If that is not possible, should I (can I) turn my question into a suggestion for a future release ?
cor-el
  • Top 10 Contributor
  • Moderator
17691 solutions 160067 answers

Helpful Reply

You can create a smart bookmark with a place query as the location that shows a specific history time slot.

Example:

  • place:beginTime=1331420400000000&endTime=1331593200000000&sort=1&type=4

See also:


Below is a JavaScript bookmarklet to facilitate in creating such a query.

The dates need to be entered as GMT time strings.
The current date is shown in the prompt and you can edit that value.
You may need to adjust the GMT time to your current time zone.
If you do not see a smart bookmarks item on that query then you need to close and restart Firefox (that may happen on the bookmarks toolbar).


javascript:(function(){var ID='Invalid Date',Q='place:beginTime=!B!&endTime=!E!&sort=1&type=4',b=new Date(),e=new Date(),B,E,X;do{do{X=0;B=b.toUTCString();E=e.toUTCString();if(P=prompt('Place Query\nBegin Date;End Date\n\n'+B+'\n'+E,B+';'+E)){if(/^place:/.test(P)){X=1;if(/beginTime=(\d+)&endTime=(\d+)/.test(P)){b.setTime(RegExp.$1/1E3);e.setTime(RegExp.$2/1E3);P=b.toUTCString()+';'+e.toUTCString()}}}P=P.split(';');b=new Date(P[0]);B=b.getTime()*1E3;e=new Date(P[1]);E=e.getTime()*1E3;}while(X||(P&&(b.toString()==ID || e.toString()==ID)));if(P){P=Q.replace(/!B!/,B).replace(/!E!/,E);}}while(prompt(b.toLocaleString()+'\n'+B+'\n\n'+e.toLocaleString()+'\n'+E+'\n\n'+P,P))})();
You can create a smart bookmark with a place query as the location that shows a specific history time slot. *https://developer.mozilla.org/en/Places_query_URIs Example: *place:beginTime=1331420400000000&endTime=1331593200000000&sort=1&type=4 See also: *SearchPlaces: https://addons.mozilla.org/firefox/addon/searchplaces/ ---- Below is a JavaScript bookmarklet to facilitate in creating such a query.<br /> *http://en.wikipedia.org/wiki/Bookmarklet<br /> The dates need to be entered as GMT time strings.<br /> The current date is shown in the prompt and you can edit that value.<br /> You may need to adjust the GMT time to your current time zone.<br /> If you do not see a smart bookmarks item on that query then you need to close and restart Firefox (that may happen on the bookmarks toolbar). ---- <pre><nowiki>javascript:(function(){var ID='Invalid Date',Q='place:beginTime=!B!&endTime=!E!&sort=1&type=4',b=new Date(),e=new Date(),B,E,X;do{do{X=0;B=b.toUTCString();E=e.toUTCString();if(P=prompt('Place Query\nBegin Date;End Date\n\n'+B+'\n'+E,B+';'+E)){if(/^place:/.test(P)){X=1;if(/beginTime=(\d+)&endTime=(\d+)/.test(P)){b.setTime(RegExp.$1/1E3);e.setTime(RegExp.$2/1E3);P=b.toUTCString()+';'+e.toUTCString()}}}P=P.split(';');b=new Date(P[0]);B=b.getTime()*1E3;e=new Date(P[1]);E=e.getTime()*1E3;}while(X||(P&&(b.toString()==ID || e.toString()==ID)));if(P){P=Q.replace(/!B!/,B).replace(/!E!/,E);}}while(prompt(b.toLocaleString()+'\n'+B+'\n\n'+e.toLocaleString()+'\n'+E+'\n\n'+P,P))})(); </nowiki></pre>

Modified by cor-el

Question owner

Thank you for your detailed answer. If I understand well, it is definitely not handy though. I need to use that script every time I want to look into the bookmarks, and once for each day. From the web page you linked, it seems it is however possible to give 'beginTime' and 'endTime' relatively to the present day using 'beginTimeRef=1', but since 'beginTime' must be an unsigned value, there is no way to simply request 'yesterday' for example... Plus, if I try to use a simple place query like yours, Firefox tells me it cannot find : jar:file:///C:/Program%20Files/Mozilla%20Firefox/omni.ja!/chrome/browser/content/browser/places/content-ui/controller.xhtml I checked with 7-zip, and the 'content-ui' folder is indeed missing in 'omni.ja'.

Thank you for your detailed answer. If I understand well, it is definitely not handy though. I need to use that script every time I want to look into the bookmarks, and once for each day. From the web page you linked, it seems it is however possible to give 'beginTime' and 'endTime' relatively to the present day using 'beginTimeRef=1', but since 'beginTime' must be an unsigned value, there is no way to simply request 'yesterday' for example... Plus, if I try to use a simple place query like yours, Firefox tells me it cannot find : jar:file:///C:/Program%20Files/Mozilla%20Firefox/omni.ja!/chrome/browser/content/browser/places/content-ui/controller.xhtml I checked with 7-zip, and the 'content-ui' folder is indeed missing in 'omni.ja'.
cor-el
  • Top 10 Contributor
  • Moderator
17691 solutions 160067 answers

You can only use such a query as a bookmark. If the query isn't working then try a cut and paste in a different folder or try to close and restart Firefox.

Once you have a working query then you should be able to edit that query to keep it working with new parameters.

You can also use the SearchPlaces extension and paste the place query in the search field:

You can only use such a query as a bookmark. If the query isn't working then try a cut and paste in a different folder or try to close and restart Firefox. Once you have a working query then you should be able to edit that query to keep it working with new parameters. You can also use the SearchPlaces extension and paste the place query in the search field: *SearchPlaces: https://addons.mozilla.org/firefox/addon/searchplaces/

Question owner

Close and restart did the trick, thank you. It can even be sorted by website, that is great ! However there is no way to get it to update automatically so that I have a "Yesterday", "2 days ago", ... query, right ? Whatever tool I use, I still need to update it myself. Really, I think the real History could be improved by adding these filters by default.

Close and restart did the trick, thank you. It can even be sorted by website, that is great ! However there is no way to get it to update automatically so that I have a "Yesterday", "2 days ago", ... query, right ? Whatever tool I use, I still need to update it myself. Really, I think the real History could be improved by adding these filters by default.
cor-el
  • Top 10 Contributor
  • Moderator
17691 solutions 160067 answers

You can only do that with an extension that updates the query automatically.

SQLite allow to specify dates like now -1 day, but that hasn't been implemented in the code that converts a place: query to an SQLite query.

You can only do that with an extension that updates the query automatically. SQLite allow to specify dates like now -1 day, but that hasn't been implemented in the code that converts a place: query to an SQLite query. *http://www.sqlite.org/lang_datefunc.html

Question owner

Why can't it be the default behavior of Firefox ? How can one actually use the "Last 7 days" group (let alone the broader ones) efficiently ? I'm curious.

Why can't it be the default behavior of Firefox ? How can one actually use the "Last 7 days" group (let alone the broader ones) efficiently ? I'm curious.
cor-el
  • Top 10 Contributor
  • Moderator
17691 solutions 160067 answers

You can use the last 7 days in the Library and sidebar and sort by visited date, but that doesn't allow to sort by site for a specific day. You can only sort a query from a specific date range that you need to create if Firefox doesn't have it.

You can use the last 7 days in the Library and sidebar and sort by visited date, but that doesn't allow to sort by site for a specific day. You can only sort a query from a specific date range that you need to create if Firefox doesn't have it.