Skip to content

Instantly share code, notes, and snippets.

@maanimis
maanimis / priv8-nobitex-userscript.js
Created January 5, 2026 08:58
auto click-active orders
// ==UserScript==
// @name priv8-nobitex
// @namespace http://tampermonkey.net/
// @version 2026-01-05
// @description try to take over the world!
// @author You
// @match https://nobitex.ir/panel/exchange/position/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=nobitex.ir
// @grant none
// @require https://update.greasyfork.org/scripts/561472/1727895/findElementsBySelectorAndTextContains.js

GMStorage – Advanced Storage Utility for Userscripts

The GMStorage class is an advanced wrapper for Greasemonkey, Tampermonkey, or Violentmonkey storage APIs. It streamlines persistent data management by offering a natural JavaScript object interface with built-in synchronization across tabs, deep object update detection, and robust merging of default values.

Key Features:

  • Natural Read/Write Operations:
    Access and update storage keys as if they were object properties.

  • Deep Proxying for Nested Updates:

@maanimis
maanimis / CONCURRENCY.md
Created December 7, 2025 17:07 — forked from montanaflynn/CONCURRENCY.md
Examples of sequential, concurrent and parallel requests in node.js

Concurrency in JavaScript

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.

Ubuntu/Debian Server Security Setup Guide

Prerequisites

  • Fresh Ubuntu/Debian server installation
  • Root or sudo access
  • Basic familiarity with command line

Step 1: Initial System Update

{
// 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'",
// ==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==
@maanimis
maanimis / Function_Class_Hooking_Utility.ts
Last active October 30, 2025 09:06
Provides comprehensive hooking capabilities for functions and classes
/**
* 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;
@maanimis
maanimis / GitHub-Follower-Tracker.userscript.js
Last active October 21, 2025 18:37
Track GitHub followers&following
// ==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
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