Skip to content

Commit dc0cac3

Browse files
feat: use css for overflow and not js
1 parent ed28829 commit dc0cac3

File tree

3 files changed

+14
-33
lines changed

3 files changed

+14
-33
lines changed

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ Bypass imgur login
3636
#### logic-immo
3737
Fix this site so it works with adblock
3838

39-
#### overflow
40-
Force `overflow: auto` to avoid blocking from modals
41-
4239
#### reddit-filter
4340
Adds a filter at end of tagline that has a popup to filter on subreddit, domain, or user (only on r/all). They're stored in the localStorage keys starting with 'filter'. Filtered items must be removed from localStorage manually.
4441

@@ -81,6 +78,7 @@ Adds first message reaction score on alternate-history, sufficientvelocity and s
8178
* hacker-news
8279
* guardian
8380
* lemonde
81+
* overflow (`overflow: auto` on body/html)
8482
* reddit
8583
* royalroad
8684
* speedrun

overflow.js

-30
This file was deleted.

styles/overflow.css

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* ==UserStyle==
2+
@name overflow-style
3+
@description overflow-style
4+
@match *://*/*
5+
==/UserStyle== */
6+
7+
/**
8+
* Force overflow: auto to avoid blocking from modals
9+
*/
10+
body,
11+
html {
12+
overflow: auto !important;
13+
}

0 commit comments

Comments
 (0)