• This repository has been archived on 12/Oct/2022
  • Stars
    star
    119
  • Rank 296,464 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A working prototype of custom styleable overlay scrollbars on Firefox 72+.
Firefox Logo

Firefox Overlay Scrollbars

🦊 A working prototype of custom styleable overlay scrollbars on Firefox 72+.

🎲 Derived from the all-in-one feature-complete Firefox user script repo Aris-t2/CustomJSforFx, and the Windows 10 style scrollbar repo endeavoursc/firefox-overlay-scrollbars-win10.

Demo

There're 2 styles of scrollbar styles available, both are tested and workable on Firefox v72+.
Style Preview
Windows 10 style scrollbar demo-win
Custom (rounded corners) scrollbar demo-win

Installation

WARNING: You'll need to set about:config » toolkit.legacyUserProfileCustomizations.stylesheets to true for the following procedures.

To begin with, close all instances of Firefox, and delete Firefox's old script/startup cache at about:profiles » Local Directory » Open Folder

Next, download the entire repo with either Git or Download ZIP. Uncompress the downloaded zip file.

Then, find the folder firefox inside the downloaded repo directory, copy the defaults folder and the file config.js to Firefox's installation directory, i.e., where firefox.exe lives.

Finally:

  • Find Firefox's profile folder at about:support » Profile Folder » Open Folder, create a folder called chrome inside

  • Then, find the folder profile inside the downloaded repo directory, copy the userChrome folder and the file userChrome.js to the folder chrome that we just created

Change the userChrome.js file, in order to import 2 styles of floating scrollbars that I have included:

  • Windows 10 style scrollbar:
userChrome.import("/userChrome/win10_scrollbars.uc.js", "UChrm");
  • Custom (rounded corners) scrollbar:
userChrome.import("/userChrome/custom_scrollbars.uc.js", "UChrm");
🔺 WARNING: Don't import both userChrome.js scripts, or Firefox will be confused.

Restart Firefox and you should be able to see the Windows 10 pre-built style or your custom style scrollbar take effect.

Customization

🔺 NOTICE: Most of tweaks are only available for the custom_scrollbars.uc.js version.

We can tweak the file inside our newly created chrome/userChrome folder called custom_scrollbars.uc.js. The following features can be customized:

  • hide scrollbars
  • hide scrollbar buttons
  • floating scrollbars (on top of web content)
  • custom scrollbar size
  • custom scrollbar opacity
  • custom scrollbar background color / background image for color gradient
  • custom scrollbar corner background color / background image for color gradient
  • custom scrollbar thumb color / background image
  • custom scrollbar hovered-thumb color / background image for color gradient
  • custom scrollbar thumb roundness / border-radius
  • custom scrollbar thumb border width
  • custom scrollbar thumb border color
  • custom scrollbar button color / background image for color gradient
  • custom scrollbar hovered-button color / background image for color gradient
  • custom scrollbar button roundness / border-radius / arrow

See the file's comments for more information.

You'll need to delete Firefox's old script/startup cache at about:profiles » Local Directory » Open Folder every time you change the script under chrome/userChrome folder.


🦊 Firefox Overlay Scrollbars ©Spencer Woo. Released under the MIT License.

Authored and maintained by Spencer Woo.

@Portfolio · @Blog · @GitHub

More Repositories

1

onedrive-vercel-index

OneDrive public directory listing, powered by Vercel and Next.js
TypeScript
3,019
star
2

onedrive-cf-index

Deprecated, use new project 👇
JavaScript
1,078
star
3

dowww

📟 Dev on Windows with WSL | 在 Windows 上用 WSL 优雅开发
925
star
4

substats

