Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Greyscale MSE Favicon
// @description It's just easier to distinguish.
// @namespace michaelb958
// @author michaelb958, Ilmari Karonen
// @license MIT (http://opensource.org/licenses/MIT)
// @match *://*.stackexchange.com/*
// @match *://*.stackoverflow.com/*
// @match *://*.superuser.com/*
// @match *://*.serverfault.com/*
@vyznev
vyznev / confirm_review_approval.user.js
Created May 30, 2014 23:54
User script to force a confirmation dialog before approving edits on Stack Exchange
// ==UserScript==
// @name Stack Exchange: Confirm Review Approval
// @namespace http://vyznev.net
// @description Pops up a confirmation dialog when you click "Approve" in suggested edit review
// @match *://*.stackexchange.com/review/suggested-edits*
// @match *://*.stackoverflow.com/review/suggested-edits*
// @match *://*.superuser.com/review/suggested-edits*
// @match *://*.serverfault.com/review/suggested-edits*
// @match *://*.stackapps.com/review/suggested-edits*
// @match *://*.mathoverflow.net/review/suggested-edits*
@vyznev
vyznev / mtg_v2.user.js
Last active August 29, 2015 14:02
An improved reimplementation of mtg.js for Board & Card Games SE
// ==UserScript==
// @name Improved MtG card links
// @version 2.0
// @namespace https://github.com/vyznev/
// @description An improved reimplementation of mtg.js for Board & Card Games SE
// @author Ilmari Karonen
// @license Public Domain (CC-Zero)
// @match *://boardgames.stackexchange.com/*
// @match *://meta.boardgames.stackexchange.com/*
// @grant none
// ==UserScript==
// @name SE Extra, Optional Features
// @namespace http://stackexchange.com/users/4337810/%E1%B9%A7%D0%BD%CA%8A%C3%9F
// @version 0.6.1
// @description Adds a bunch of optional 'features' to the StackExchange sites.
// @author ṧнʊß (http://stackexchange.com/users/4337810/%E1%B9%A7%D0%BD%CA%8A%C3%9F)
// @match *://*.stackexchange.com/*
// @match *://*.stackoverflow.com/*
// @match *://*.superuser.com/*
// @match *://*.serverfault.com/*
// ==UserScript==
// @name ImageShack one-click recovery
// @version 0.2
// @namespace http://vyznev.net
// @description Highlights ImageShack images on Stack Exchange, and adds a click hadler that attempts to reload them from archive.org
// @author Ilmari Karonen
// @license ISC (http://opensource.org/licenses/ISC)
// @match *://*.stackexchange.com/*
// @match *://*.stackoverflow.com/*
// @match *://*.superuser.com/*
@vyznev
vyznev / se_delete_vote_saver.user.js
Last active March 10, 2016 14:41
This script tweaks the Stack Exchange Low Quality Posts review queue interface so as not to consume delete votes from reviewers who can cast them (i.e. those who have 20k+ rep, on graduated sites). See http://meta.stackoverflow.com/questions/316010/stop-using-delete-votes-in-the-lqprq for a related feature request and rationale.
// ==UserScript==
// @name Stack Exchange LQP delete vote saver
// @namespace https://github.com/vyznev/
// @description Tweaks the Stack Exchange Low Quality Posts review queue not to consume delete votes from 20k+ users
// @author Ilmari Karonen
// @version 0.2
// @license Public Domain (CC-Zero)
// @homepageURL http://meta.stackoverflow.com/a/316092
// @match *://*.stackexchange.com/review/low-quality-posts*
// @match *://*.stackoverflow.com/review/low-quality-posts*
@vyznev
vyznev / se_beta_everywhere.user.js
Last active May 25, 2016 18:04
This user script makes all Stack Exchange Q&A sites use the generic beta site theme
// ==UserScript==
// @name Stack Exchange beta theme everywhere
// @namespace http://vyznev.net/
// @description Makes all Stack Exchange sites use the generic beta site theme
// @author Ilmari Karonen
// @version 0.5.2
// @license Public domain
// @homepageURL http://meta.stackexchange.com/a/275804
// @match *://*.stackexchange.com/*
// @match *://*.stackoverflow.com/*
@vyznev
vyznev / neumann2moore.py
Last active February 3, 2018 02:41
Convert isotropic CA rule strings from the 4-cell von Neumann neighborhood to the 8-cell Moore neighborhood
#!/usr/bin/python
neumann2moore = {
"0": {0: "", 1: "c", 2: "cn", 3: "c", 4: "c"},
"1": {1: "e", 2: "ka", 3: "inyq", 4: "ny", 5: "e"},
"2e": {2: "e", 3: "kaj", 4: "kaqw", 5: "kaj", 6: "e"},
"2i": {2: "i", 3: "r", 4: "itz", 5: "r", 6: "i"},
"3": {3: "e", 4: "jr", 5: "inyq", 6: "ka", 7: "e"},
"4": {4: "e", 5: "c", 6: "cn", 7: "c", 8: ""}
}
@vyznev
vyznev / neumann2moore_partial.py
Created February 3, 2018 08:40
Convert pairs of isotropic CA rule strings on the 4-cell von Neumann neighborhood into a Logic Life Search partial rule dictionary.
#!/usr/bin/python
import re
import sys
import argparse
parser = argparse.ArgumentParser(description='Generate LLS rule dict to search multiple isotropic CA rules on the 4-cell von Neumann neighborhood.')
parser.add_argument('minrule', help='minimum rule string (e.g. B0/S)')
parser.add_argument('maxrule', nargs='?', help='maximum rule string (e.g. B0234/S01)')
parser.add_argument('-t', '--totalistic', action='store_true', help='consider only (outer) totalistic rules, i.e. treat 2e and 2i as equivalent')
@vyznev
vyznev / se_timeline_link.user.js
Last active May 23, 2018 07:40
Stack Exchange timeline link user script