Skip to content

Instantly share code, notes, and snippets.

View that4chanwolf's full-sized avatar

Wise Horo that4chanwolf

View GitHub Profile
// ==UserScript==
// @name Framerate Police Police
// @namespace fpspolice
// @include http://store.steampowered.com/app/*
// @include https://store.steampowered.com/app/*
// @author Faggot
// ==/UserScript==
(function() {
document.querySelectorAll('a[href*="/curator/9393382-The-Framerate-Police"]')[0].parentElement.parentElement.style['display'] = 'none';
@that4chanwolf
that4chanwolf / gist:8921631
Created February 10, 2014 18:40
Cloud2butt
// ==UserScript==
// @name Cloud2Butt
// @include *
// ==/UserScript==
(function() {
var textnodes = document.evaluate("//body//text()[not(ancestor::script) and not(ancestor::style)]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),
node, text;
for(var i = 0; i < textnodes.snapshotLength; i++) {
node = textnodes.snapshotItem(i);
@that4chanwolf
that4chanwolf / gist:8911081
Created February 10, 2014 06:06
inb4, an aegisub script that adds content before a line. This has probably been done 200 billion times but whatever.
-- Do whatever you want.
script_name = "inb4"
script_description = "Adds content before selected lines. Useful for OPs where you want \\fads or \\blurs, like every Commie OP ever."
script_author = "t4w"
script_version = "0.0.1a"
function inb4(subs, sel)
local t = ipairs(sel)
for __, i in ipairs(sel) do
@that4chanwolf
that4chanwolf / mpd-np.sh
Created January 19, 2013 23:55
MPD now playing with dzen2
#!/bin/zsh
DZEN_LOCATION=$(which dzen2)
MPC_LOCATION=$(which mpc)
if [[ -z ${DZEN_LOCATION} ]]; then
echo "dzen2 not found" && exit 1
else
DZEN_COMMAND=(dzen2 -ta c -p 5 -y 25 -x 1050 -tw 285 -bg \#2a2f30 -fg \#ffffff -fn Terminus)
fi
@that4chanwolf
that4chanwolf / gist:4435901
Created January 2, 2013 16:36
Kumagawa.pl
use Irssi;
use strict;
sub halp {
print("I'm a fucking loser.");
};
sub loser {
my ($text, $server) = @_;
if($text eq '') {
@that4chanwolf
that4chanwolf / String.prototype.autism.js
Created December 14, 2012 20:06
String.autism() method Matches ticks `'`, quotes `"`, and parenthesis `(`.
String.prototype.autism = function () {
var parens = 0,
ticks = 0,
quotes = 0,
line = this.valueOf();
for (var i = 0; i < line.length; i++) {
if (line[i] === '(') { // Parens
parens++;
} else if (line[i] === ')') {
parens--;
@that4chanwolf
that4chanwolf / netspeed.sh
Created November 23, 2012 05:26 — forked from rsvp/netspeed.sh
netspeed.sh : check download speed rate via command line | Linux bash script
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-10-09
#
# _______________| netspeed : check download speed via command line.
#
# Usage: netspeed [tokyo, london, usw, use, east, west, URL]
# ^default U.S. west coast.
# [ -speed_KB/sec ]
# ^negation activates the Mbps converter.
#
@that4chanwolf
that4chanwolf / ass-parser.js
Created November 18, 2012 04:15
ASS parser script
#!/usr/bin/env node
/*
* Simple script for turning ASS files into regular scripts
* NOTE: Not 100% tested, will probably fail.
* Please fix me ;_;
*/
var ap = require('argparser').
files("in", "out").
parse(),
@that4chanwolf
that4chanwolf / HoroHoroHoro.user.js
Created August 31, 2012 17:19
HoroHoroHoro.user.js
// ==UserScript==
// @name HoroHoroHoro
// @match *://boards.4chan.org/*
// @delay 1
// ==/UserScript==
var log
if( !console.log ) {
log = unsafeWindow.console.log;
@that4chanwolf
that4chanwolf / upload.sh
Created August 26, 2012 17:54
Uploader
#!/bin/bash
# upload.sh (goput|omploadr|imgur) file
if [ "x${1}" = 'x' ]; then
echo 'need host'
exit
fi
if [ "x{$2}" = "x" ]; then
echo 'need filename'
exit