ButWhyMod

Removes and/or stops stuff like modals(in-page popups), videos, etc. *Please be aware that some websites requires modals.*

What is ButWhyMod?

ButWhyMod is a Chrome extension developed by WKLaume, and its main feature is "Removes and/or stops stuff like modals(in-page popups), videos, etc. *Please be aware that some websites requires modals.*".

Extension Screenshots

screenshot
screenshot

Download ButWhyMod Extension CRX File

Download ButWhyMod extension files in crx format, manually install Chrome extensions in the browser, or share the crx files with friends to easily install Chrome extensions.

Extension Usage Instructions

                        Modals are those in page pop-up windows. Those pop up windows aren't their own window or alert window. This tries to remove all of them. Annoyed with pages asking you to sign up with newsletters? Hate it facebook has a big annoying window to ask you to sign in when you just want to look at a post? Tired to being forced to click "agree" in a terms and conditions popup so you can view a page? Me too. Got so tired of it I took time to make this.
Please be aware that some pages/web app require modals to function.

You can also:

    Whitelist/ignore list of hosts that you don't want to disable modals on.
    Set custom domain and patterns list.
    Turn off automatic removal and disable modals on a per-page basis.

    Add to Apply list to only disable modals on certain sites

    Set what css style to apply to what element on what page

    Stop auto playing videos

    Skip previously unskippable videos

    Finer video forward and rewind capabilities. 

The source is found here: https://github.com/sleepingkirby/butWhyMod

version 2.7:
Accidentally over optimized code, causing the skip button to not work. Fixed.
version 2.6:
Even better advance controls. 
-advance controls and overrides only apply when mouse cursor is over a video.
-Shift, ctrl and alt can be used in combination. i.e. shift+ctrl+right arrow means video is forwarded by 21 seconds (shift=20, ctrl=1. 20+1)
*note* please note that key overrides in browser DO NOT override OS level key binds. This means if the OS uses ctrl+alt+right arrow, this will NOT override that.
version 2.5:
When the "skip" button option is turned on, any video that's moused over once will have finer video advanced forward and rewind capabilities.
Shift+arrow keys= 20 sec, arrow=5 sec,  ctrl+arrow=1 sec, alt+arrow=0.1 sec
*note* this will override default actions/key presses.
version 2.4:
At the request of 
https://github.com/sleepingkirby/butWhyMod/issues/2
changed how the manual prune/auto prune button works.
version 2.3:
Made skip button on videos fade away after 3 seconds
Fixed video evaluation where videos report non-finite duration.
Fixed skip button position calculation on screen resize.
version 2.2:
Added ability to stop auto-play videos and skip unskippable videos.
Fixed some evaluation and bugs.
version 2.1:
Made function run on all elements, not just div's
Changed style to dark mode to make it easier on the eyes
Fixed domain styling evaluation bug.
version 2.0:
Added Settings export function
Fixed typo
version 1.9:
Added Applylist to set what domains you want it to run on.
Added the ability to style element[s] on specific pages to whatever you'd like.
version 1.8:
Bug: chrome's javacript handles substr(0,-1) differently. Fixed
version 1.7:
Small bug fixes.
Added ability to use regex for [class names] in settings. This allows for patterns and, more importantly, multiple names to match on per host.
version 1.6: 
Added removal of elements by ID matching.
Increased element types to prune as modals.                    

Extension Basic Information

Name ButWhyMod ButWhyMod
ID oniaeocagbkpmjmamlbhcanoochjiold
Official URL https://chromewebstore.google.com/detail/butwhymod/oniaeocagbkpmjmamlbhcanoochjiold
Description Removes and/or stops stuff like modals(in-page popups), videos, etc. *Please be aware that some websites requires modals.*
File Size 21.94 KB
Installation Count 46
Current Version 2.7
Last Updated 2021-06-21
Publish Date 2020-05-20
Rating 5.00/5 Total 1 Ratings
Developer WKLaume
Email [email protected]
Payment Type free
Supported Languages en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "manifest_version": 2,
    "name": "ButWhyMod",
    "version": "2.7",
    "description": "Removes and\/or stops stuff like modals(in-page popups), videos, etc. *Please be aware that some websites requires modals.*",
    "permissions": [
        "storage",
        "declarativeContent",
        "activeTab",
        "tabs"
    ],
    "icons": {
        "96": "icons\/icon-96.png"
    },
    "page_action": {
        "default_icon": "icons\/icon-96.png",
        "default_title": "But Why Modal?",
        "default_popup": "popup\/menu.html"
    },
    "options_page": "options\/settings.html",
    "background": {
        "scripts": [
            ".\/background.js"
        ],
        "persistent": false
    },
    "content_scripts": [
        {
            "matches": [
                ""
            ],
            "js": [
                ".\/content_scripts\/butWhyMod.js"
            ],
            "run_at": "document_start"
        }
    ]
}