Skip to content

Instantly share code, notes, and snippets.

@MusiCode1
MusiCode1 / README.md
Created June 1, 2026 11:54
Set RTL โ€” ื›ืคื™ื™ืช RTL ื•ื™ื™ืฉื•ืจ ืœื™ืžื™ืŸ ืขืœ ืืชืจื™ื ืฉืœื ืชื•ืžื›ื™ื ื‘ืขื‘ืจื™ืช (Tampermonkey, loop-safe, Shadow DOM)

Set RTL โ€” ื›ืคื™ื™ืช ื›ื™ื•ื•ื ื™ื•ืช ื™ืžื™ืŸ-ืœืฉืžืืœ ืขืœ ืืชืจื™ื

ืกืงืจื™ืคื˜ Tampermonkey ืฉืžื›ืจื™ื— RTL ื•ื™ื™ืฉื•ืจ ืœื™ืžื™ืŸ ืขืœ ืืชืจื™ื ืฉืœื ืชื•ืžื›ื™ื ื‘ืขื‘ืจื™ืช/ืขืจื‘ื™ืช ื›ืžื• ืฉืฆืจื™ืš โ€” ืืชืจื™ื ืฉืœื ืืชื” ื›ืชื‘ืช ื•ืื™ืŸ ืœืš ื“ืจืš ืœืชืงืŸ ืžื‘ืคื ื™ื.

ืžื” ื–ื” ืขื•ืฉื”

ืขืœ ื›ืœ ืืœืžื ื˜ ืฉืžื›ื™ืœ ื˜ืงืกื˜ (ื•ื’ื ืขืœ ืฉื“ื•ืช ืงืœื˜, textarea, ื•-contenteditable) ื”ืกืงืจื™ืคื˜ ืžื•ืกื™ืฃ:

  • dir="auto" โ€” ืžืืคืฉืจ ืœื“ืคื“ืคืŸ ืœื–ื”ื•ืช ืื•ื˜ื•ืžื˜ื™ืช ืืช ื›ื™ื•ื•ืŸ ื”ื˜ืงืกื˜ (ืขื‘ืจื™ืช โ†’ ื™ืžื™ืŸ, ืื ื’ืœื™ืช โ†’ ืฉืžืืœ).
  • text-align: right !important โ€” ืžื™ื™ืฉืจ ืืช ื”ื˜ืงืกื˜ ืœื™ืžื™ืŸ.
// ==UserScript==
// @name Bypass DevTools Detection
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Try to run before the site code
// @author You
// @match https://example.com/*
// @run-at document-start
// @grant none
// ==/UserScript==
(async function download_all_songs() {
console.log("Musicode7");
console.log("https://gist.github.com/MusiCode1/c50432ad3f413a958e6f3aea7c214cfc");
const audio_list = document.querySelectorAll("audio > source");
check();

bitwarden vhdx password

const { writeFile, readFile } = require("fs").promises;
module.exports = {
Class,
sleep,
change_file
};
function Class() {
@MusiCode1
MusiCode1 / edge-text-to-speech.md
Last active May 17, 2022 11:35
edge text to speech
from json import dumps as json_stringify, loads as json_prase
from ws4py.client.threadedclient import WebSocketClient
from cryptography.fernet import Fernet
from xml.etree import ElementTree
from datetime import datetime
import ws4py
import time
import os
@MusiCode1
MusiCode1 / MicrosoftSpeech.md
Last active May 9, 2021 18:32
ื”ืžืจืช ื˜ืงืกื˜ ืœื“ื™ื‘ื•ืจ - ืžื™ื™ืงืจื•ืกื•ืคื˜ ืื“ื’'
ืขืจื™ื›ื” - 9/5/21: ื”ื˜ื•ืงืŸ ื”ืคืกื™ืง ืœืขื‘ื•ื“.
ืงื•ื‘ืฅ ื—ื“ืฉ ื›ืืŸ:
https://gist.github.com/MusiCode1/2db11a3e429e41e02bdf98febd239256
ื‘ืืžืฆืขื•ืช ื”ืงื•ื“ ื”ื‘ื, ื ื™ืชืŸ ืœื”ืžื™ืจ ื˜ืงืกื˜ ืœื“ื™ื‘ื•ืจ, ืœืœื ืชืฉืœื•ื,
ื‘ืืžืฆืขื•ืช ื”ื˜ื•ืงืŸ ืฉืœ ืžื™ื™ืงืจื•ืกื•ืคื˜ ืื“ื’'.