Wikipedia - Keeps style preferences in incognito

Modify the `enwikimwclientpreferences` cookie once per session, to instantly set preferences, and change classes, so no reload is required.

目前為 2025-02-04 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
jackiechan285
評價
0 0 0
版本
2025-02-04
建立日期
2025-02-04
更新日期
2025-02-04
尺寸
3.3 KB
授權條款
未知
腳本執行於

Modifies the "enwikimwclientpreferences" cookie and updates certain class names on Wikipedia pages to apply custom preferences and themes. Runs once per session to avoid repeated changes.

Currently, it defaults to dark theme, wide view, and small font. This can be changed by the numbers in the preference flags, both for cookies and classes.

In the future, I plan to make the preferences more clearly customizable in the script.

I also plan to implement syncing with the non-incognito user preferences, and make it possible to sync the modification to the preferences made in the website's interface, by saving them to the script local storage.