Last active
October 17, 2021 22:00
-
-
Save FunctionDJ/044ac574467d172ea7403a14356393d2 to your computer and use it in GitHub Desktop.
Powercord stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Backup / transfer your favourited gifs between clients (works without mods & in the browser) | |
by Ven#8810 at https://discord.com/channels/538759280057122817/755005784999329883/859937854897782804 | |
Backup gifs: | |
*/ | |
JSON.stringify(Object.values(webpackJsonp.push([[],{['']:(_,e,r)=>{e.cache=r.c}},[['']]]).cache).find(m=>m?.exports?.default?.getRandomFavorite).exports.default.getFavorites()); | |
/* | |
Restore them later: | |
*/ | |
(j => { | |
const favorites = JSON.parse(j); | |
const store = { | |
_version: 2, | |
_state: { | |
favorites, | |
timesFavorited: favorites.length | |
} | |
}; | |
Object.values(webpackJsonp.push([[],{['']:(_,e,r)=>{e.cache=r.c}},[['']]]).cache).find(m=>m?.exports?.ObjectStorage).exports.impl.set("GIFFavoritesStore", store); | |
Object.values(webpackJsonp.push([[],{['']:(_,e,r)=>{e.cache=r.c}},[['']]]).cache).find(m=>m?.exports?.default?.getRandomFavorite).exports.default.initialize(store._state); | |
})('PASTE_THE_JSON_FROM_STEP_ONE_INSIDE_THE_SINGLE_QUOTES') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Classic Expanding Member Bar, With Cool Way Of Showing The Member Count | |
by Void4GamesYT#2747 at https://discord.com/channels/538759280057122817/755005803303403570/896847543613403247 | |
*/ | |
/* member bar */ | |
.membersWrap-2h-GB4{ | |
min-width: 0 !important; | |
} | |
.members-1998pB { | |
transition: 2500ms ease all; /* replace this with how slow/fast you want it */ | |
width: 56px; | |
} | |
.members-1998pB:hover { | |
width: 56px; | |
} | |
.membersWrap-2h-GB4:hover .members-1998pB{ | |
width: 245px !important; | |
} | |
/* member bar number */ | |
[class*="membersWrap-"] [class*="membersGroup-"] { | |
margin-right: auto; | |
width: 57px; | |
text-overflow: clip; | |
direction: rtl; | |
word-spacing: 1000px; | |
} | |
[class*="membersWrap-"]:hover [class*="membersGroup-"], | |
[class*="membersWrap-"]:focus-within [class*="membersGroup-"] { | |
width: 100%; | |
margin: 0; | |
direction: ltr; | |
word-spacing: unset; | |
text-overflow: ellipsis; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Save all emoji on the server | |
Open a lot of windows! | |
"1000" is ms which increase the time before opening the next window to avoid the crash of your client, when emoji is a lot, you can change 0 or more | |
by Xinos#2003 at https://discord.com/channels/538759280057122817/755005784999329883/830709064849424415 | |
*/ | |
((id, timeout) => { | |
const { getModule } = require('powercord/webpack'); | |
const { getGuildEmoji } = getModule([ 'getGuildEmoji' ], false); | |
const { saveImage } = getModule([ 'saveImage' ], false); | |
getGuildEmoji(id).forEach(({ id, animated }, index) => { | |
setTimeout(() => { | |
const url = `https://cdn.discordapp.com/emojis/${id}.${(animated) ? 'gif' : 'png'}`; | |
saveImage(url); | |
}, (index * timeout)); | |
}); | |
})('GUILD_ID_HERE', 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment