Skip to content

Instantly share code, notes, and snippets.

View maanimis's full-sized avatar
💬

Meisam Maani maanimis

💬
View GitHub Profile
@maanimis
maanimis / script.js
Last active October 29, 2024 16:13
A script designed to extract information from twitter / x
const xPath = {
content:
"/html/body/div[1]/div/div/div[2]/main/div/div/div/div/div/section/div/div/div[1]/div/div/article/div/div/div[3]/div[1]",
postDate:
"/html/body/div[1]/div/div/div[2]/main/div/div/div/div/div/section/div/div/div[1]/div/div/article/div/div/div[3]/div[last()-1]",
createDate:
"/html/body/div[1]/div/div/div[2]/main/div/div/div/div/div/div[3]/div/div/div/div/div[4]/div/span[3]/span",
};
const key = "priv8";
const link = location.href;
@maanimis
maanimis / script.js
Last active October 22, 2024 12:59
Violentmonkey adblocker script for chess.com
// ==UserScript==
// @name chess.com
// @namespace Violentmonkey Scripts
// @match https://www.chess.com/*
// @grant none
// @version 1.0
// @author -
// @description 9/15/2023, 2:44:06 PM
// ==/UserScript==
@maanimis
maanimis / script.js
Created October 22, 2024 13:00
Violentmonkey adblocker script for soundcloud.com
// ==UserScript==
// @name soundcloud.com
// @namespace Violentmonkey Scripts
// @match https://soundcloud.com/*
// @grant none
// @version 1.0
// @author -
// @description 1/22/2024, 2:01:13 PM
// ==/UserScript==
@maanimis
maanimis / script.js
Created October 22, 2024 13:00
Violentmonkey adblocker script for tradingview.com
// ==UserScript==
// @name tradingview.com
// @namespace Violentmonkey Scripts
// @match https://www.tradingview.com/chart/*
// @grant none
// @version 1.0
// @author -
// @description 12/26/2023, 6:05:47 PM
// ==/UserScript==
@maanimis
maanimis / github.creation.date.violentmonkey.js
Last active February 23, 2025 11:13
github-Creation Date
// ==UserScript==
// @name GitHub Creation Date
// @namespace Violentmonkey Scripts
// @match https://github.com/*/*
// @grant none
// @version 1.0
// @author -
// @description Displays the creation date of a GitHub repository when clicked.
// @run-at document-end
// @license MIT
@maanimis
maanimis / chatgpt-rtl-toggle.js
Last active February 25, 2025 07:50
enabling RTL (Right-To-Left) text direction toggle
// ==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
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 = {
@maanimis
maanimis / reconnecting.ws.territorial.io
Last active February 27, 2025 13:01
Reconnecting WebSocket for territorial.io-Violentmonkey Scripts
// ==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==
@maanimis
maanimis / enable-copy-telegram.js
Last active February 23, 2025 09:14
Enable copying text on Telegram Web
// ==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
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") {