Skip to content

Instantly share code, notes, and snippets.

View ad1107's full-sized avatar
🧐
not much work atm

N.Anh Duc ad1107

🧐
not much work atm
  • ViETNAM
  • 12:17 (UTC +07:00)
View GitHub Profile
@ad1107
ad1107 / oii.user.js
Created November 29, 2024 13:08
osu! improvement indicator (oii) userscript for all browsers - ported from github.com/ferryhmm/oii
// ==UserScript==
// @name oii - osu! improvement indicator
// @namespace http://tampermonkey.net/
// @version 0.1
// @description https://github.com/ferryhmm/oii
// @author ferryhmm / ad1107
// @match https://osu.ppy.sh/users/*
// @grant none
// @icon https://raw.githubusercontent.com/ferryhmm/oii/refs/heads/main/images/oii128.png
// ==/UserScript==
@ad1107
ad1107 / yt-speedcontrol.user.js
Last active March 17, 2025 03:36
Speed / Pitch changer control bar for YouTube
// ==UserScript==
// @name Youtube Speed Controls
// @version 2.0.0
// @description Speed / Pitch changer control bar for YouTube
// @author AD
// @match http*://www.youtube.com/watch*
// @icon https://www.google.com/s2/favicons?domain=youtube.com
// @grant none
// @license MPL-2.0
// ==/UserScript==
@ad1107
ad1107 / shopeestats.user.js
Created May 4, 2024 22:24
Overall value of the total orders.
// ==UserScript==
// @name Shopee Order Statistics
// @namespace ad-shopeestats
// @version 1.0
// @description Overall value of the total orders.
// @author AD
// @match https://shopee.vn/
// @grant GM_addStyle
// @icon64 https://www.google.com/s2/favicons?domain=shopee.vn
// ==/UserScript==
@ad1107
ad1107 / websocket-tester.py
Created January 4, 2024 16:24
A simple program to test WebSocket server (ws://) with support for JSON Parsing and printing subelement of the response.
import asyncio
import json
import websockets
print("WebSocket Server Tester (JSON Format)")
address = input("Enter address: ")
if address.strip() == '':
@ad1107
ad1107 / getadmin.bat
Created September 5, 2023 14:32
Elevate Administrator permission for your batch file. (Windows)
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )