Is there a way to stop floating videos?
- Mojo88
- Posts: 45
- Joined: August 17th, 2013, 6:20 pm
- Location: The corrupt fiefdom called 'Rhode Island'
Is there a way to stop floating videos?
I love my Firefox. It has soooo many nifty features and add-ons.
I'm hoping you folks can suggest a way to stop nagging floating videos that are appearing on more and more web sites. In other words, if the page has a video, I have FF set so that it will not auto-play them. But then if I scroll down the page, that video window will become it's own little nag and relocate down to lower right corner (usually) and just sit there until closed. These things are a real PITA. I am using AdBlock Plus already, along with Flashblock and NoScript.
Before anyone starts chastising me for being lazy, I have indeed Googled this issue (a few times) and could not find answer.
Can someone here help? Many thanks, Dave F. in Rhode Island
I'm hoping you folks can suggest a way to stop nagging floating videos that are appearing on more and more web sites. In other words, if the page has a video, I have FF set so that it will not auto-play them. But then if I scroll down the page, that video window will become it's own little nag and relocate down to lower right corner (usually) and just sit there until closed. These things are a real PITA. I am using AdBlock Plus already, along with Flashblock and NoScript.
Before anyone starts chastising me for being lazy, I have indeed Googled this issue (a few times) and could not find answer.
Can someone here help? Many thanks, Dave F. in Rhode Island
Last edited by Mojo88 on September 1st, 2016, 1:24 pm, edited 1 time in total.
- dfoulkes
- Posts: 22525
- Joined: June 28th, 2008, 10:31 pm
- Location: Mesquite, Nevada
Re: Is there a way to stop floating videos?
You might want to post a link to one of those sites...
I can't remember the last time I saw that happen on any site that I visit... maybe I just don't get into those sites.
I can't remember the last time I saw that happen on any site that I visit... maybe I just don't get into those sites.
As you can see she's (The CAT) always alert and on the prowl for Meoware !!
- Mojo88
- Posts: 45
- Joined: August 17th, 2013, 6:20 pm
- Location: The corrupt fiefdom called 'Rhode Island'
Re: Is there a way to stop floating videos?
Here's one: http://www.providencejournal.com/opinio ... refightingdfoulkes wrote:You might want to post a link to one of those sites.......
You'll see it happen when you scroll down past the big video, then shortly after the big vid is off screen, the new floating window appears.
Many thanks for the tip!
Last edited by Mojo88 on September 2nd, 2016, 5:05 am, edited 1 time in total.
- WaltS48
- Posts: 5141
- Joined: May 7th, 2010, 9:38 am
- Location: Pennsylvania, USA
Re: Is there a way to stop floating videos?
Here is another http://abcnews.go.com/US/twin-hurricane ... d=41769416
Linux Desktop - AMD Athlon(tm) II X3 455 3.3GHz | 8.0GB RAM | GeForce GT 630
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5
Windows Notebook - AMD A8 7410 2.2GHz | 6.0GB RAM | AMD Radeon R5
-
- Posts: 6432
- Joined: February 3rd, 2009, 6:29 pm
Re: Is there a way to stop floating videos?
You can use site-specific user scripts to close floating videos.
Code: Select all
// www.providencejournal.com
document.addEventListener("DOMNodeInserted", function nodeInserted(event) {
document.removeEventListener("DOMNodeInserted", nodeInserted, false);
setTimeout(function () {
var element = document.querySelector(".js-tout-tagalong-close");
if (element) {
element.click();
}
}, 3000);
}, false);
Code: Select all
// abcnews.go.com
var element = document.querySelector("#close");
if (element) {
element.click();
}
- Mojo88
- Posts: 45
- Joined: August 17th, 2013, 6:20 pm
- Location: The corrupt fiefdom called 'Rhode Island'
Re: Is there a way to stop floating videos?
morat wrote:You can use site-specific user scripts to close floating videos.
Code: Select all
// www.providencejournal.com document.addEventListener("DOMNodeInserted", function nodeInserted(event) { document.removeEventListener("DOMNodeInserted", nodeInserted, false); setTimeout(function () { var element = document.querySelector(".js-tout-tagalong-close"); if (element) { element.click(); } }, 3000); }, false);
Code: Select all
// abcnews.go.com var element = document.querySelector("#close"); if (element) { element.click(); }
Thank you.
How/where do I plug in these scripts?
-
- Posts: 6432
- Joined: February 3rd, 2009, 6:29 pm
Re: Is there a way to stop floating videos?
GreasemonkeyMojo88 wrote:How/where do I plug in these scripts?
http://addons.mozilla.org/firefox/addon/748
http://wiki.greasespot.net/
Instructions:
* install extension
* create providence.user.js file with notepad
Code: Select all
// ==UserScript==
// @name Providence Journal
// @namespace http://www.providencejournal.com/
// @include http://www.providencejournal.com/*
// @grant none
// @noframes
// ==/UserScript==
document.addEventListener("DOMNodeInserted", function nodeInserted(event) {
document.removeEventListener("DOMNodeInserted", nodeInserted, false);
setTimeout(function () {
var element = document.querySelector(".js-tout-tagalong-close");
if (element) {
element.click();
}
}, 3000);
}, false);
* install user script
* test page
Greasemonkey 3.9
Firefox 48.0
Windows 7 SP1 32-bit
- dfoulkes
- Posts: 22525
- Joined: June 28th, 2008, 10:31 pm
- Location: Mesquite, Nevada
Re: Is there a way to stop floating videos?
FYI ... I tested both links ... each in my test profile that only has uBlock installed... and at both sites that crappy breakout stuff happened...
Then I tested them in this profile which has uBlock and NoScript ... neither sited had that problem... check that first site to see how many scripts it was blocking... something like... 20 or so... the second site might have had 10+ scripts blocked... I did not temp allow any scripts to see what happened... figured that you must have scripts allowed for that first site... so, maybe disabling one or two at a time will find the offending script.
Then I tested them in this profile which has uBlock and NoScript ... neither sited had that problem... check that first site to see how many scripts it was blocking... something like... 20 or so... the second site might have had 10+ scripts blocked... I did not temp allow any scripts to see what happened... figured that you must have scripts allowed for that first site... so, maybe disabling one or two at a time will find the offending script.
As you can see she's (The CAT) always alert and on the prowl for Meoware !!
- Mojo88
- Posts: 45
- Joined: August 17th, 2013, 6:20 pm
- Location: The corrupt fiefdom called 'Rhode Island'
Re: Is there a way to stop floating videos?
morat wrote:GreasemonkeyMojo88 wrote:How/where do I plug in these scripts?
http://addons.mozilla.org/firefox/addon/748
http://wiki.greasespot.net/
Instructions:
* install extension
* create providence.user.js file with notepad
* open providence.user.js file with browserCode: Select all
// ==UserScript== // @name Providence Journal // @namespace http://www.providencejournal.com/ // @include http://www.providencejournal.com/* // @grant none // @noframes // ==/UserScript== document.addEventListener("DOMNodeInserted", function nodeInserted(event) { document.removeEventListener("DOMNodeInserted", nodeInserted, false); setTimeout(function () { var element = document.querySelector(".js-tout-tagalong-close"); if (element) { element.click(); } }, 3000); }, false);
* install user script
* test page
Greasemonkey 3.9
Firefox 48.0
Windows 7 SP1 32-bit
THANK YOU very much for the info. I am gonna install Greasemonkey and try those scripts.
-
-
- Posts: 6432
- Joined: February 3rd, 2009, 6:29 pm
Re: Is there a way to stop floating videos?
On second thought, I rather not use a DOMNodeInserted event listener since mutation events have been marked as deprecated.
Try these:
The setTimeout method has negligible overhead so the script won't slow down the site.
Try these:
Code: Select all
// ==UserScript==
// @name Providence Journal
// @include http://www.providencejournal.com/*
// @grant none
// @noframes
// ==/UserScript==
setTimeout(function handler() {
var element = document.querySelector(".js-tout-tagalong-close");
if (element) {
element.click();
} else {
setTimeout(handler, 1000);
}
}, 1000);
Code: Select all
// ==UserScript==
// @name ABC News
// @include http://abcnews.go.com/*
// @grant none
// @noframes
// ==/UserScript==
setTimeout(function handler() {
var element = document.querySelector("#close");
if (element) {
element.click();
} else {
setTimeout(handler, 1000);
}
}, 1000);
Last edited by morat on September 4th, 2016, 8:03 am, edited 1 time in total.
- Mojo88
- Posts: 45
- Joined: August 17th, 2013, 6:20 pm
- Location: The corrupt fiefdom called 'Rhode Island'
Re: Is there a way to stop floating videos?
morat wrote:On second thought, I rather not use a DOMNodeInserted event listener.
The setTimeout method has negligible overhead.Code: Select all
// ==UserScript== // @name Providence Journal // @namespace http://www.providencejournal.com/ // @include http://www.providencejournal.com/* // @grant none // @noframes // ==/UserScript== setTimeout(function handler() { var element = document.querySelector(".js-tout-tagalong-close"); if (element) { element.click(); } else { setTimeout(handler, 1000); } }, 1000);
Well, what you just said is all Greek to me, so I guess I will not attempt any of it. Thanks anyway.
-
- Posts: 226
- Joined: August 3rd, 2006, 4:36 am
Re: Is there a way to stop floating videos?
I'm in the same boat, as I bet the vast majority of FF users are. I've been using FF since 2004.Mojo88 wrote:Well, what you just said is all Greek to me, so I guess I will not attempt any of it. Thanks anyway.
This auto-playing of videos has really been annoying me for a long time. Periodically I check for some quick way of preventing them, via add-on or whatever, but never find anything simple or useful.
Why is this such a difficult thing to prevent? At 66, I'm hardly interested in a four-year college course in software to figure it out. This is another great example of technology advancing faster than our ability to fix it when something goes wrong.
If there is ONE PERSON out there who WANTS videos to play automatically, post here or "forever hold your peace." I'm betting that 99.9999999% of FF users DO NOT WANT them to play automatically.
-
- Posts: 8
- Joined: May 11th, 2017, 9:23 am
Re: Is there a way to stop floating videos?
The problem the original poster asked is how to stop "floating videos" on a web page. This is also known as a "sticky video player" (Google that term, no need to add the quotation marks). Using a desktop or laptop computer on the Daily Mail website, for example, if you scroll down the page past the video player, which is usually playing a looped excerpt from the video as a tease, the player shrinks and moves to the right of the page and begins playing without permission. You have to stop what you're doing and click it off. If you scroll back up the article and down past the player again, the same thing happens -- very annoying.
I tried user morat's suggestion above in installing his second revised site specific bit of javascript using the Grease Monkey Add-on for firefox, setting it for http://www.dailymail.co.uk/* but it didn't work. I don't know why he has it written for a click function when this is a scroll triggering issue. I admit I'm not a master code writer, so I'll defer to you more advanced users. I'm trying this on a new Windows 10 Lenevo laptop, latest Firefox and Edge browsers, haven't been offered the Creator's Update yet.
Before posting this I went to Mozilla's Add-ons page and did some searches for sticky video player, pop up, etc. and found nothing addressing this annoying featue of some websites.
I can report that the simple add-on called YesScript toggle on/off javascript blacklist WILL stop the sticky player, but it unfortunately it also stops the video content from downloading and disables the comments section on Daily Mail pages.
What we want is a new add-on or bit of javascript for the Grease Monkey add-on that retains the video player and content, but just stops the floating nature of the player as you scroll up or down the page past the player.
If someone can write a new javascript code here, I'm willing to try it. I found this forum page originally doing a Google search for this problem, so others may be able to enjoy the solution if one can be found.
I tried user morat's suggestion above in installing his second revised site specific bit of javascript using the Grease Monkey Add-on for firefox, setting it for http://www.dailymail.co.uk/* but it didn't work. I don't know why he has it written for a click function when this is a scroll triggering issue. I admit I'm not a master code writer, so I'll defer to you more advanced users. I'm trying this on a new Windows 10 Lenevo laptop, latest Firefox and Edge browsers, haven't been offered the Creator's Update yet.
Before posting this I went to Mozilla's Add-ons page and did some searches for sticky video player, pop up, etc. and found nothing addressing this annoying featue of some websites.
I can report that the simple add-on called YesScript toggle on/off javascript blacklist WILL stop the sticky player, but it unfortunately it also stops the video content from downloading and disables the comments section on Daily Mail pages.
What we want is a new add-on or bit of javascript for the Grease Monkey add-on that retains the video player and content, but just stops the floating nature of the player as you scroll up or down the page past the player.
If someone can write a new javascript code here, I'm willing to try it. I found this forum page originally doing a Google search for this problem, so others may be able to enjoy the solution if one can be found.
-
- Posts: 10
- Joined: October 28th, 2016, 5:05 pm
Re: Is there a way to stop floating videos?
I'm glad you posted this, as I have been having the exact same issue for about a month and have also been searching trying to find something that will block these sticky videos, particularly for that site (dailymail.co.uk). I've tried add-block and recently switched to Ublock, but neither does it. I really hope someone finds a way to kill those annoying boxes.Jimac wrote:The problem the original poster asked is how to stop "floating videos" on a web page. This is also known as a "sticky video player" (Google that term, no need to add the quotation marks). Using a desktop or laptop computer on the Daily Mail website, for example, if you scroll down the page past the video player, which is usually playing a looped excerpt from the video as a tease, the player shrinks and moves to the right of the page and begins playing without permission. You have to stop what you're doing and click it off. If you scroll back up the article and down past the player again, the same thing happens -- very annoying.
I tried user morat's suggestion above in installing his second revised site specific bit of javascript using the Grease Monkey Add-on for firefox, setting it for http://www.dailymail.co.uk/* but it didn't work. I don't know why he has it written for a click function when this is a scroll triggering issue. I admit I'm not a master code writer, so I'll defer to you more advanced users. I'm trying this on a new Windows 10 Lenevo laptop, latest Firefox and Edge browsers, haven't been offered the Creator's Update yet.
Before posting this I went to Mozilla's Add-ons page and did some searches for sticky video player, pop up, etc. and found nothing addressing this annoying featue of some websites.
I can report that the simple add-on called YesScript toggle on/off javascript blacklist WILL stop the sticky player, but it unfortunately it also stops the video content from downloading and disables the comments section on Daily Mail pages.
What we want is a new add-on or bit of javascript for the Grease Monkey add-on that retains the video player and content, but just stops the floating nature of the player as you scroll up or down the page past the player.
If someone can write a new javascript code here, I'm willing to try it. I found this forum page originally doing a Google search for this problem, so others may be able to enjoy the solution if one can be found.
-
- Posts: 34
- Joined: April 29th, 2011, 4:43 am
Re: Is there a way to stop floating videos?
I too have been searching for an answer to these sticky videos on dailymail.co.uk. Super annoying. Has anyone found a solution yet?