开发者

Browsing back doesn't work the same with greasemonkey script

This question is related to this one where I found a strange workaround for a problem using this greasemo开发者_开发问答nkey script:

var els = document.getElementsByTagName("*");
for(var i = 0, l = els.length; i < l; i++) {
  var el = els[i];
  el.innerHTML = el.innerHTML;
}

One of my coworkers now showed me the following: When you do a bugzilla database query, you fill some textfields, select some dropdown items etc. Usually, those are remembered when you use the browser's back button to get back to the query page, but when this script is active, they aren't.

Is this a general problem with using greasemonkey scripts and is there a solution for this?


Found a solution myself. Apparently the query page itself was modified by the script right after navigating back to it and lost all saved form data in this process. Adding the query page URL to the list of excluded URLs solved the problem.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