Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Option to 'Warn me when websites...try to reload' doesn't work?

  • 4 답장
  • 2 이 문제를 만남
  • 4 보기
  • 최종 답변자: cor-el

more options

Firefox 37.0.1 (and all of my previous installations) for MacOS X 10.7.5.

I would have thought such a simple case of javascript reload was covered. For example, drudgereport.com still annoyingly reloads every few minutes due to this in its header:

var timer = setInterval("autoRefresh()", 1000 * 50 * 3); function autoRefresh(){self.location.reload(true);}

Would this not qualify as a bonefide browser bug?

Firefox 37.0.1 (and all of my previous installations) for MacOS X 10.7.5. I would have thought such a simple case of javascript reload was covered. For example, drudgereport.com still annoyingly reloads every few minutes due to this in its header: var timer = setInterval("autoRefresh()", 1000 * 50 * 3); function autoRefresh(){self.location.reload(true);} Would this not qualify as a bonefide browser bug?

선택된 해결법

The setting in "Options/Preferences > Advanced > General" doesn't work when JavaScript is used to refresh a web page like the drudgereport website is using.

A possible workaround is to use a bookmarklet to disable this 'feature'. You need to use the bookmarklet each you (re)load the web page.

javascript:clearInterval(timer);void(autoRefresh=null);

The setting in "Options/Preferences > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.

See also:

문맥에 따라 이 답변을 읽어주세요 👍 1

모든 댓글 (4)

more options

kencute is clearly a spammer. Anyone else?

more options

선택된 해결법

The setting in "Options/Preferences > Advanced > General" doesn't work when JavaScript is used to refresh a web page like the drudgereport website is using.

A possible workaround is to use a bookmarklet to disable this 'feature'. You need to use the bookmarklet each you (re)load the web page.

javascript:clearInterval(timer);void(autoRefresh=null);

The setting in "Options/Preferences > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.

See also:

글쓴이 cor-el 수정일시

more options

Nicely elegant solution.

This works a charm, though it'd be better as a single step (load page and stop reload as one bookmark). I've tried variants of:

javascript:location='http://drudgereport.com';clearInterval(timer);void(autoRefresh=null);

...to no avail. Is this possible?

more options

No, that won't work because the JavaScript needs to run when the page has finished loading and that won't happen if you change the location. You would have to use GreaseMonkey or Scriptish to achieve that and run the script on page load.