Skip to content

Instantly share code, notes, and snippets.

@Craftplacer
Last active February 21, 2025 11:55
Show Gist options
  • Save Craftplacer/04089c2c666c89e10818124c92d9c65b to your computer and use it in GitHub Desktop.
Save Craftplacer/04089c2c666c89e10818124c92d9c65b to your computer and use it in GitHub Desktop.
Filter for uBlock Origin that removes most of Fandom's elements from a wiki.

FuckFandom

Filter for uBlock Origin that removes most of Fandom's elements from a wiki.

How to import

  1. Open uBlock Origin's menu
  2. Click the cog ("Open the dashboard")
  3. Go to "Filter lists"
  4. Scroll down to "Custom" and check import
  5. Paste this Gist's raw URL:
https://gist.githubusercontent.com/Craftplacer/04089c2c666c89e10818124c92d9c65b/raw/FuckFandom.txt
![Adblock Plus 2.0]
! Title: FuckFandom
! Expires: 30 days (update frequency)
! Homepage: https://gist.github.com/Craftplacer/04089c2c666c89e10818124c92d9c65b
fandom.com##.mcf-wrapper
fandom.com##.wds-global-footer
fandom.com##.global-navigation
fandom.com##.top-ads-container
! fix hardcoded layout
fandom.com##.main-container:style(width: 100% !important; margin-left: 0 !important)
fandom.com##.fandom-sticky-header:style(left:0 !important)
fandom.com##.search-modal:style(left:0 !important)
! remove related communities from search
fandom.com##.unified-search__layout__right-rail
fandom.com##.unified-search__layout:style(grid-template-areas: "left left main main main main main main main main main main" !important)
! remove right page rail, "popular pages"
fandom.com##.page__right-rail
! remove bottom social media bar
fandom.com###WikiaBar
! remove footer
fandom.com##.global-footer
! remove popup when highlighting
fandom.com##.highlight__action-wrapper
! remove sticky header
fandom.com##.fandom-sticky-header
! Remove new global sticky header
fandom.com##.global-top-navigation
fandom.com###highlight__main-container
! Remove "More Fandoms" footer
fandom.com##.trfc-147.page-footer__trfc-147
! Remove Side Tools
fandom.com##.page-side-tools
fandom.com##.notifications-placeholder
! Remove mobile drawer
fandom.com##.wds-mobile-drawer
! Remove fandom newsletter prompt
fandom.com##.uQP23SdFpRHHK2wMpaO6.HRX08D7AyYv7t9kR6MYq.azf_SP369Y_qhH4oqe0a
! Remove global sidebar in desktop view
fandom.com###global-explore-navigation
Copy link

ghost commented Jan 9, 2024

!  remove bottom social media bar
fandom.com###WikiaBar

image

@Craftplacer
Copy link
Author

!  remove bottom social media bar
fandom.com###WikiaBar

image

Added

@nukeop
Copy link

nukeop commented Jan 30, 2024

fandom.com##.highlight__action-wrapper

Removes the crap that pops up whenever you higlight something.

@nukeop
Copy link

nukeop commented Jan 30, 2024

fandom.com##.fandom-sticky-header

Removes the obnoxious sticky header.

@CatarinaPBressan
Copy link

fandom.com###highlight__main-container

Removes the leftover caret of the highlight popup

@VictoriaSilver
Copy link

! Remove "More Fandoms" footer
fandom.com###mw-data-after-content

msedge_2024-04-08-210129459-Chirasu__Forgotten_Realms_Wiki__Fandom_and_6_more_pages_-Personal-_Mic

! Remove Side Tools
fandom.com##.page-side-tools

msedge_2024-04-08-205945393-Chirasu__Forgotten_Realms_Wiki__Fandom_and_6_more_pages_-Personal-_Mic
My more opinionated filters;

! Disable background image
fandom.com##.fandom-community-header__background

! Content fills width
fandom.com##.main-container:style(margin-left:0 !important; width: 100% !important;)
fandom.com##.resizable-container:style(max-width: none !important; width: calc(100% - 66px) !important;)

@HundSimon
Copy link

Request for removing notification.
fandom.com##.notifications-placeholder
图片

@QWIILXEY
Copy link

QWIILXEY commented Dec 4, 2024

Removes newly added recommendations drawer when viewing on mobile

! Remove mobile drawer
fandom.com##.wds-mobile-drawer

@QWIILXEY
Copy link

! Remove fandom newsletter prompt
fandom.com##.uQP23SdFpRHHK2wMpaO6.HRX08D7AyYv7t9kR6MYq.azf_SP369Y_qhH4oqe0a

! Remove global sidebar in desktop view
fandom.com###global-explore-navigation

Also fandom.com###mw-data-after-content should be replaced with fandom.com##.trfc-147.page-footer__trfc-147 as it also removes comments and doesn't remove the footer from both desktop and mobile viewing.

@PKPenguin321
Copy link

Thanks for maintaining this, been using it for a few years now. Just had an issue with comments and was delighted to see it just updated as of a few days ago to fix that. Really appreciate it

@CatarinaPBressan
Copy link

! Remove new global sticky header
fandom.com##.global-top-navigation

@nukeop
Copy link

nukeop commented Feb 21, 2025

With all of this cruft excised, many fandom wikis actually have a very nice, clean layout.

@QWIILXEY
Copy link

does anyone got a good replacement for fandom.com##.unified-search__layout:style(grid-template-areas: "left left main main main main main main main main main main" !important) because honestly it breaks search.

example:
fandom wiki search

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