Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

turn off the warning about "block auto refresh"

  • 15 replies
  • 2 have this problem
  • 129 views
  • Last reply by S47

more options

I set

about:config?filter=accessibility.blockautorefresh

to true because some websites decides by itself to reload a page whilst reading!

What I am asking is if it is at all possible to stop this message coming across the top of the page every time I visit!

Many Thanks :)

I set about:config?filter=accessibility.blockautorefresh to true because some websites decides by itself to reload a page whilst reading! What I am asking is if it is at all possible to stop this message coming across the top of the page every time I visit! Many Thanks :)
Attached screenshots

Chosen solution

jscher2000 said

The - in the title is – (an "n-dash") which is a different character from a hyphen. If you go to the Console section of the developer tools (Ctrl+Shift+k) and type document.title and press Enter, you can copy the title and then paste it into your style rule. Then it should match exactly. Alternately, you can combine two title attribute selectors to match two word portions so that the dash isn't considered: #main-window[title*="NRK.no"][title*="nyheter, tv og radio fra Norge og hele verden"] notification[value="refresh-blocked"]{


document.title I did not know that :D or the: n-dash

  • #main-window[title*="NRK.no"][title*="nyheter, tv og radio fra Norge og hele verden"] notification[value="refresh-blocked"]{

This worked, the first one did not :D


my situation: see added picture for windows 10 or go to file explorer options in older windows, then view then find something about showing/hiding the file extension (check/uncheck)

  • In your explorer window, go to View and check (File name extensions)

X:\Users\Windows log in user name\AppData\Roaming\Mozilla\Firefox\Profiles\XXXXXXXX.default\Chrome

Create a TXT (text) file and call it:

userChrome.css

yes to changing the file type!

See "Finish product:" or keep reading!


I mark these as the solutions:

Get the sites exact name: Console section of the developer tools (Ctrl+Shift+k) and type document.title


For a website that has an; "n-dash" IN THE TITLE nrk.no who's title is: NRK.no – nyheter, tv og radio fra Norge og hele verden use:

#main-window[title*="NRK.no"][title*="nyheter, tv og radio fra Norge og hele verden"] notification[value="refresh-blocked"]{

 visibility: collapse !important;

}


for a website with a simple title like: reload every 10 seconds who's title is: "Reload Every 10 Seconds" use:

#main-window[title*="Reload Every 10 Seconds"] notification[value="refresh-blocked"]{

 visibility: collapse !important;

}


ALL the answers was provided by: Mr. jscher2000

And a million thanks to you :D


Finish product: /* remove allow to refresh */ /*01 check site name: (Ctrl+Shift+k) and type: document.title*/

/*Sites with "n-dash" in title*/

#main-window[title*="NRK.no"][title*="nyheter, tv og radio fra Norge og hele verden"] notification[value="refresh-blocked"]{

 visibility: collapse !important;

}

/*Sites with simpler titles*/

#main-window[title*="Reload Every 10 Seconds"] notification[value="refresh-blocked"]{

 visibility: collapse !important;

} #main-window[title*="Bergensavisen"] notification[value="refresh-blocked"]{

 visibility: collapse !important;

}

Read this answer in context 👍 0

All Replies (15)

more options

HI, that should have turned it off but you are running version 62 so any guess as to what happens in a Beta.

I can not find anything other than to do what you did as the settings in Options do not include the check box that when combined would turn that off.

Have you restarted Firefox after making the changes ?

more options

Pkshadow said

HI, that should have turned it off but you are running version 62 so any guess as to what happens in a Beta. I can not find anything other than to do what you did as the settings in Options do not include the check box that when combined would turn that off. Have you restarted Firefox after making the changes ?

I had it not in the beta either! I am running beta now and still it shows off for every website! Ran Nightly and still a problem :(

more options

Probably a rhetorical question, but just to make sure : After you changed the value of that preference on the 'about:config' page - did you then close and restart Firefox, in order for the change to take effect  ?

more options

McCoy said

Probably a rhetorical question, but just to make sure : After you changed the value of that preference on the 'about:config' page - did you then close and restart Firefox, in order for the change to take effect  ?

yes :)

