Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chrome 域前置启动项生成器</title>
</head>
<body>
<h1>Chrome 域前置启动项生成器</h1>
<p>复刻自:<a href="https://github.com/SpaceTimee/Sheas-Cealer">https://github.com/SpaceTimee/Sheas-Cealer</a></p>
@gledos
gledos / sd-palettize.py
Created May 22, 2024 08:16
sd-palettize
#!/usr/bin/env python
"""\
This script is from Astropulse, Written by ChatGPT-4o into a ready-to-use script version.
<https://github.com/Astropulse/sd-palettize>
---
该脚本,来自 Astropulse,经过 ChatGPT-4o 编写为了可直接使用的脚本版本。
<https://github.com/Astropulse/sd-palettize>
@gledos
gledos / restored_pixel_art.py
Created May 22, 2024 08:16
restored pixel art Python script
#!/usr/bin/env python
"""\
This script is from Returning Pixel Art to their original size by Antonio Neves. Written for Python via ChatGPT-4o.
Original: Retrieving the original pixel size for digital arts and NFTs
<https://community.wolfram.com/groups/-/m/t/2407109>
---
该脚本,来自 Antonio Neves 的 Returning Pixel Art to their original size。经过 ChatGPT-4o 编写为了 Python 版本。
@gledos
gledos / check_sni_blocking.py
Created January 19, 2024 13:50
SNI 阻断测试测试工具
import sys
import subprocess
import time
# 用法: python check_sni_blocking.py <target_url> [timeout]
def check_sni_blocking(target_url, timeout):
success_count = 0
failure_count = 0
results = []
@gledos
gledos / Convert_Date_Format.user.js
Last active December 7, 2023 03:39
Convert Date Format To ISO 8601 Style(时间转换)
// ==UserScript==
// @name Convert Date Format To ISO 8601 Style
// @namespace http://tampermonkey.net/
// @version 0.0.8
// @description Convert natural language dates to YYYY-MM-DD format
// @author ChatGPT
// @match *://*/*
// @grant GM_registerMenuCommand
// @grant GM_setValue
// @grant GM_getValue
@gledos
gledos / YouTubeShareLinkCleaner.user.js
Created December 6, 2023 08:54
YouTube Share Link Cleaner
// ==UserScript==
// @name YouTube Share Link Cleaner
// @namespace http://tampermonkey.net/
// @version 0.0.1
// @description Cleaner YouTube share links to remove tracking parameters
// @author ChatGPT
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==
@gledos
gledos / x_twitter_time.user.js
Last active December 6, 2023 08:06
X(Twitter)时间格式转换
// ==UserScript==
// @name X(Twitter)时间格式转换(本地时区计算,带时区信息)
// @name:zh-CN X(Twitter)时间格式转换(本地时区计算,带时区信息)
// @name:en X (Twitter) time format converter (local timezone calculation with timezone info)
// @namespace https://gist.github.com/gledos/fd23fd52629e90dae161a6d31583f929
// @version 0.1.0
// @description 将时间文本格式转换成指定格式,使用本地时区计算,并显示时区信息
// @author ChatGPT
// @match *://twitter.com/*
// @grant none
@gledos
gledos / Clash_for_Windows_更新日志.md
Created November 3, 2023 02:43
Clash for Windows 更新日志

Clash for Windows 更新日志

编者序

由编者整理的文字段落,会在文字前写上〔编者〕的前缀。

如未备注,均以 UTC+08:00 时区来记录时间,部分无意义的内容已被注释,可在源码里查看。

2018-11-02 16:50 CFW 0.3.0

@gledos
gledos / goagent_changelog.md
Created October 24, 2023 02:51
GoAgent 更新历史

GoAgent

GoAgent 是一个使用 Python 和 Google Appengine SDK 编写的代理软件。

@gledos
gledos / dve_demo.lua
Created October 1, 2023 12:36
DVD demo
-- title: DVD demo
-- author: gledos <cngledos@gmail.com>
-- desc: short description
-- site: website link
-- license: MIT License
-- version: 0.1
-- script: lua
--VARIABLES
d="DVD"