Skip to content

Instantly share code, notes, and snippets.

@radiantly
radiantly / noMangleGoogle.user.js
Last active December 28, 2023 04:31
Prevent Google from mangling links on the search results when clicking or copying on Firefox
// ==UserScript==
// @name Prevent link mangling on Google
// @namespace LordBusiness.LMG
// @match https://www.google.com/search
// @grant none
// @version 1.1
// @author radiantly
// @description Prevent google from mangling the link when copying or clicking the link on Firefox
// ==/UserScript==
@symant233
symant233 / ublock-static-filters.txt
Last active March 25, 2024 13:32
uBlock static filters
! 2019/2/2 https://start.duckduckgo.com
start.duckduckgo.com##.header__label.showcase.header--aside__item
start.duckduckgo.com##.tag-home__item
! 2019/2/2 https://www.bilibili.com
www.bilibili.com###fixed_app_download
! 2019/2/4 http://ask.zol.com.cn
ask.zol.com.cn###\#J_recommend_cover
ask.zol.com.cn###\#J_recommend_cover
@tindy2013
tindy2013 / _subconverter_configs.md
Last active April 20, 2024 16:05
subconverter_configs

This is a gist repository for some external configs for subconverter, you can use the raw address of the following INIs to generate a specified set of rules, groups and/or scripts.

@xPaw
xPaw / steam_quick_queue.user.js
Last active November 21, 2023 00:15
⚠ This script has been integrated into SteamDB browser extension!
// ==UserScript==
// @name Steam Queue Auto Discoverer
// @description Discover the Steam queue three times to get the sale cards
// @version 2.3.0
// @namespace https://gist.github.com/xPaw/73f8ae2031b4e528abf7
// @icon https://store.steampowered.com/favicon.ico
// @match https://store.steampowered.com/explore*
// @grant none
// ==/UserScript==
@gaomd
gaomd / gist:7da5de92561dbd0c6b44
Last active October 28, 2023 09:13
Migrating V2EX's starred topics to Pinboard
//
// This scripts helps you migrating V2EX's starred topics to Pinboard
// https://www.v2ex.com/t/137169
//
// 0. Edit authToken variable below.
// 1. Navigate to https://www.v2ex.com/my/topics
// 2. Paste code into browser console, and enter to execute
// 3. You should see the console scroll over some outputs
// 4. Wait for the "DONE :)" message
// 5. Move to the next page, and continue step 1
@Lerg
Lerg / colors.lua
Created July 1, 2014 07:22
147 color names as a Lua table, RGB from 0 to 1.
return {
aliceblue = {0.94117647058824, 0.97254901960784, 1},
antiquewhite = {0.98039215686275, 0.92156862745098, 0.84313725490196},
aqua = {0, 1, 1},
aquamarine = {0.49803921568627, 1, 0.83137254901961},
azure = {0.94117647058824, 1, 1},
beige = {0.96078431372549, 0.96078431372549, 0.86274509803922},
bisque = {1, 0.89411764705882, 0.76862745098039},
black = {0, 0, 0},
blanchedalmond = {1, 0.92156862745098, 0.80392156862745},
@YungSang
YungSang / patch.model.tumblr.getTumblelogs.tbrl.js
Last active December 28, 2015 10:39
[Deprecated] Taberareloo パッチ: 全てのサブブログ(招待された他のブログを含む)を投稿先に出来るようにするパッチ * Taberareloo v3.0.10 で対応済み
// ==Taberareloo==
// {
// "name" : "Fix getting multiple tumblelogs"
// , "description" : "Fix getting multiple tumblelogs"
// , "include" : ["background"]
// , "version" : "0.1.1"
// , "downloadURL" : "https://gist.github.com/YungSang/7487373/raw/patch.model.tumblr.getTumblelogs.tbrl.js"
// }
// ==/Taberareloo==
@fanzeyi
fanzeyi / v2ex_api.md
Last active April 29, 2024 08:43
V2EX API
@JoelBesada
JoelBesada / README.md
Last active October 14, 2022 04:20
Backtick Example Command

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
@PeterDing
PeterDing / xiami_vip_linux.py
Last active April 9, 2017 18:34
在linux上,下载 xiami.com 320Kbps mp3 -- # 移到仓库 https://github.com/PeterDing/iScript
#!/usr/bin/env python2
# vim: set fileencoding=utf8
import re, sys, os, random, time, json, logging, argparse, requests, urllib
from mutagen.id3 import ID3,TRCK,TIT2,TALB,TPE1,APIC,TDRC,COMM,TPOS,USLT
from HTMLParser import HTMLParser
parser = HTMLParser()
s = u'\x1b[1;%dm%s\x1b[0m' # terminual color template