On 1/3/2017 5:32 PM, User wrote:
> Prior to upgrading to SM 2.46, I have used the following manual workaround 
> shown
> on comment 7 at this Bugzilla bug record below to delete browser history but
> preserve the most recent 30 days:
> 
> https://bugzilla.mozilla.org/show_bug.cgi?id=660646#c7
> 
> Using this expression:
> 
> Components.classes['@mozilla.org/browser/nav-history-service;1'].getService(Components.interfaces.nsIBrowserHistory).removeVisitsByTimeframe(0,
> (new Date().setHours(0, 0, 0, 0) - (parseInt(prompt('Days of history to keep',
> 30)) - 1) * 24 * 60 * 60 * 1000) * 1000 - 1)
> 
> I just recently upgraded to SM 2.46 and found that using the expression I
> mentioned above used in the SM error console's evaluation field to delete
> browser history except the last 30 days, no longer works. The NUMBER OF DAYS
> prompt that is supposed to appear with this expression no longer appears when
> the expression is evaluated in the error console. I'm not sure if this problem
> now have anything to do with the mentioned changes regarding the Javascript
> debugger interface at this URL:
> 
> http://www.seamonkey-project.org/releases/seamonkey2.46/
> 
> and if so, what if any, is the workaround solution to execute the same
> expression elsewhere in SM 2.46? This method has worked well for me up until 
> now
> and I'm guessing that the expression above just needs some update as some of 
> the
> elements the expression is referring to may now be invalid in SM 2.46. Thanks
> for any advise from advance users / coders.
> 

Try one of the other work-arounds in bug #660646.  One suggests a
PrefBar button; if you have the PrefBar extension installed, the Expire
History button can be added from
<http://prefbar.tuxfamily.org/buttons.html#expirehistory>.  Although I
created that button, I now use the "Expire history by days" extension
from
<https://addons.mozilla.org/en-US/firefox/addon/expire-history-by-days/>.
 I know it works with SeaMonke 2.46; I do not know if the PrefBar button
still works with 2.46.

"Expire history by days" 1.2.1 cannot be used by SeaMonkey.  It is
necessary to get the older version 1.2.0 after it has been converted via
<http://addonconverter.fotokraina.com/>.  If you send me an E-mail
message, I will reply with a copy of the converted 1.2.0 .xpi file.  My
real E-mail address is in the Organization header field of this
newsgroup reply; look at the message source to find the Organization
header field.

-- 
David E. Ross

The Crimea is Putin's Sudetenland.
The Ukraine will be Putin's Czechoslovakia.
See <http://www.rossde.com/editorials/edtl_PutinUkraine.html>.
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to