开发者

How to get firefox to remember URLs visited in a frame across browser restarts?

I've written a greasemonkey script that modifies craigslist search results to appear in two frames, a frame on the left with the results listed and a frame on the right to display each posting if clicked on from the left frame (I modify the URL of each result to say target="rightframe").

The problem I have is that the 'visited' status of URLs on the result frame seems to be lost when I restart the browser. That is, when I click on a link in the left frame, the link appears in the 'visited' style, and this persists when I reload the page. However, if I restart the browser and visit the page again, then that link no longer appears in the 'visited' style. This makes it hard to keep track of which postings I've already seen :(.

The reason I believe the frames are causi开发者_运维知识库ng the problem is that if I click on a search result link on craigslist without the greasemonkey script, then the 'visited' status persists across browser restarts.

Many thanks for any suggestions!

Josh


It is not possible. There is a bug tracking this issue. If you were not in Greasemonkey and were an actual add-on, you could call the proper history API and add it manually if you wanted.


I know this doesn't address your question directly, but since you said the link visited status is remembered when not added to frames, have you tried just manipulating the page using <div />s with their overflow property set to "scroll"?

This would ensure that the links don't have to change their context which may fix your problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