Skip to content

Chillsmeit/SmoothScrollFirefox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmoothScrollFirefox

Works in Windows, Linux and MacOS (Linux users, if you use imwheel, scroll down)
This repo contains modified user.js scrolling profiles in the Profiles folder.
These should also work in Librewolf and Mullvad Browser since they're firefox forks.

Just copy the code of the profile you want and paste it in your user.js
To find where your user.js is, type about:support in firefox and open the "Profile Directory"

Note:
If you use arkenfox and have privacy.resistFingerprinting set to True, it will interfere with scrolling "smoothness" since it locks the framerate to 60hz. This should only be noticeable in monitors with a higher refresh rate.

My Firefox Tweaks

Check the Firefox Tweaks folder in this repo

Cosmetic Tweaks:

Shorter flexible spaces like this:
Untitled2
Untitled

Smaller and less intrusive PiP icon that shows up in the upper left corner in videos:
(the first time the Pip icon shows up can be a bit bugged. Just click on it the first time and restart your browser)

Wilderness

To enable these changes, type about:support in the firefox address bar and open the Profile Directory
Create a folder called chrome, inside this folder create two files called userChrome.css and userContent.css.
Copy and paste the contents in the repo folder Firefox Tweaks/Chrome to your respective files.

Configs Tweaks:

These are also available in the tweaks.jsfile in the Firefox Tweaks folder in this repo.
You can copy the contents you want from it and paste it into your user.js in your profile folder.
You can also change these in about:config:

Disable WebRTC (this leaks your IP address even if you use a VPN but some websites need it):
set media.peerconnection.enabled to False

Disable ALT opening firefox menu:
set ui.key.menuAccessKeyFocuses to False

Enable autoscrolling for Linux:
set general.autoScroll to True

Make Firefox UI look bigger without using global scalling:
set layout.css.devPixelsPerPx to 1.15

Linux imwheel users:

I made a profile to be used alongside imwheel for firefox.
This is for people that want to use imwheel in firefox in speed 2 only.

What is imwheel:

imwheel let's you change your scrolling speed in Linux, you'll need it if you feel like your scrolling speed is too slow.

How to install imwheel:

Fedora:

sudo dnf install imwheel

Arch:

sudo pacman -S imwheel

Debian:

sudo apt-get install imwheel

How to use imwheel globally (needs zenity):

wget https://github.com/Chillsmeit/SmoothScrollFirefox/raw/main/Linux_imwheel/imwheelSetGlobalSpeed.sh

Make it executable:

chmod +x imwheel.sh

Run the script:

./imwheel.sh

The example script will show a simple GUI with zenity to edit the multiplier you wanna add to your scroll speed.
For this profile to work correctly, please use speed 2.
If your OS supports adding apps/commands directly to the startup, just use that, if not, create a script in /etc/profile.d/

The command to run imwheel on startup would be: imwheel -kill -b "4 5"
(By adding -kill -b "4 5" in the end, it will start imwheel and only change the mousewheel. This way it won't interfere with the forward and backward buttons in your mouse)

How to use imwheel in a per-app basis:

If you want to change the scrolling speed on a per app basis instead, you can do the following:

touch .imwheelrc && nano .imwheelrc

Remove the contents that were created by the script (if you used it before) and add the Apps class like this instead:
This way, imwheel will only change the mouse speed to 2x on the specific Apps you chose.

"^(discord-screenaudio|discord|steam)$"
None,      Up,   Button4, 2
None,      Down, Button5, 2
Control_L, Up,   Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L,   Up,   Shift_L|Button4
Shift_L,   Down, Shift_L|Button5

To know the window class name in x11/Xorg you can type the following in terminal and then click the window you want:

xprop | grep WM_CLASS