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 originalWebSocket = window.WebSocket; | |
| class MultiWebSocket { | |
| constructor(...args) { | |
| this.args = args; | |
| this.maxConn = 2; | |
| this.extraSockets = []; | |
| this.mainWS = new originalWebSocket(...args); | |
| this.isSending = false; |
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 () { | |
| const MULTIPLIER = +prompt("MULTIPLIER", "2"); | |
| const URL = "https://territorial.io/"; | |
| function createIframes(count) { | |
| let container = document.getElementById("iframeContainer"); | |
| if (!container) { | |
| container = document.createElement("div"); | |
| container.id = "iframeContainer"; | |
| document.body.innerHTML = ""; |
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 Web Archive Helper | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.6 | |
| // @description Add options to search or save pages on web.archive.org and archive.today | |
| // @author maanimis | |
| // @match *://*/* | |
| // @grant GM_registerMenuCommand | |
| // @grant GM_openInTab | |
| // @license MIT |
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 hijack-fetch | |
| // @namespace Violentmonkey Scripts | |
| // @match *://*/* | |
| // @grant none | |
| // @version 1.0 | |
| // @author maanimis | |
| // @description 1/26/2025, 1:31:21 PM | |
| // @run-at document-end | |
| // @license MIT |
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 hijack-xhr | |
| // @namespace Violentmonkey Scripts | |
| // @match *://*/* | |
| // @grant none | |
| // @version 1.0 | |
| // @author maanimis | |
| // @description 1/26/2025, 1:35:29 PM | |
| // @run-at document-end | |
| // @license MIT |
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
| export default { | |
| fetch: async (request) => { | |
| try { | |
| const requestData = await request.json(); | |
| const chatMember = requestData?.chat_member; | |
| const oldStatus = chatMember?.old_chat_member?.status; | |
| const newStatus = chatMember?.new_chat_member?.status; | |
| if (oldStatus === "member" && newStatus === "left") { |
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 enable-copy-telegram | |
| // @namespace Violentmonkey Scripts | |
| // @match https://web.telegram.org/* | |
| // @grant none | |
| // @version 1.0 | |
| // @run-at document-end | |
| // @author maanimis | |
| // @description Enable copying text on Telegram Web | |
| // @license MIT |
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 Reconnecting WebSocket-territorial.io | |
| // @namespace Violentmonkey Scripts | |
| // @match https://territorial.io/* | |
| // @grant none | |
| // @version 3.2 | |
| // @description Reconnecting WebSocket for territorial.io with improved stability. | |
| // @run-at document-start | |
| // ==/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
| const TOKEN = "TOKEN"; | |
| const WEBHOOK_PATH = "/channelListener"; | |
| const SECRET = "YOUR_BOT_SECRET"; | |
| const CHANNEL_NUMBER_ID = -11111111111111111; | |
| const CHANNEL_USERNAME = "@USERNAME"; | |
| addEventListener("fetch", (event) => { | |
| const url = new URL(event.request.url); | |
| const routeHandlers = { |
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 chatgpt-rtl-toggle | |
| // @namespace Violentmonkey Scripts | |
| // @match https://chatgpt.com/*/* | |
| // @grant none | |
| // @version 1.0 | |
| // @author - | |
| // @description enabling RTL (Right-To-Left) text direction toggle | |
| // @run-at document-end | |
| // @license MIT |