Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

How do I delete just the old history (2013) and leave the rest

  • 4 trả lời
  • 2 gặp vấn đề này
  • 10 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

I need to delete all my ancient history, but not the recent. Can't find any way to select by date.

Win 7 Home Premium

Ninian

I need to delete all my ancient history, but not the recent. Can't find any way to select by date. Win 7 Home Premium Ninian

Tất cả các câu trả lời (4)

more options

Are you talking about the internet browsing history or some other history?

more options

You can look at this extension:

more options

After I installed the add-on, started having lots of problems with FF. So, had to remove it. Couldn't tell whether or not it actually did anything, looks like all the ancient history is still there.

more options

What kind of problems did you get after installing the extension?

You can try to remove the history manually in the History Manager by doing a search for a colon.

How many history items do you have to remove?

If you only want to do this once or occasionally then you can consider to use this code:

You will have to calculate the number of days that you want to keep to remove only history items from 2013 and older (365+31+28+26)

You can open the Browser Console (Firefox/Tools > Web Developer). Paste the JavaScript code in the command line and press the Enter key to run the code.

(function(){
/* expire history by days, based upon bug 660646 comment 5/7  - dickvl@kb.mozillazine.org */

var Cc = Components.classes, Ci = Components.interfaces;
var his = Cc["@mozilla.org/browser/nav-history-service;1"].getService(Ci.nsIBrowserHistory);
var prs = Cc["@mozilla.org/embedcomp/prompt-service;1"].getService(Ci.nsIPromptService);
var day = 0, obj = new Object, txt = "Expire History"; obj.value = "90";

if (prs.prompt(null,txt,"Days of history to keep",obj,null,{})){
day = parseInt(obj.value);
if(!isNaN(day)&&(day>0)){
 his.removeVisitsByTimeframe(0,(new Date().setHours(0,0,0,0) - day * 86400000) * 1000);
}else{ prs.alert(null,txt,"Error Parsing Days: "+obj.value); }
}
})();

If hat doesn't work then you may have a problem with the places.sqlite database file and you may have to reset places.sqlite.

You can move (copy/paste) history items that you want to keep to a bookmarks folder. See also: