Skip to content

Instantly share code, notes, and snippets.

@TheEnigmaBlade
TheEnigmaBlade / mal-soulmate-finder.py
Created December 31, 2015 22:48
MAL soulmate finde. For posts in /r/anime or similar subreddits.
#!/usr/bin/env python3
##########
# Config #
##########
# Dependencies: requests, praw 3, beautiful soup 4
# Required config info:
# - A Reddit post
# - Reddit username and password
a[href="#no"]:before {
content: "AGAINST";
color: red;
padding: 0 3px;
margin: 0px 5px 3px 0px;
border: 1px solid red;
font-size: x-small;
font-weight: bold;
border-radius: 3px;
box-shadow: 1px 1px 2px #888;
---
title+body (regex, includes): '(.*[\u0600-\u06FF\u0750-\u077F\uFB50-\uFDFF\uFE70-\uFEFF\u08A0-\u08FF\u0E80-\u0EFF\u0F00-\u0FFF\u20D0-\u20DC\u20E1\u20E5-\u20E6\u20EB-\u20EF\u0345\u05B0-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u0657\u0659-\u065F\u0670\u06D6-\u06DC\u06E1-\u06E4\u06E7-\u06E8\u06ED\u0711\u0730-\u073F\u07A6-\u07B0\u0816-\u0817\u081B-\u0823\u0825-\u0827\u0829-\u082C\u08E4-\u08E9\u08F0-\u08FE\u0900-\u0902\u093A\u0941-\u0948\u0955-\u0957\u0962-\u0963\u0981\u09C1-\u09C4\u09E2-\u09E3\u0A01-\u0A02\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4C\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0AC1-\u0AC5\u0AC7-\u0AC8\u0AE2-\u0AE3\u0B01\u0B3F\u0B41-\u0B44\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4C\u0C55-\u0C56\u0C62-\u0C63\u0CBF\u0CC6\u0CCC\u0CE2-\u0CE3\u0D41-\u0D44\u0D62-\u0D63\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E4D\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0ECD\u0F71-\u0F7E\u0F80-\u0F81\u0F8D-\u0F97\u0F99-\u0FBC\u102D-\u1030\u1032-\u1036\u103D-\u103E\u1058-\u1059\u105
.side .md > ol:first-child {
left: 350px;
list-style: none outside none;
margin: 0;
padding: 0;
position: absolute;
top: 23px;
z-index: 200;
}
#!/usr/bin/env python3
######################
# User configuration #
######################
username = ""
password = ""
subreddit = ""
function unread_thing(e) {
var t = $(e);
t.hasClass("thing") || (t = t.thing()),
alterUnreadCount(1),
$(t).addClass("new unread")
}
function alterUnreadCount(e) {
var t = $(".message-count");
t.length > 0 && t.text(parseInt(t.text(), 10) + e)
/* Style updated: Tue, 18 Jun 2013 09:08:20 -0400 */
/** Light Theme **/
/* Body */
body {
background-color: #F6F6F6;
font: normal x-small verdana,arial,helvetica,sans-serif;
width: 100%;
}
a {
color: #257372;
@TheEnigmaBlade
TheEnigmaBlade / Combined (posts and comments using same reasons).css
Last active August 29, 2015 14:06
Custom report reasons, with two different versions: post and comment reasons combined or separate
/* Remove default reason */
.report-form li:not(:last-child) label { /* For users */
font-size: 0;
}
.report-reasons li.report-reason[title="spam"], /* For mods */
.report-reasons li.report-reason[title="vote manipulation"],
.report-reasons li.report-reason[title="personal information"],
.report-reasons li.report-reason[title="sexualizing minors"],
package net.enigmablade.x.randimage;
import java.awt.*;
import java.awt.image.*;
import java.util.*;
import javax.swing.*;
public class ImageReplicator
{
private static Random rand;
@TheEnigmaBlade
TheEnigmaBlade / gist:9f8b449ab8e2fd9ac67c
Created May 24, 2014 06:09
Subreddit announcements
.side .md > ol {
left: 350px;
list-style: none outside none;
margin: 0;
padding: 0;
position: absolute;
top: 23px;
z-index: 200;
}