Skip to content

Instantly share code, notes, and snippets.

@No-Eul
Last active May 18, 2022 14:14
Show Gist options
  • Save No-Eul/02a6f6f4a885ead1801de8d6c1cac235 to your computer and use it in GitHub Desktop.
Save No-Eul/02a6f6f4a885ead1801de8d6c1cac235 to your computer and use it in GitHub Desktop.
Userscript and Local Storage Data Value to Grant All Achievements of Power Mode (Party Mode) in Discord
// The userscript file to grant all archievements w/o uncomfortable work
// This will be kept forever, once applied.
// After application, you will need to reload Discord.
($ => {
$.contentWindow.localStorage.PoggermodeAchievementStore = JSON.stringify({
_state: {
unlockedAchievements: [...Array(20)].map((_, i) => ({ achievementId: i, dateUnlocked: 0 }))
// You can set value of 'dateUnlocked' to current time with the code 'Date.now()' instead of '0'.
},
_version: 0
});
$.remove();
})(document.body.appendChild(document.createElement('iframe')));
{"_state":{"unlockedAchievements":[{"achievementId":0,"dateUnlocked":0},{"achievementId":1,"dateUnlocked":0},{"achievementId":2,"dateUnlocked":0},{"achievementId":3,"dateUnlocked":0},{"achievementId":4,"dateUnlocked":0},{"achievementId":5,"dateUnlocked":0},{"achievementId":6,"dateUnlocked":0},{"achievementId":7,"dateUnlocked":0},{"achievementId":8,"dateUnlocked":0},{"achievementId":9,"dateUnlocked":0},{"achievementId":10,"dateUnlocked":0},{"achievementId":11,"dateUnlocked":0},{"achievementId":12,"dateUnlocked":0},{"achievementId":13,"dateUnlocked":0},{"achievementId":14,"dateUnlocked":0},{"achievementId":15,"dateUnlocked":0},{"achievementId":16,"dateUnlocked":0},{"achievementId":17,"dateUnlocked":0},{"achievementId":18,"dateUnlocked":0},{"achievementId":19,"dateUnlocked":0}]},"_version":0}
@No-Eul
Copy link
Author

No-Eul commented May 14, 2022

Copy the userscript, and paste into the console of your browser or Discord client!

๐Ÿ“Œ Before Opening DevTools

Discord แ…Ÿhas updated to prevent users from easily opening the console in their client. For the reason, you have to do first before you open the console:

  • (Windows) Open the file %APPDATA%\Discord\settings.json (create it when doesn't exist) and add key-value pair below; It should be seperated each key-value pair by , (comma). Like this:
{
  "DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true
}

๐Ÿ“– How to Run Userscript

  1. Open DevTools
    • (Discord Client) Press Ctrl, Shift and I to open DevTools
    • (Web Browser) Press F12 to open DevTools
  2. Click Console tab, paste the userscript
  3. Press Enter key (require leading Ctrl key in some case) or โ–ท Run button

๐Ÿ“– How to Apply Local Storage Data Value

  1. Open DevTools
    • (Discord Client) Press Ctrl, Shift and I to open DevTools
    • (Web Browser) Press F12 to open DevTools
  2. Click Application tab in the top tab bar
  3. Find Local Storage in Storage section, uncollapse it, and click https://discord.com in its inside
  4. Scroll to the bottom, double-click the empty space in key-value pair
  5. Set key to PoggermodeAchievementStore, copy and paste contents of file value.min.json to set its value, then press Enter to apply
  6. Press Ctrl R (F5 if web browser) to reload Discord

์œ ์ €์Šคํฌ๋ฆฝํŠธ๋ฅผ ๋ณต์‚ฌํ•ด์„œ ๋‹น์‹ ์˜ ๋ธŒ๋ผ์šฐ์ €๋‚˜ Discord ์ฝ˜์†”์— ๋ถ™์—ฌ๋„ฃ์œผ์„ธ์š”!

๐Ÿ“Œ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ๋ฅผ ์—ด๊ธฐ ์ „์—

Discord๋Š” ์‚ฌ์šฉ์ž๋“ค์ด ํด๋ผ์ด์–ธํŠธ์—์„œ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ๋ฅผ ์‰ฝ๊ฒŒ ์—ด์ง€ ๋ชปํ•˜๋„๋ก ์—…๋ฐ์ดํŠธํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ๋ฅผ ์—ด๊ธฐ ์ „์— ํ•ด์•ผ ํ•  ์ผ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

  • (Windows) %APPDATA%\Discord\settings.json ํŒŒ์ผ์„ ์—ด๊ณ  (์—†์œผ๋ฉด ๋งŒ๋“ค๊ธฐ) ํŠน์ • ํ‚ค-๊ฐ’ ์Œ์„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. ์ด ๋•Œ, ๊ฐ๊ฐ์˜ ํ‚ค-๊ฐ’ ์Œ๋“ค์€ , ๋กœ ๊ตฌ๋ถ„๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
{
  "DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true
}

๐Ÿ“– ์œ ์ €์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•

  1. ๊ฐœ๋ฐœ์ž ๋„๊ตฌ ์—ด๊ธฐ
    • (Discord ํด๋ผ์ด์–ธํŠธ) Ctrl Shift I ํ‚ค๋ฅผ ๋ˆŒ๋Ÿฌ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ ์—ด๊ธฐ
    • (์›น ๋ธŒ๋ผ์šฐ์ €) F12 ํ‚ค๋ฅผ ๋ˆŒ๋Ÿฌ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ ์—ด๊ธฐ
  2. Console ํ˜น์€ ์ฝ˜์†” ํƒญ์—์„œ ์œ ์ €์Šคํฌ๋ฆฝํŠธ ๋ถ™์—ฌ๋„ฃ๊ธฐ
  3. Enter ํ‚ค (๊ฒฝ์šฐ์— ๋”ฐ๋ผ ์„ ํ–‰ Ctrl ํ‚ค ์ž…๋ ฅ ํ•„์š”) ๋˜๋Š” โ–ท ์‹คํ–‰ ๋ฒ„ํŠผ ๋ˆ„๋ฅด๊ธฐ

๐Ÿ“– Local Storage ๋ฐ์ดํ„ฐ ๊ฐ’ ์ ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•

  1. ๊ฐœ๋ฐœ์ž ๋„๊ตฌ ์—ด๊ธฐ
    • (Discord ํด๋ผ์ด์–ธํŠธ) Ctrl Shift I ํ‚ค๋ฅผ ๋ˆŒ๋Ÿฌ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ ์—ด๊ธฐ
    • (์›น ๋ธŒ๋ผ์šฐ์ €) F12 ํ‚ค๋ฅผ ๋ˆŒ๋Ÿฌ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ ์—ด๊ธฐ
  2. ์ƒ๋‹จ ํƒญ ๋ฐ”์—์„œ Application ํƒญ ๋ˆ„๋ฅด๊ธฐ
  3. Storage ์นดํ…Œ๊ณ ๋ฆฌ ์•ˆ์— ์žˆ๋Š” Local Storage์„ ์ฐพ์•„ ํŽผ์น˜๊ณ , ์•ˆ์— ์žˆ๋Š” https://discord.com ๋ˆ„๋ฅด๊ธฐ
  4. ๋งจ ๋ฐ‘์œผ๋กœ ๋‚ด๋ ค ํ‚ค-๊ฐ’ ์Œ์˜ ๋นˆ ๊ณต๊ฐ„์„ ๋‘ ๋ฒˆ ๋ˆ„๋ฅด๊ธฐ
  5. ํ‚ค๋ฅผ PoggermodeAchievementStore ๋กœ ์„ค์ •ํ•˜๊ณ  value.min.json ํŒŒ์ผ์˜ ๋‚ด์šฉ์„ ๋ณต์‚ฌ-๋ถ™์—ฌ๋„ฃ๊ธฐํ•ด์„œ ์„ค์ •ํ•œ ๋‹ค์Œ, Enter ํ‚ค๋ฅผ ๋ˆŒ๋Ÿฌ ์ ์šฉํ•˜๊ธฐ
  6. Ctrl R ํ‚ค(๋ธŒ๋ผ์šฐ์ €์˜ ๊ฒฝ์šฐ F5 ํ‚ค)๋ฅผ ๋ˆŒ๋Ÿฌ ๋””์Šค์ฝ”๋“œ๋ฅผ ๋‹ค์‹œ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment