Reputation: 167
I have been looking through the source code of Dark Reader extension. https://github.com/darkreader/darkreader I can't find the code or function that is responsible for generating the dark scroll bar on the right side of web pages. In which file is it located? There are a ton of .ts files.
Upvotes: 0
Views: 973
Reputation: 2810
The function for changing default scrollbar color is located in src/inject/dynamic-theme/modify-css.ts file. If website author's CSS changes the scrollbar color, such color will be processed as a background color. There is an ability to force scrollbar color via Dev Tools.
Upvotes: 2