Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Learn More

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

block / prevent dynamic HTML / CSS that moves video container to new location while scrolling

  • 3 risposte
  • 2 hanno questo problema
  • 2 visualizzazioni
  • Ultima risposta di trakeen

more options
There's this annoying thing that some websites are doing that moves a video to the right side of the screen when you scroll down the page. This is the normal code for the site:
, but once you scroll, and move a hair past the boundaries for the video container the code changes to:
.

I tried using yesscript and was not able to solve the issue. I also tried NoScript, with no luck, but I might be missing something with NoScript, like the option to block a single JS file from a domain. All I've seen is the ability to allow all scripts from domain X. I'm assuming this code change happens because of the OnScroll.js file the site access, but I can't say for certain. Things are layered way too well for me to track it all down.

If I use the web developer tools and inspect the element, then delete just the right bit of code (which I can't seem to remember anymore) everything works like I'd like it to.

Simply put, I want to know if there's a way I to configure Firefox so it will block / ignore dynamic HTML & CSS, preferably domain specific. Even better would be a way to block that specific code change. This is frustrating because most of the time I don't care about seeing the video, I simply want to listen while I browse the page, looking for other stories I might be interested in, only to have a video player blocking my view of other objects on the page.

There's this annoying thing that some websites are doing that moves a video to the right side of the screen when you scroll down the page. This is the normal code for the site: <div class="video-container" style="height: 450px;">, but once you scroll, and move a hair past the boundaries for the video container the code changes to: <div class="video-container sticky-video sticky-right" style="height: 450px;">. I tried using yesscript and was not able to solve the issue. I also tried NoScript, with no luck, but I might be missing something with NoScript, like the option to block a single JS file from a domain. All I've seen is the ability to allow all scripts from domain X. I'm assuming this code change happens because of the OnScroll.js file the site access, but I can't say for certain. Things are layered way too well for me to track it all down. If I use the web developer tools and inspect the element, then delete just the right bit of code (which I can't seem to remember anymore) everything works like I'd like it to. Simply put, I want to know if there's a way I to configure Firefox so it will block / ignore dynamic HTML & CSS, preferably domain specific. Even better would be a way to block that specific code change. This is frustrating because most of the time I don't care about seeing the video, I simply want to listen while I browse the page, looking for other stories I might be interested in, only to have a video player blocking my view of other objects on the page.

Tutte le risposte (3)

more options

Here are a couple of screen shots to show what I'm seeing.

more options

If you have made changes to Advanced font size settings like increasing the minimum/default font size then try the Default font size setting "16" and the Minimum font size setting "none" in case the current setting is causing the problem.

  • Options/Preferences -> Content : Fonts & Colors -> Advanced -> Minimum Font Size (none)

Make sure you allow pages to choose their own fonts.

  • Options/Preferences -> Content : Fonts & Colors -> Advanced: [X] "Allow pages to choose their own fonts, instead of my selections above"

It is better not to increase the minimum font size, but to use an extension to set the default page zoom to prevent issues with text not getting displayed properly.

more options

Those settings are at default, and double checked. This does not seem to be the cause.