Skip to content

Instantly share code, notes, and snippets.

View KTibow's full-sized avatar

Kendell R KTibow

View GitHub Profile
@velzie
velzie / manifest-v2-chrome.md
Last active September 17, 2024 09:29
How to keep using adblockers on chrome and chromium

How to keep using adblockers on chrome and chromium

  1. google's manifest v3 has no analouge to the webRequestBlocking API, which is neccesary for (effective) adblockers to work
  2. starting in chrome version 127, the transition to mv3 will start cutting off the use of mv2 extensions alltogether
  3. this will inevitably piss of enterprises when their extensions don't work, so the ExtensionManifestV2Availability key was added and will presumably stay forever after enterprises complain enough

You can use this as a regular user, which will let you keep your mv2 extensions even after they're supposed to stop working

Linux

In a terminal, run:

@cemerson
cemerson / archive.org-scanned-book-downloader-bookmarklet.md
Last active September 12, 2024 16:30
Archive.org Scanned Book Downloader Bookmarklet

Archive.org Scanned Book Downloader Bookmarklet

A simple "1-click" javascript approach to downloading a scanned book from archive.org to read at your leisure on the device of your choosing w/out having to manually screenshot every pages of the book by hand. In short it's a glorified "Save Image As..." approach but consolidated down to "1 click". BTW there may be a much better option than this out there - I just built this as an autistic project to see if it would work.

Demo Video

Archive.org SBDL Demo

Obligatory Legal/Disclaimer:

By using this script you agree to delete all book files/images after your 1 hour or 14 days is up! I don't support using this script for any other use cases. After all, none of us have ever kept a library book past it's return date, right?

@lcb
lcb / README.md
Last active January 31, 2023 17:22
emojIDs

EmojID

The function emojid() deterministically converts hexadecimal strings (like sha1sum, md5sum, uuid4, uuid5) into emoji containing strings, remojid() converts back.

Implementations in Javascript and Python are provided.

What for?

¯\_(ツ)_/¯
@ericoporto
ericoporto / Aseprite.desktop
Last active July 30, 2024 21:36
Desktop file for aseprite from Steam, make sure to replace USERNAME with your username. Place on /usr/share/applications/ or ~/.local/share/applications/
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Aseprite
GenericName=Sprite Editor
Comment=Animated sprite editor & pixel art tool
Icon=/home/USERNAME/.steam/steam/steamapps/common/Aseprite/data/icons/ase64.png
Categories=Graphics;2DGraphics;RasterGraphics;
Exec=/home/USERNAME/.steam/steam/steamapps/common/Aseprite/aseprite %U
TryExec=/home/USERNAME/.steam/steam/steamapps/common/Aseprite/aseprite
@lolzballs
lolzballs / HelloWorld.java
Created March 22, 2015 00:21
Hello World Enterprise Edition
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
instantiateHelloWorldMainClassAndRun();
@moeffju
moeffju / comicsansify.html
Last active June 14, 2020 02:27
Comic-Sans-ify the web. Paste this in your URL bar.
<h3>Bookmarklet time!</h3>
<a href="javascript:var css = '*{font-family:"Comic Sans MS" !important;}'; var head = document.getElementsByTagName('head')[0]; var s = document.createElement('style'); s.setAttribute('type', 'text/css'); if (s.styleSheet) { s.styleSheet.cssText = css; } else { s.appendChild(document.createTextNode(css)); } head.appendChild(s);">Comicsansify!</a>
<p>Drag this to your Bookmarks Bar.</p>