Skip to content

Instantly share code, notes, and snippets.

View Alexendoo's full-sized avatar

Alex Macleod Alexendoo

  • United Kingdom
  • 02:17 (UTC +01:00)
View GitHub Profile
import hexchat
__module_name__ = "Soft Ignore"
__module_version__ = "1.0"
__module_description = "Prevent certain nicks from showing as channel activity, create an ignore for soft:NICK"
def message_hook(word, word_eol, event_name):
ignores = hexchat.get_list("ignore")
mask = "soft:" + hexchat.strip(word[0], flags = 1)
// ==UserScript==
// @name TechSupportSr unbridger
// @match https://lounge.donjuanal.com/*
// @grant none
// @version 1.1
// @author Alex Macleod
// @description Unbridges bridged discord messages from TechSupportSr
// @run-at document-end
// ==/UserScript==
import hexchat
import re
from collections import defaultdict
__module_name__ = "TechSupportSr Unbridger"
__module_version__ = "1.3"
__module_description = "Convert bridged messages into normal ones"
# https://hexchat.readthedocs.io/en/latest/script_python.html
server {
listen 80;
listen [::]:80;
return 301 https://$host$request_uri;
}