This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const app = document.querySelector('#app').__vue__; | |
let jwt, popCount = parseInt(localStorage.getItem('popCount') || 0); | |
// Maximum 800 pops in 30 seconds (limited by server-side) | |
async function send () { | |
try { | |
const recaptcha = await app.$recaptcha('pop'); | |
jwt = jwt ? '&token=' + jwt : ''; | |
const popURL = `https://stats.popcat.click/pop?pop_count=800&captcha_token=${recaptcha}${jwt}`; | |
const response = await fetch(popURL, { method: 'POST', mode: 'cors' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name LIHKG Show Quoted Message Info | |
// @namespace https://gist.github.com/kitce | |
// @version 0.7 | |
// @description Show the information (e.g. message number, user, message time) of the quoted message on LIHKG | |
// @author kitce | |
// @include https://lihkg.com/* | |
// @require https://openuserjs.org/src/libs/sizzle/GM_config.js | |
// @grant GM_getValue | |
// @grant GM_setValue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name LIHKG Text to Image | |
// @namespace https://gist.github.com/kitce | |
// @version 0.4 | |
// @description Convert text to image on LIHKG | |
// @author kitce | |
// @include https://lihkg.com/* | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eux | |
# Replace with current Chromium version | |
_chrome_ver=$(chromium --version | grep -E -o "[0-9]+.*[0-9]+") | |
# Debian's Chromium has a patch to read libwidevinecdm.so in ~/.local/lib | |
# However, in 79 and newer, you must use the WidevineCdm directory instead of | |
# the libwidevinecdm.so file | |
#_target_dir=~/.local/lib/WidevineCdm | |
#_move_type=user_directory | |
# To have it accessible by all users, uncomment the below instead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# Usage: crx-unpack.sh [extension] | |
# | |
# Dependencies: | |
# - crx-dl (https://gist.github.com/kitce/0f3ce27ddfa52b53f7532365235eaf99) | |
id=$1 | |
crx-dl $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name LIHKG Label Users | |
// @namespace https://gist.github.com/kitce | |
// @version 0.18 | |
// @description Label users on LIHKG | |
// @author kitce | |
// @include https://lihkg.com/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name LIHKG Post Templates | |
// @namespace https://gist.github.com/kitce | |
// @version 0.10 | |
// @description Save/load LIHKG post templates | |
// @author kitce | |
// @include https://lihkg.com/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name LIHKG Show User Info | |
// @namespace https://gist.github.com/kitce | |
// @version 0.16.0 | |
// @description Show the user information (e.g. user ID, registration date) in each reply | |
// @author kitce | |
// @include https://lihkg.com/* | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Usage: crx-dl [extension] | |
# | |
# Dependencies: | |
# - chromium | |
id=$1 | |
version=$(chromium --version | grep -E -o "[0-9]+.*[0-9]+") |
NewerOlder