Removes and/or stops stuff like modals(in-page popups), videos, etc. *Please be aware that some websites requires modals.*
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
Accidentally over optimized code, causing the skip button to not work. Fixed.
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.
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.
At the request of
changed how the manual prune/auto prune button works.
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.
Added ability to stop auto-play videos and skip unskippable videos.
Fixed some evaluation and bugs.
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.
Added Settings export function
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.
Bug: chrome's javacript handles substr(0,-1) differently. Fixed
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.
Added removal of elements by ID matching.
Increased element types to prune as modals.