Skip to content

Instantly share code, notes, and snippets.

@motebaya
motebaya / tikotokCollect.js
Created November 4, 2025 17:10
fu*ck youuu puppeterrrrrr
// credit: github.com/motebaya
// tiktok auto collect media id
(async () => {
const SELECTOR =
'[class*="DivVideoFeedV2"] > [class*="DivItemContainerV2"] div[class*="DivWrapper"] > a:not([data-grabbed])';
let unstop = true;
var pt = [];
var pv = [];
var total = 0;
@motebaya
motebaya / UnfollowFesnuk.js
Created October 23, 2025 20:12
im tired to unfollow 8k+ users fesnuk
// bosss im tired as hell
(async () => {
var t = [...document.querySelectorAll('a[aria-hidden="true"][role="link"]')];
if (t.length !== 0) {
for (let [xx, x] of t.entries()) {
var tridot =
x.parentElement.parentElement.nextSibling.nextSibling.querySelector(
"i"
);
if (tridot) {
@motebaya
motebaya / forcePotrait.js
Created October 22, 2025 20:53
ffffmmmmppppeggg force potrait , ok for reels.
(async () => {
await this.callIt({
type: "ffmpeg",
args: [
"-y",
"-hwaccel",
"cuda",
"-i",
mediaFile,
"-vf",
@motebaya
motebaya / changePrivacyTikotok.js
Created October 22, 2025 20:49
tired change tikotok privacy media one by one
// ==UserScript==
// @name TIKOTOK TOK TOK
// @namespace http://tampermonkey.net/
// @version 2025-06-01
// @description tiktok content privacy change automation
// @author github.com/motebaya
// @match https://www.tiktok.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=tiktok.com
// @grant GM_xmlhttpRequest
// @grant GM_setValue
@motebaya
motebaya / green_duotone.py
Last active September 3, 2025 12:31
Bulk/single image/s convert to Pink × Green duotone
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# @gist.github.com/motebaya - 3/9/2025
# rewrite from TS - https://lovable.dev/projects/8354edf5-ed78-4f83-8860-5ac9d2f067ff
import numpy as np
import os
from PIL import Image
import sys
@motebaya
motebaya / 4to2.py
Created August 23, 2025 14:10
4 to 2 indentation
#!/usr/bin/python3
import sys
import re
def cv_indent(file: str) -> str:
x = open(file, "r").read().strip().splitlines()
print(f" *!reading: {len(x)} lines")
code = ""
for line in x:
@motebaya
motebaya / statistic_frame.py
Created August 16, 2025 16:26
draw frames statistic into PNG
#!/usr/bin/python3
# @github.com/motebaya - 16/08/2025
# frames statistic into PNG!!!
import os
from PIL import Image, ImageDraw, ImageFont
def draw_stat(img_path: str, text: str, font: str, font_size: int) -> None:
img = Image.open(img_path).convert("RGBA")
overlay = Image.new(
@motebaya
motebaya / fastnote.py
Last active August 1, 2025 11:10
parse backup file mobile app: net.fast_notepad_notes_app.fastnotepad
#!/usr/bin/python
# @github.com/motebaya - 6/4/2025
import json, re, datetime, sys
if (len(sys.argv) < 2):
print("Usage: fastnote.py <file>")
sys.exit(1)
FILE = sys.argv[1]
@motebaya
motebaya / tokped_report.py
Last active May 31, 2025 06:34
request a personal data download through your account setting...usually it’s quick, takes less than a day, and you’ll get a pdf report.
#!/usr/bin/python3
# d: 28/05/2025 12:44:41
# you need this dawg: https://pypi.org/project/PyMuPDF/
import re
from datetime import datetime
PDF = "download.pdf"
PWS = "password123"
@motebaya
motebaya / yolo_img_crop.py
Last active April 7, 2025 07:01
crop images from all results face detection from: https://github.com/zymk9/yolov5_anime
#!/usr/bin/python
# crop image area with cv2
# @github.com/motebaya - 7/10/2024
import cv2
import os
import logging
logging.basicConfig(level=logging.INFO)
from argparse import ArgumentParser, RawTextHelpFormatter
from colorama.ansi import Fore