more options

S47 said

McCoy said
Probably a rhetorical question, but just to make sure : After you changed the value of that preference on the 'about:config' page - did you then close and restart Firefox, in order for the change to take effect  ?

yes :)

I overlooked the fact that Pkshadow already asked the same question - sorry  !

more options

McCoy said

S47 said
McCoy said
Probably a rhetorical question, but just to make sure : After you changed the value of that preference on the 'about:config' page - did you then close and restart Firefox, in order for the change to take effect  ?

yes :)

I overlooked the fact that Pkshadow already asked the same question - sorry  !

No worries ;) it's fine :)

more options

S47 said

BUMP!

Just to make sure :

accessibility.blockautorefresh :

its value needs to be set to false to turn it OFF

its value needs to be set to true to turn it ON

(after a value has been changed : close and restart Firefox)

more options

blockautorefresh is all or nothing. When you enable this accessibility feature (i.e. pref is true like you posted above) then you will see a warning bar every time you visit a web page where this applies. There isn't a white list to bypass this warning, so you will have to accept it or disable this feature (i.e. set the pref to false).

I don't know if any of the popular content blocking extensions support this feature.

more options

the answer is: it can not be done! this exact option of firefox was made by Apple.

more options

I think you're giving up a little too easily here.

You can use custom style rules in a userChrome.css file to hide that notification --

notification[value="refresh-blocked"]{
  visibility: collapse !important;
}

-- but I find it hard to believe that would be a good way to use this feature because won't you need the Allow button when you want to be redirected?

As a workaround, you could hide most of the bar by giving it a negative top margin, and then slide it down when you hover it, maybe after a half second delay:

notification[value="refresh-blocked"] {
  margin-top: -30px !important;
  transition: margin-top 500ms ease;
}
notification[value="refresh-blocked"]:hover {
  margin-top: 0 !important;
  transition: margin-top 500ms ease 500ms;
}

Or similarly, you could hide the contents of the bar, leaving just the 5 pixels of padding around the contents, until you hover it:

notification[value="refresh-blocked"] > hbox, 
notification[value="refresh-blocked"] > toolbarbutton {
  visibility: collapse !important;
}
notification[value="refresh-blocked"]:hover > hbox, 
notification[value="refresh-blocked"]:hover > toolbarbutton {
  visibility: visible !important;
}

Either would allow access to the bar on demand while giving you back most of the content area for the page.

I was using this page for testing: https://www.jeffersonscher.com/res/reload.html

more options

Now... what about doing that only for one site? It's difficult. You can limit that rule to pages that contain a certain phrase in the title, but not with a particular address. So as an example with title:

Firefox marks the test page as

title="Reload Every 10 Seconds - Mozilla Firefox"

That's the title on the tab plus " - Mozilla Firefox"

So to limit the rule to that page, for example:

#main-window[title="Reload Every 10 Seconds - Mozilla Firefox"] notification[value="refresh-blocked"]{
  visibility: collapse !important;
}

If there is a pattern to the titles that varies from page to page, such as this site having "| Mozilla Support" in each title:

#main-window[title*="| Mozilla Support"] notification[value="refresh-blocked"]{
  visibility: collapse !important;
}

(using title*= matches the text anywhere in the title)

Et cetera.

A good site to get advice on trickier custom style rules is: https://www.reddit.com/r/FirefoxCSS/

more options

jscher2000 said

Now... what about doing that only for one site? It's difficult. You can limit that rule to pages that contain a certain phrase in the title, but not with a particular address. So as an example with title: Firefox marks the test page as title="Reload Every 10 Seconds - Mozilla Firefox" That's the title on the tab plus " - Mozilla Firefox" So to limit the rule to that page, for example:
#main-window[title="Reload Every 10 Seconds - Mozilla Firefox"] notification[value="refresh-blocked"]{
  visibility: collapse !important;
}

