Skip to content

Instantly share code, notes, and snippets.

View greatghoul's full-sized avatar
🏠
Working from home

greatghoul greatghoul

🏠
Working from home
View GitHub Profile
alert('hello ' + document.location.href);
@greatghoul
greatghoul / devtool-script.js
Created January 11, 2024 14:07
Batch Unsubscribe Youtube Channels
(function () {
function clickElement(element) {
return new Promise((resolve, reject) => {
const event = new MouseEvent("click", { bubbles: true, cancelable: true });
element.dispatchEvent(event);
setTimeout(() => resolve(element), 500);
});
}
async function start() {
@greatghoul
greatghoul / crawler_dm5_com.py
Last active July 29, 2025 19:18
dm5.com 漫画批量下载
#-*- coding: utf-8
"""
requirements:
PyExecJS
requests
"""
import sys, os, re, requests, execjs
def get_page_list(content):
print ' Fetching page list ...'
@greatghoul
greatghoul / webm_to_mp4.bat
Created July 16, 2025 15:04
查找 Windows 下载文件夹中的 .webm 文件,选择后转换为 mp4
@echo off
chcp 65001 >nul
setlocal enabledelayedexpansion
:: 防止窗口意外关闭
title WebM to MP4 Converter
echo Starting WebM to MP4 Converter...
echo.
:: 设置搜索目录
@greatghoul
greatghoul / list.txt
Created August 31, 2012 12:54
中国奥运榜样刷票
60.28.250.194:82
121.15.167.231:8080
122.72.0.6:80
114.80.240.6:808
202.112.114.17:3128
221.176.14.73:80
122.113.28.52:3128
218.247.138.40:80
211.144.76.7:8181
60.190.129.52:3128
@greatghoul
greatghoul / DoubanGroupPlus.user.js
Created March 30, 2025 12:57
豆瓣小组管理助手
// ==UserScript==
// @name 豆瓣小组管理助手
// @namespace https://anl.gg/
// @version 2025-03-26
// @description 改进豆瓣小组管理功能,保存用户申请加入群组的备注
// @author greatghoul
// @match https://www.douban.com/group/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=douban.com
// @require https://code.jquery.com/jquery-3.7.1.min.js
// @grant GM_setValue
@greatghoul
greatghoul / event.js
Last active March 15, 2024 07:28
Chrome Extension Example - Popup Panel
chrome.browserAction.onClicked.addListener(function(tab) {
chrome.windows.create({
url: "panel.html",
width: 320,
height: 480,
type: 'panel'
});
});
@greatghoul
greatghoul / manifest.json
Last active October 20, 2023 16:48
Chrome Extension Sample - detect if an extension is installed.
{
"name": "Detect if an extension installed",
"description": "Detect if an extension installed",
"version": "0.1",
"manifest_version": 2,
"permissions": [
"management"
],
"browser_action": {
"default_popup": "popup.html"
@greatghoul
greatghoul / content1.js
Last active May 6, 2023 00:32
chrome extension message passing example
chrome.runtime.onMessage.addListener(
function(message, sender, sendResponse) {
console.log(`${message} in content1`)
sendResponse(`${message} from content1`)
// setTimeout(() => {
// sendResponse(`${message} from content1`)
// }, 2000)
//
// return true
}
@greatghoul
greatghoul / README.md
Last active April 30, 2023 12:33
一言 API:随机返回一句话 | 捷径社区

一言:随机返回一句话

GET https://v1.hitokoto.cn/

参数