Skip to content

Instantly share code, notes, and snippets.

View HorridModz's full-sized avatar

HorridModz HorridModz

View GitHub Profile
@HorridModz
HorridModz / switch_google_account_bookmarklet.js
Last active September 21, 2024 20:16
Bookmarklet - Google Switch Account And Redirect
javascript:/*
If you've ever tried to open a google service's website and had it restricted (no access, account blocked from service, unavailable under 18, etc.), but it's because it automatically opened with your default account and not the one you want, this bookmarklet is an easy way to solve the problem. It will open Google's "Choose an account" dialog, allowing you to select your desired account, and then open your google site with that account selected.
Thanks to https://stackoverflow.com/a/76933666 for the trick; code is by me
Full code (doesn't work as bookmarklet):
function bookmarklet() {
var site = window.prompt("Link to desired site");
if (site == null) {
return;
@HorridModz
HorridModz / ZipStrings.cs
Last active June 18, 2024 23:14
Simple little extension method / wrapper to support Zip() function on strings
using System.Linq;
using System.Collections;
using System.Collections.Generic;
static class ZipStringExtension
{
public static IEnumerable<List<char>> Zip(this string str1, string str2)
{
/* Zips two strings together, so that they may be iterated over.
* Wrapper for Enumerable.Zip() method; convenient because it converts strings to lists and specifies to return zipped element as an
@HorridModz
HorridModz / youtubeopenshortasvideo.js
Created October 26, 2023 00:33
Youtube Open Short As Video Bookmarklet
// Hate youtube shorts? Me too. Use this bookmarklet to open them as videos.
// Click it while on a youtube short, and it will open it as a video.
// Don't know what bookmarklets are? https://www.freecodecamp.org/news/what-are-bookmarklets/
javascript:window.location=window.location.href.replace("/shorts/","/watch?v=");
@HorridModz
HorridModz / webcatalog-unlimited-apps.md
Last active March 14, 2025 19:25
WebCatalog Unlimited Apps Crack

WebCatalog is a tool to easily create desktop apps from websites. It's an awesome tool, but the free version (Basic account) limits you to 5 apps.

webcatalog5applimitation

However, I came up with a simple workaround to trick WebCatalog into letting you install as many apps as you want:

All WebCatalog apps are stored at %LocalAppData%\Programs\WebCatalogApps. On startup, WebCatalog makes a list of your installed apps by looking at this folder. If we make it so WebCatalog cannot find this folder, it won't think we have any apps installed, and it will let us install more.