If there is a pattern to the titles that varies from page to page, such as this site having "| Mozilla Support" in each title:

#main-window[title*="| Mozilla Support"] notification[value="refresh-blocked"]{
  visibility: collapse !important;
}

(using title*= matches the text anywhere in the title)

Et cetera.

A good site to get advice on trickier custom style rules is: https://www.reddit.com/r/FirefoxCSS/

MEGA MEGA COOLD :D I now have this:

#main-window[title*="NRK.no – nyheter, tv og radio fra Norge og hele verden"] notification[value="refresh-blocked"]{
  visibility: collapse !important;
}
#main-window[title*="Reload Every 10 Seconds"] notification[value="refresh-blocked"]{
  visibility: collapse !important;
}

ant it works on https://www.jeffersonscher.com/res/reload.html

But it doe not work on this site:

NRK.no – nyheter, tv og radio fra Norge og hele verden


If I understand this right, the problem is the "-" in the title!

I prefer to go rule by site, I have much more control that way :D

more options

The - in the title is – (an "n-dash") which is a different character from a hyphen. If you go to the Console section of the developer tools (Ctrl+Shift+k) and type

document.title

and press Enter, you can copy the title and then paste it into your style rule. Then it should match exactly.

Alternately, you can combine two title attribute selectors to match two word portions so that the dash isn't considered:

#main-window[title*="NRK.no"][title*="nyheter, tv og radio fra Norge og hele verden"] notification[value="refresh-blocked"]{

more options

Chosen Solution

jscher2000 said

The - in the title is – (an "n-dash") which is a different character from a hyphen. If you go to the Console section of the developer tools (Ctrl+Shift+k) and type document.title and press Enter, you can copy the title and then paste it into your style rule. Then it should match exactly. Alternately, you can combine two title attribute selectors to match two word portions so that the dash isn't considered: #main-window[title*="NRK.no"][title*="nyheter, tv og radio fra Norge og hele verden"] notification[value="refresh-blocked"]{


document.title I did not know that :D or the: n-dash

  • #main-window[title*="NRK.no"][title*="nyheter, tv og radio fra Norge og hele verden"] notification[value="refresh-blocked"]{

This worked, the first one did not :D


my situation: see added picture for windows 10 or go to file explorer options in older windows, then view then find something about showing/hiding the file extension (check/uncheck)

  • In your explorer window, go to View and check (File name extensions)

X:\Users\Windows log in user name\AppData\Roaming\Mozilla\Firefox\Profiles\XXXXXXXX.default\Chrome

Create a TXT (text) file and call it:

userChrome.css

yes to changing the file type!

See "Finish product:" or keep reading!


I mark these as the solutions:

Get the sites exact name: Console section of the developer tools (Ctrl+Shift+k) and type document.title


For a website that has an; "n-dash" IN THE TITLE nrk.no who's title is: NRK.no – nyheter, tv og radio fra Norge og hele verden use:

#main-window[title*="NRK.no"][title*="nyheter, tv og radio fra Norge og hele verden"] notification[value="refresh-blocked"]{

 visibility: collapse !important;

}


for a website with a simple title like: reload every 10 seconds who's title is: "Reload Every 10 Seconds" use:

#main-window[title*="Reload Every 10 Seconds"] notification[value="refresh-blocked"]{

 visibility: collapse !important;

}


ALL the answers was provided by: Mr. jscher2000

And a million thanks to you :D


Finish product: /* remove allow to refresh */ /*01 check site name: (Ctrl+Shift+k) and type: document.title*/

/*Sites with "n-dash" in title*/

#main-window[title*="NRK.no"][title*="nyheter, tv og radio fra Norge og hele verden"] notification[value="refresh-blocked"]{

 visibility: collapse !important;

}

/*Sites with simpler titles*/

#main-window[title*="Reload Every 10 Seconds"] notification[value="refresh-blocked"]{

 visibility: collapse !important;

} #main-window[title*="Bergensavisen"] notification[value="refresh-blocked"]{

 visibility: collapse !important;

}

Modified by S47