Javascript is a programming language with a peculiar twist. Its event driven model means that nothing blocks and everything runs concurrently. This is not to be confused with the same type of concurrency as running in parallel on multiple cores. Javascript is single threaded so each program runs on a single core yet every line of code executes without waiting for anything to return. This sounds weird but it's true. If you want to have any type of sequential ordering you can use events, callbacks, or as of late promises.
This file contains hidden or 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
| { | |
| // UI | |
| "workbench.iconTheme": "hypernym-icons", | |
| "workbench.colorTheme": "FullstacksJS (Dark)", | |
| "editor.cursorSmoothCaretAnimation": "on", | |
| "editor.cursorBlinking": "smooth", | |
| "editor.fontFamily": "'Monaspace Argon', 'DejaVuSansM Nerd Font', sans", | |
| "editor.codeLensFontFamily": "'Monaspace Argon'", | |
| "editor.inlineSuggest.fontFamily": "'Monaspace Argon'", | |
| "markdown.preview.fontFamily": "'Monaspace Argon'", |
This file contains hidden or 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
| // ==UserScript== | |
| // @name auto-download-subtitletools | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-12-03 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://subtitletools.com/subtitle-sync-shifter/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=subtitletools.com | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or 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
| /** | |
| * Function and Class Hooking Utility | |
| * Provides comprehensive hooking capabilities for functions and classes | |
| */ | |
| // Types for hook callbacks | |
| type BeforeHook<T extends any[] = any[]> = (...args: T) => void | [...T]; | |
| type AfterHook<T = any> = (result: T, ...args: any[]) => T | void; | |
| type ErrorHook = (error: Error, ...args: any[]) => void; |
This file contains hidden or 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
| // ==UserScript== | |
| // @name GitHub Follower Tracker | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.1 | |
| // @description Track GitHub followers&following | |
| // @author maanimis | |
| // @match https://github.com/*?tab=following | |
| // @grant GM_getValue | |
| // @grant GM_setValue | |
| // @grant GM_listValues |
This file contains hidden or 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
| const CACHE_NAME = 'my-cache-v1'; | |
| // هنگام نصب Service Worker، میتونیم فایلهای اولیه رو کش کنیم | |
| self.addEventListener('install', (event) => { | |
| console.log('[Service Worker] Installing...'); | |
| event.waitUntil( | |
| caches.open(CACHE_NAME).then((cache) => { | |
| console.log('[Service Worker] Pre-caching some assets'); | |
| return cache.addAll([ | |
| '/', // index.html |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Link Gopher Lite (Userscript) | |
| // @namespace https://gist.github.com/maanimis | |
| // @version 1.0 | |
| // @description Extract all links | |
| // @author You | |
| // @match *://*/* | |
| // @grant GM_registerMenuCommand | |
| // ==/UserScript== |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Heading Fragment Linker | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2.0 | |
| // @description Add clickable fragment links to all headings | |
| // @author maanimis | |
| // @match *://*/* | |
| // @grant none | |
| // @license MIT | |
| // ==/UserScript== |
This file contains hidden or 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
| // ==UserScript== | |
| // @name WebSocket Connection Multiplier+Reconnect | |
| // @namespace http://tampermonkey.net/ | |
| // @version 3.1 | |
| // @description Intercepts WebSocket connections and creates multiple connections instead of one | |
| // @author maanimis | |
| // @match https://example.com/ | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=example.com | |
| // @grant none | |
| // @run-at document-start |
NewerOlder