Skip to content

A chrome extension made to block ads and promoted posts on reddit, because they are weird. Uses mutation observers, and a background script to detect a dynamic changes (e.g AJAX) to re-inject ad-blocking code when a Reddit web page dynamically reloads. The content script does not check for dynamic reloading, so I made a background page to do that.

Notifications You must be signed in to change notification settings

FahadAdnan/Reddit-Adblock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit-AdBlocker

Chrome extension

A chrome extension made to block ads and promoted posts on reddit pages, because they are pretty weird.

💻 Tech

This application is a Chrome Extension made with Javascript.
Used the Mutation Observer Library to detect changes to the Html DOM
Used Content Scripts to alter/remove elements on pages under Reddit domain
Used Background Scripts to detect changes from dynamic loading (AJAX)

Note: The chrome store isnt yet ACCEPTED by the chrome store. So I made it possible for you to download it on your own.

Icon/Small Tile Image

Steps to get Reddit-AdBlock:

  1. Download zip file of extension
  2. Extract file which should give you a folder
  3. Go to chrome://extensions
  4. On the top right corner click the Developer mode switch
  5. Press the new revealed load unpacked button
  6. Select the unzipped folder and enjoy

Note: If you see an ad on the main feed sidebar, click a post and it will go away. If the application ever stops working simply refresh the page. Feel free to modify the code to your liking. :)

About

A chrome extension made to block ads and promoted posts on reddit, because they are weird. Uses mutation observers, and a background script to detect a dynamic changes (e.g AJAX) to re-inject ad-blocking code when a Reddit web page dynamically reloads. The content script does not check for dynamic reloading, so I made a background page to do that.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published