Skip to content

Instantly share code, notes, and snippets.

View Redirector.json
{
"createdBy": "Redirector v3.5.3",
"createdAt": "2021-04-04T16:49:55.734Z",
"redirects": [
{
"description": "",
"exampleUrl": "https://doom.fandom.com/wiki/Doom",
"exampleResult": "https://doomwiki.org/wiki/Doom",
"error": null,
"includePattern": "https://doom.fandom.com/wiki/*",
@wodim
wodim / redirects.user.js
Last active Mar 22, 2020
Script that redirects shitty sites to good sites
View redirects.user.js
// ==UserScript==
// @name Redirects
// @author You
// @match *://*/*
// ==/UserScript==
(function() {
'use strict'
const redirections = new Map([
View twinstar.user.js
// ==UserScript==
// @name Twinstar
// @match http://*.twinstar.cz/*
// @match https://*.twinstar.cz/*
// ==/UserScript==
(function() {
'use strict';
var re = /https?:\/\/(www\.)?wowhead.com\//;
@wodim
wodim / settings.json
Created Jul 24, 2019
Settings for VSCode
View settings.json
{
"editor.fontSize": 13,
"editor.renderWhitespace": "boundary",
"files.trimTrailingWhitespace": true,
"editor.rulers": [
79
],
"git.enableSmartCommit": true,
"files.eol": "\n",
"[html]": {
@wodim
wodim / wodim
Created Jun 16, 2019
palette for mintty, like the original "mintty" but with a brighter Blue and Black
View wodim
# config.c
Black = #444444
Red = #BF0000
Green = #00BF00
Yellow = #BFBF00
Blue = #5555BF
Magenta = #BF00BF
Cyan = #00BFBF
White = #BFBFBF
@wodim
wodim / underline.user.js
Created Feb 18, 2019
Userscript to underline all clickable stuff on all pages
View underline.user.js
// ==UserScript==
// @name Underline all links
// @match *://*/*
// ==/UserScript==
(function() {
'use strict';
var extra_css = document.createElement("style");
extra_css.innerHTML = 'a, input[type=submit], input[type=button], button, label { text-decoration: underline !important; }';
@wodim
wodim / automime.py
Created Jan 9, 2019
Adds a suitable extension to every file in the current folder
View automime.py
import mimetypes
import os
import sys
import magic
try:
dir = sys.argv[1]
except IndexError:
View proxylist.user.js
// ==UserScript==
// @name ProxyList
// @match https://www.sslproxies.org/
// ==/UserScript==
(function() {
'use strict';
var list = document.getElementsByTagName("td");
for (let item of list) {
View armory.user.js
// ==UserScript==
// @name Armory
// @match http://*.warmane.com/*
// @match https://*.warmane.com/*
// ==/UserScript==
(function() {
'use strict';
document.body.addEventListener('mousedown', function(el) {
@wodim
wodim / mm2_ar_extract.py
Created Nov 5, 2018
Script to extract AR files from Midtown Madness 2
View mm2_ar_extract.py
# wodim, 05/11/2018 -- public domain
# extracts an AR file from Midtown Madness 2 into the target directory
from math import ceil
import os
import sys
from struct import unpack
import zlib