Skip to content

Instantly share code, notes, and snippets.

@jayktaylor
Last active March 18, 2023 14:48
Show Gist options
  • Save jayktaylor/4a443b7fbc6553e3bf8b242af3348777 to your computer and use it in GitHub Desktop.
Save jayktaylor/4a443b7fbc6553e3bf8b242af3348777 to your computer and use it in GitHub Desktop.
Removing featured videos on FANDOM

Hiding the videos

Hiding with uBlock Origin

uBlock Origin, unlike AdBlock Plus and other alternatives, doesn't allow companies to pay to whitelist their ads, and it blocks trackers too. Using it will provide the best experience on Wikia, as the majority of ads and slowdowns will be eliminated.

To block videos using uBlock Origin:

  • Click the uBlock Origin icon in your browser
  • Then click 'Open dashboard' (the furthest icon on the right under the power icon)
  • Click 3rd party filters
  • Click the Update now button and then enable uBlock filters - Annoyances

Alternative method

You can add the following as a filter yourself:

fandom.com##.featured-video__wrapper
||*.jwpcdn.com^$script,domain=fandom.com,important
*.jwplatform.com^$script,domain=fandom.com,important

Hiding using personal JS/CSS

Due to FANDOM's Terms of Use, it would be a violation for us to remove the videos using JavaScript and CSS site-wide for all of our users. Instead, if you have a Wikia account, follow the steps below if you would like to hide these videos yourself:

  • Go to this page, and tick Enable personal JavaScript
  • Go to this page
  • Edit the page, paste this code in on a new line and save:
$('.featured-video__wrapper').remove();
  • (Optional) Go to this page
  • (Optional) Edit the page, paste this code in on a new line and save:
.featured-video__wrapper {
    display: none;
}
@Scyntrus
Copy link

Scyntrus commented Jan 25, 2019

FYI, a big reason people want to block autoplay videos is to reduce bandwidth consumption.
Using this filter, the video is not displayed, but the video player script still downloads the video in the background, consuming bandwidth.
The solution is to block the video script itself using a filter like
||*.jwpcdn.com^$script,domain=fandom.com

@southrop
Copy link

southrop commented Mar 18, 2019

A further addition, it seems p.jwpcdn.com is actually an allow entry on the EasyList filter list, which means if you really want to block the video scripts, you should use this

||*.jwpcdn.com^$script,domain=fandom.com,important

The important overrides other filter lists.

Also the filter mentioned in the gist above should probably be amended to use fandom.com instead of wikia.com now that they're migrating/migrated everything.

@Gorklax
Copy link

Gorklax commented Dec 13, 2019

I realize this is a slightly older post, but to add on to the modified script made by southrop, add the following filter as well

*.jwplatform.com^$script,domain=fandom.com,important

This will hide the error message from the video player that moves as you scroll down the page.

@Gadetron
Copy link

Gadetron commented Feb 5, 2021

How do I make this work for mobile variants? The custom filter lines worked on mobile devices as long as it's on desktop site, but the block seems to not want to work for the mobile variant. What custom filter would be needed for it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment