Skip to content

Instantly share code, notes, and snippets.

@nurdism
nurdism / vue-markdown-discord.ts
Last active July 7, 2024 20:17
This is a faithful recreation of discord flavored markdown as of 2024.
/**
* Discord Markdown
* ===============
*
* This is a faithful recreation of discord flavored markdown as of 2024.
*
* Required: [vue-markdown.ts](https://gist.github.com/nurdism/f2e8a8d21aa11969b595f6b7698d7d62)
* Made by [nurdism](https://github.com/nurdism)
*/
@aamiaa
aamiaa / RevertNewLayout.md
Last active July 7, 2024 14:56
Revert New Discord Layout

The original snippet no longer works!

On 02/09/2024 at around 8pm UTC, Discord flipped an experiment (2023-09_mobile_redesign_override_toggles) which ignores the layout toggle that this script relied on.

If you want to continue using the old layout, you can either use a modded mobile client (such as Vendetta) to disable that experiment, or downgrade to an old version of the app.

Method 1 - Downgrading (Android)

Tip

Use this one if you want a fast, beginner-friendly solution and don't mind using a version from November 2023

  1. Download version 205.15 of Discord mobile app from ApkMirror
@nurdism
nurdism / ColorPicker.vue
Last active July 7, 2024 20:17
Very simple color picker for Vue 3
<script setup lang="ts">
/**
* ColorPicker.vue
* Very simple color picker for vue 3
* Only has 1 dependency tinycolor2 can be replaced with dedicated functions
*
* Preview: https://i.imgur.com/RjFUHsI.png
*/
import tinycolor from 'tinycolor2'