Skip to content

Instantly share code, notes, and snippets.

View illixion's full-sized avatar
:shipit:

Ixion illixion

:shipit:
View GitHub Profile
@illixion
illixion / YouTube Disable Turbolinks.js
Created October 22, 2023 09:34
A userscript to disable YouTube's single-page app behavior, also known as turbolinks, to force full page reloads on navigation
import win32con
import win32api
import win32gui
import time
import socket
from openrgb import OpenRGBClient
from openrgb.utils import DeviceType
# While port 6742 is open
while True:
#!/usr/bin/python
# Finds any application that's stealing window focus and prints its name to the output
# Works on Windows 10/11
# Install requirements with: pip install win32gui
from win32gui import GetWindowText, GetForegroundWindow
import time
active_prev = ""
while True:
// ==UserScript==
// @name Twitter default Following tab
// @description Keep Following tab as your default tab
// @version 1.0
// @author Ixion (illixion.com)
// @downloadURL https://gist.github.com/illixion/229c6229bfed8af2d4cf1eabbf518d0d/raw/fa20182836b68c77640ed09f47e31f88f970f080/Twitter%2520default%2520Following%2520Tab.js
// @match https://twitter.com/home
// @match https://mobile.twitter.com/home
// ==/UserScript==
// ==UserScript==
// @name SS.com improver
// @description Makes ss.com bearable
// @match *://ss.com/*
// @match *://*.ss.com/*
// @match *://ss.lv/*
// @match *://*.ss.lv/*
// ==/UserScript==
function deleteElem(elem) {
@illixion
illixion / Fix YouTube back button.js
Last active May 23, 2021 09:42
Makes it so that the back button always works in YouTube polymer interface when using non-Chromium browsers. Without this userscript, the currently playing video reloads on pressing the back button.
// ==UserScript==
// @name Fix back button on YouTube
// @description Fixes the back button in YouTube Polymer for non-Chromium browsers
// @match https://*.youtube.com/*
// ==/UserScript==
globalThis.removeEventListener("popstate", getEventListeners(globalThis)["popstate"][0]["listener"])
document.body.addEventListener("yt-history-pop", () => window.location.href = document.location.href)
@illixion
illixion / ntdt.mod.gml
Created February 10, 2021 13:59
Nuclear Throne: send GET request upon death (API integration)
// This mod will send a web request when you die in-game.
// I've implemented an additional check for Chicken's passive ability, since there is seemingly no way to know when you /actually/ died.
// PLEASE NOTE: Nuclear Throne Together may be required, I have't checked.
// This mod is a derivative of https://github.com/Strangework/eott-ntt
#define init
// List of every mean motherfucker in this game
@illixion
illixion / unsansify_google_search_results.js
Last active February 2, 2021 20:42
Removes Google Sans from the search results page
// ==UserScript==
// @name UnSansify Google Search
// @namespace http://catto.io/
// @version 1.1
// @description Remove Google Sans font from the search results page
// @author Manual
// @match www.google.com/*
// @match google.com/*
// @grant GM_addStyle
// ==/UserScript==
# unlike.py
# Delete all likes from your Twitter account
# Requires a list of tweet IDs that you should be able to get from your Twitter data backup
from time import sleep
from timeit import default_timer as timer
import requests_oauthlib # install through pip
import pdb
import logging
import json
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>AutoMerge</key>
<true/>