Skip to content

Instantly share code, notes, and snippets.

View loadletter's full-sized avatar

loadletter

  • Systemd considered harmful
View GitHub Profile
@loadletter
loadletter / 4chan- File Age.user.js
Last active October 1, 2021 15:39
Converts 4chan file names like 1276731803495.jpg to corresponding dates so you can see when the image was originally posted.
// ==UserScript==
// @id org.userscripts.users.kuehlschrank.4chanFileAge
// @name 4chan: File Age
// @description Converts 4chan file names like 1276731803495.jpg to corresponding dates so you can see when the image was originally posted.
// @author kuehlschrank
// @version 2017.01.30
// @include http*://boards.4chan.org/*
// ==/UserScript==
/* original source @ http://userscripts-mirror.org/scripts/review/94520 */
@loadletter
loadletter / is2fix.user.js
Last active October 2, 2021 10:05
Rewrite image links to never use the slow and unreliable is2.4chan.org server (original: http://pastebin.com/T9tPKtsg)
// ==UserScript==
// @name 4chanimgfix
// @namespace Hiroshima Nagasaki
// @author Anonymous
// @match *://boards.4chan.org/*
// @grant none
// ==/UserScript==
var a_scan = document.getElementsByClassName("fileThumb");
var hiroshima, nagasaki;
@loadletter
loadletter / update_ipfs.sh
Created August 28, 2016 00:17
Update and rebuild IPFS from source
#!/bin/sh
set -e
echo "IPFS local gateway must be running!!!"
go get -u -v github.com/whyrusleeping/gx && go get -u -v github.com/whyrusleeping/gx-go
go get -v -u -d github.com/ipfs/go-ipfs && cd $GOPATH/src/github.com/ipfs/go-ipfs
ln -sf $GOPATH/bin/gx $(grep gx_bin= Makefile | cut -d'=' -f2)
ln -sf $GOPATH/bin/gx-go $(grep gx-go_bin= Makefile | cut -d'=' -f2)
export IPFS_API=localhost:8080
make install
@loadletter
loadletter / Nyaa_Magnet_Links.user.js
Last active July 22, 2016 12:55
Improved nyaa.se magnetlink-adding userscript
@loadletter
loadletter / addons.txt
Created June 15, 2016 20:53
Firefox addons
BehindTheOverlay
Classic Theme Restorer
Decentaleyes
Session Manager
Greasemonkey
Image Search Options
Open Image In New Tab
Open Link in Silent Tab
Passive Cache
uBlock Origin
@loadletter
loadletter / hostsgen.py
Created November 16, 2015 10:57 — forked from anonymous/hostsgen.py
Quick and dirty hostsfile generator from multiple host sources
import urllib2
import socket
import sys
from StringIO import StringIO
import gzip
SINKHOLE = '127.0.0.1'
SOURCES =\
(
"http://adaway.org/hosts.txt",
@loadletter
loadletter / a.md
Last active September 23, 2015 10:04
Fix urlbar completion not working on firefox with sync enabled, aka corrupt places.sqlite
  1. close firefox
  2. backup and delete all files starting with places.sqlite from firefox's directory
  3. restart firefox and go to about:config
  4. set services.sync.history.lastSync to 0
  5. sync now
  6. wait for all history to be redownloaded
// ==UserScript==
// @name Block youtube users
// @namespace #perunaonparas
// @include *youtube.com/*
// @exclude *my_videos*
// @grant GM_getValue
// @grant GM_setValue
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @version 2.992
[ImageSearchOptions]
Google image search|0|1|http://www.google.com/favicon.ico;;;1|1|1|1;;;0;;;http://www.google.com/searchbyimage;;;image_url=::$URL::;;;?|&;;;0;;;http://www.google.com/searchbyimage/upload;;;encoded_image=::$IMGDATA::;;;?|&;;;1
Regex Search|0|1|chrome://ImageSearchOptions/content/images/Regex.png;;;0|1|0|1;;;9;;;http://regex.info/exif.cgi;;;url=::$LURL::;;;?|&;;;0;;;http://regex.info/exif.cgi;;;url=::$URL::;;;?|&;;;0
Yandex Search|0|1|chrome://ImageSearchOptions/content/images/Yandex.png;;;0|1|0|1;;;7;;;http://images.yandex.ru/yandsearch;;;rpt=imagedups|img_url=::$URL::;;;?|&;;;0;;;http://images.yandex.ru/yandsearch;;;rpt=imagedups|img_url=::$URL::;;;?|&;;;0
TinEye Search|0|1|chrome://ImageSearchOptions/content/images/TinEye.png;;;0|1|1|1;;;3;;;http://www.tineye.com/search/;;;url=::$URL::;;;?|&;;;0;;;http://www.tineye.com/search/;;;image=::$IMGDATA::;;;?|&;;;1
IQDB Search|0|1|chrome://ImageSearchOptions/content/images/IQDB.png;;;0|1|1|1;;;2;;;http://iqdb.org;;;url=::$URL::;;;?|&;;;0;;;http:/
@loadletter
loadletter / readme.txt
Last active October 31, 2019 01:24
Firefox about:config prefs
#horrible chromeshit
browser.tabs.onTop = false
#disable bloat
webgl.disabled = true
media.peerconnection.enabled = false
dom.battery.enabled = false
#should improve performance
network.http.pipelining = true