Skip to content

Instantly share code, notes, and snippets.

View 687766616e's full-sized avatar
🌴
假期中

687766616e

🌴
假期中
View GitHub Profile
@kleo
kleo / backspace.md
Last active July 28, 2023 17:59
backspace

Project moved due to excessive amount of unicorns. Repo https://git.io/adminpldt

Our community of amazing people. Managed by a cat. Backspace https://discord.gg/C43625u

Gist here will not be updated anymore Discussion here on Gist is still allowed but I strongly recommend going over to the repository or Discord chat


#!/usr/bin/env python3
import base64
import random
import re
import string
import requests
sess = requests.Session()
randstr = lambda len=5: ''.join(random.choice(string.ascii_lowercase) for _ in range(len))
// ==UserScript==
// @name Apple Daily Section Expander
// @namespace AppleDailySectionExpander
// @description Expand all articles in one section, no need to click one by one
// @include https://hk.news.appledaily.com/daily/local/*
// @include https://hk.news.appledaily.com/daily/international/*
// @include https://hk.finance.appledaily.com/daily/finance/*
// @include https://hk.entertainment.appledaily.com/daily/entertainment/*
// @include https://hk.sports.appledaily.com/daily/sports/*
// @include https://hk.lifestyle.appledaily.com/*