mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-19 11:27:02 -04:00
Some porting
This commit is contained in:
parent
89c4e489f5
commit
ea8c134159
24 changed files with 111 additions and 100 deletions
|
@ -37,7 +37,7 @@ const NOOP_ASYNC = async () => { };
|
|||
|
||||
const setCssDebounced = debounce((css: string) => VencordNative.quickCss.set(css));
|
||||
|
||||
const themeStore = DataStore.createStore("VencordThemes", "VencordThemeData");
|
||||
const themeStore = DataStore.createStore("EquicordThemes", "VencordThemeData");
|
||||
|
||||
// probably should make this less cursed at some point
|
||||
window.VencordNative = {
|
||||
|
@ -98,13 +98,13 @@ window.VencordNative = {
|
|||
settings: {
|
||||
get: () => {
|
||||
try {
|
||||
return JSON.parse(localStorage.getItem("VencordSettings") || "{}");
|
||||
return JSON.parse(localStorage.getItem("EquicordSettings") || "{}");
|
||||
} catch (e) {
|
||||
console.error("Failed to parse settings from localStorage: ", e);
|
||||
return {};
|
||||
}
|
||||
},
|
||||
set: async (s: Settings) => localStorage.setItem("VencordSettings", JSON.stringify(s)),
|
||||
set: async (s: Settings) => localStorage.setItem("EquicordSettings", JSON.stringify(s)),
|
||||
getSettingsDir: async () => "LocalStorage"
|
||||
},
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// ==UserScript==
|
||||
// @name Vencord
|
||||
// @name Equicord
|
||||
// @description A Discord client mod - Web version
|
||||
// @version %version%
|
||||
// @author Vendicated (https://github.com/Vendicated)
|
||||
// @namespace https://github.com/Vendicated/Vencord
|
||||
// @supportURL https://github.com/Vendicated/Vencord
|
||||
// @author Equicord (https://github.com/Equicord)
|
||||
// @namespace https://github.com/Equicord/Equicord
|
||||
// @supportURL https://github.com/Equicord/Equicord
|
||||
// @license GPL-3.0
|
||||
// @match *://*.discord.com/*
|
||||
// @grant GM_xmlhttpRequest
|
||||
|
@ -21,4 +21,4 @@
|
|||
// to overwrite stuff on the window on sites that use CSP. Use Tampermonkey or use a chromium based browser
|
||||
// https://github.com/violentmonkey/violentmonkey/issues/997
|
||||
|
||||
// this is a compiled and minified version of Vencord. For the source code, visit the GitHub repo
|
||||
// this is a compiled and minified version of Equicord. For the source code, visit the GitHub repo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue