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;
}
@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