Skip to content

Instantly share code, notes, and snippets.

@exo-pla-net
exo-pla-net / invisible_watermark_maker_and_extractor.py
Created August 31, 2022 00:11
Hide any python object in an image as an invisible watermark. Retrieve it later!
# This code will hide *any* python object into an image as an invisible watermark.
# The object can be retrieved, and it will be fully intact and operational.
#
# Want to watermark your Stable Diffusion images, so you'll always remember the seed and other params you used to make them?
# This will do it.
#
# Limitations:
#
# The watermark will probably break, if the image is altered.
# Every three pixels can hide one byte. (A 500 x 500 image can hide ~250 kB)
@exo-pla-net
exo-pla-net / youtube_subscription_sorter.js
Created December 5, 2022 19:01
Tampermonkey: Sort your YouTube channel subscriptions by fresh content (blue dot)
// This script sorts your YouTube subscriptions by whether or not they have unwatched new videos (as indicated by blue dots).
// Now you can more conveniently choose which channel with fresh content you want to watch!
// This sorting applies to the left menu list of Subscriptions on any YouTube page.
// ==UserScript==
// @name Youtube Subscription Sorter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description sorts subscriptions by whether or not they have unwatched new videos
// @author exo-pla-net
@exo-pla-net
exo-pla-net / never_login_to_reddit.js
Last active December 6, 2022 02:28
Tampermonkey: Never Login to Reddit
// Want to browse reddit but never make a reddit account?
// Sick of reddit trying to force you to login to see NSFW content?
// This script will let you browse reddit as you please, and whenever you
// encounter a page demanding your to login, it will automatically swap your page to the
// old.reddit.com version, which doesn't force a login.
// ==UserScript==
// @name Anti-reddit login
// @namespace http://tampermonkey.net/
// @version 0.1