( `д′) how many followers do i have? how many!
TypeScript
813
star
5

dotfiles-archive

Dotfiles for all :D
Shell
761
star
6

BITCS-Coursework

不完整北京理工大学计算机学院课程项目资料清单。
184
star
7

PaimonMenuBar

Track real-time Genshin Impact stats in your macOS menubar
Swift
162
star
8

react-notion-blog

Deprecated - original blog see other branch
TypeScript
95
star
9

portfolio

🍌 My personal portfolio / homepage / showcase
Vue
86
star
10

bit-webvpn-converter

Web VPN converter.
TypeScript
84
star
11

build-your-pc-docs

辛苦三星期,造台计算机!
65
star
12

foam-wiki

Foam as second brain. Powered by VuePress.
CSS
55
star
13

jsbox-sspai-namecard

少数派作者名片 | 一个 JSBox 小组件
JavaScript
37
star
14

bannero

An image API for simpledesktops.com
Python
34
star
15

vscode-sspai-markdown-helper

VS Code Markdown Helper for sspai.com
CSS
29
star
16

jsbox-vultr-helper

一款运行在 JSBox (iOS) 上的 Vultr 服务器账户查询小工具
JavaScript
28
star
17

mihoro

Mihomo CLI client on Linux. Formerly `clashrup`.
Rust
25
star
18

cwim

cwim - Count number of words in a markdown file / markdown files. CJK friendly.
Rust
24
star
19

single-cycle-processor

An implementation of the simplest single cycle processor.
VHDL
24
star
20

ga-hit-count-serverless

🍐 Google Analytics hit count API for static websites. Deployed on Vercel.
TypeScript
23
star
21

bitsrun-rs

🌐 A headless login / logout CLI for 10.0.0.55 at BIT, now in Rust. 北京理工大学 10.0.0.55 校园网登录登出的 Rust 实现
Rust
22
star
22

blog

👨‍💻 Spencer Woo - Spencer's blog
Vue
22
star
23

jike-guoguo-badge

A custom Jike name badge.
Vue
22
star
24

onedrive-vercel-index-docs

📘 Documentation for onedrive-vercel-index
JavaScript
20
star
25

exp3-producer-consumer

【操作系统课程设计】实验三、生产者消费者问题
C++
18
star
26

notion-page-sort

Sort through Notion's sub-page by title (or part of its title).
Python
15
star
27

spencerwoo.com

Spencer's Blog
TypeScript
13
star
28

syntactic-analysis

【编译原理】语法分析实验
Python
11
star
29

zan-chat

A peer-to-peer communication system. BIT 小学期软件开发实训。
C
11
star
30

SokobanGame

A Sokoban Game implemented with WPF, and Assembly in its core.
C#
11
star
31

spencerwooo

10
star
32

jike-meow

3rd Party Jike app Firefox & Microsoft Edge extension built with Vue.
JavaScript
9
star
33

lab-exercise

7 small lab exercises of BIT network experiment.
Java
8
star
34

apple-product-guide

Apple Product Guide API. Data acquired from: Buyer's Guide by MacRumors.
Go
8
star
35

bank-simulation-client

【操作系统课程设计】一个基于 Electron 的银行模拟器客户端
JavaScript
8
star
36

Sudoku

🍳 数独 | BIT 软件工程个人作业
Python
7
star
37

torch-featurelayer

🧠 Useful utility functions and wrappers for hooking onto layers within PyTorch models for feature extraction.
Python
7
star
38

jike-guoguo-backend

Backend API for Jike GuoGuo Badge
JavaScript
6
star
39

cartoonize-images

Cartoonize image with MATLAB.
MATLAB
5
star
40

fluffy-math

🔣 四则运算 | BIT 软件工程
JavaScript
5
star
41

spencerwooo.github.io

Blog archive.
5
star
42

icp-dummy-page

Dummy ICP page for censorship.
Vue
5
star
43

WeatherMeow

A simple weather app, to pay tribute to App Store UI Designs.
Java
4
star
44

DSAIS-Lab-Beamer-Template

✒ Data Security and Artificial Intelligence Security Laboratory LaTeX Beamer Template
TeX
4
star
45

vuepress-markdown-it-wikilink

Wikimedia-style links for VuePress using the markdown-it parser
JavaScript
3
star
46

foam-template

🔬 Foam as a second brain. For demo purposes, see https://foambubble.github.io/foam/katex-math-rendering.
HTML
3
star
47

CN-Data-Link-Layer

[Computer Networks] The Data Link Layer Experiment
Java
3
star
48

fluffy-math-docs

🔣 四则运算 | BIT 软件工程项目文档
2
star
49

spencerwoo.com.archive

Astro
2
star
50

advsteg-pytorch

A PyTorch implementation of the NeurIPS 2017 paper: Generating Steganographic Images via Adversarial Training
Jupyter Notebook
2
star
51

situational-awareness-vr

UofG MSc Project - Instrumenting, quantifying, and visualising attention and actions in VR
Jupyter Notebook
2
star
52

lexical-analysis

【编译原理】词法分析实验
Java
2
star
53

giscus-discussions

1
star
54

compilers-lang-recognization

程序设计语言认知实验项目仓库
C++
1
star
55

fluffy-math-spa

🌟 Web frontend for fluffy math
Vue
1
star
56

F00L

📦 F00L: Investigating the Robustness of Adversarial Examples
Jupyter Notebook
1
star
57

exp4-memory-monitor

【操作系统课程设计】实验四、内存监视
C++
1
star
58

CN-Packet-Sniffer

[Computer Networks] The Packet Sniffing Experiment
Java
1
star