Skip to content

Instantly share code, notes, and snippets.

View insanj's full-sized avatar
🎉
insanj.com

Julian Weiss insanj

🎉
insanj.com
View GitHub Profile
@insanj
insanj / game_microblog.html
Created April 1, 2023 23:58
game_microblog
<html>
<head>
<title>game_microblog from @insanj</title>
<link rel="icon" href="https://em-content.zobj.net/source/skype/289/video-game_1f3ae.png" />
<style>
html, body {
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background: #070918;
color: #ebffda;
@insanj
insanj / macos_window_to_0_0.scpt
Created March 20, 2023 21:22
AppleScript SystemEvents to move window position to 0,0 (see: https://stackoverflow.com/a/55270787/1258238)
delay 1
tell application "System Events" to tell window 1 of (process 1 where it is frontmost)
try
set position to {0, 0}
end try
end tell
@insanj
insanj / youtube_like_after_30_seconds.userscript.js
Last active December 1, 2023 05:54
youtube_like_after_30_seconds
// ==UserScript==
// @name youtube_like_after_30_seconds
// @namespace http://tampermonkey.net/
// @version 1.0.0
// @description like videos after 30 seconds
// @author github.com/insanj
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// @match *://*.youtube.com/*
// @run-at document-load
@insanj
insanj / instagram_checkmark.user.js
Created October 22, 2022 05:05
✅ Fun TamperMonkey Script To Give Yourself an Instagram Checkmark (Will Break)
// ==UserScript==
// @name instagram_checkmark
// @namespace https://github.com/insanj
// @version 1.0.0
// @description Fun TamperMonkey Script To Give Yourself an Instagram Checkmark (Will Break)
// @author Julian <@insanj> Weiss
// @match https://www.tampermonkey.net/scripts.php?version=4.18.0&ext=dhdg&updated=true
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant none
// @match *://instagram.com/*
@insanj
insanj / promises.js
Created October 26, 2020 15:30
fun with promises
function hello() {
return new Promise((resolve, reject) => {
const world = async function() {
return 'hello';
}
world().then(r =>
@insanj
insanj / instagram_batch_download.md
Last active May 15, 2020 20:41
📸 Download All Photos From A User's Instagram Page

📸 Download All Photos From A User's Instagram Page

NOTE: This documentation/tool is for personal backup use ONLY. This is intentionally NOT built to be a "once and done" script to prevent abuse of the Instagram terms.

  1. Go to an Instagram user's page and grab all URLs using the Javascript console. Try the following command:
Array.prototype.slice.call(document.getElementsByTagName("img")).map(e => e.getAttribute("src")).join("\n")
  1. Copy and paste all the URLs you want to backup into a text file, such as files.txt. Make sure all URLs begin with the right base (in this case, instagram.com).
@insanj
insanj / psp.md
Last active March 24, 2020 17:04
🩰 Hacking the PSP (SLIM 2000)

🩰 Hacking the PSP (SLIM 2000)

Running Custom Firmware

  1. We need to get to version 5.03 using a downgrader. This will vary depending on your starting version, I was on 6.x so I used the following program:
- 5.03 PSP Update
- http://www.mediafire.com/file/ynzy5ttnhgz/5.03_PSP_Update.rar/file
@insanj
insanj / ssid.md
Created March 23, 2020 18:21
😋 How to set Emojis as your Wifi SSID

😋 How to set Emojis as your Wifi SSID

Verizon Fios Router

Basic Wifi Settings

  1. Open the Firefox Developer Tools panel (right click anywhere and select "Inspect Element")
  2. Go to the Debugger tab in the Developer Tools panel
  3. Find and open the "ui.min.js" file, normally in the path: Main Thread > 192.168.1.1 > js > ui.min.js
  4. Click the "{}" or eyeball symbol, normally in the bottom left corner of the file, to make it easier to read
@insanj
insanj / hide_seen_youtube_videos.js
Last active December 5, 2019 18:34
Hide seen YouTube videos that are currently visible on screen (pretty printed to help browser debuggers)
for (const videoThumbnailThing of document.querySelectorAll("ytd-grid-video-renderer")) {
const videoThumbnailPlayback = videoThumbnailThing.querySelector("ytd-thumbnail-overlay-resume-playback-renderer");
if (videoThumbnailPlayback != null) {
videoThumbnailThing.style.display = "none";
}
}
@insanj
insanj / pride_compass_command.java
Created April 9, 2019 08:16
How to Change Where a Minecraft Player's Compass Points - 19w12b minecraft snapshot / fabric api
CommandRegistry.INSTANCE.register(false, serverCommandSourceCommandDispatcher -> serverCommandSourceCommandDispatcher.register(
ServerCommandManager.literal("compass")
.executes(context -> {
BlockPos pos = new BlockPos(x, y, z);
ServerPlayerEntity player = context.getSource().getPlayer();
PlayerSpawnPositionS2CPacket packet = new PlayerSpawnPositionS2CPacket(pos);
player.networkHandler.sendPacket(packet);
})
));