Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Looking for a way to block / change an element on a website I visit

  • Please log in to reply
1 reply to this topic

#1 Trakeen


  • Members
  • 126 posts
  • Gender:Male
  • Location:Tyler, TX
  • Local time:05:04 AM

Posted 20 December 2016 - 03:21 AM

I use Firefox, and I've looked a little into creating a user defined style sheet, but honestly don't know how I would basically nullify 1 element on the page.  I've tried using RIP (Remove It Permanently), but it only seems to work as a page is being loaded.  If the page changes after loading, RIP isn't called again.


The problem, for me, is specifically related to foxnews.com.  I've read of others having the same problem with different sites.


When I open a page containing video and then scroll down, the video gets shunted to the right side of the screen and stays there.  If I click the exit button, the video is restored to it's original position on the page, but play back stops.   If I attempt to play the video and scroll down, again, the same problem occurs.  If I open up the dev tools and select the element, I can delete it, and the video goes back where it is supposed to.  At this point I can play the video and scroll as I wish, without being bothered by a floating video.  I believe its related to dynamic scripting, HTML5, or java.  I haven't really been able to narrow it down.


Here are a few screen shots to show you exactly what the page is doing, and the differences in the code, specifically <div class="video-container" ...> vs <div class="video-container sticky-video sticky-right"...> (highlighted in blue)




Ideally I'd like to block or change the way Firefox handles pages that attempt to insert the "sticky-video sticky-right" and simply keep the default "video-container" element.  Short of disabling CSS, globably, I don't know how to solve this issue.


If you've got any ideas, or can point me in the right direction, it would be much appreciated.

BC AdBot (Login to Remove)


#2 Chris Cosgrove

Chris Cosgrove

  • Moderator
  • 7,148 posts
  • Gender:Male
  • Location:Scotland
  • Local time:11:04 AM

Posted 22 December 2016 - 05:09 PM

You might be better asking this at the Firefox forums -




Chris Cosgrove

Edited by Chris Cosgrove, 22 December 2016 - 05:09 PM.
Typing !

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users