Skip to content

Instantly share code, notes, and snippets.

https://github.com/pineappleEA/pineapple-src/releases/download/EA-4176/Linux-Yuzu-EA-4176.AppImage
https://github.com/pineappleEA/pineapple-src/releases/download/EA-4175/Linux-Yuzu-EA-4175.AppImage
https://github.com/pineappleEA/pineapple-src/releases/download/EA-4174/Linux-Yuzu-EA-4174.AppImage
https://github.com/pineappleEA/pineapple-src/releases/download/EA-4173/Linux-Yuzu-EA-4173.AppImage
https://github.com/pineappleEA/pineapple-src/releases/download/EA-4172/Linux-Yuzu-EA-4172.AppImage
https://github.com/pineappleEA/pineapple-src/releases/download/EA-4171/Linux-Yuzu-EA-4171.AppImage
https://github.com/pineappleEA/pineapple-src/releases/download/EA-4170/Linux-Yuzu-EA-4170.AppImage
https://github.com/pineappleEA/pineapple-src/releases/download/EA-4169/Linux-Yuzu-EA-4169.AppImage
https://github.com/pineappleEA/pineapple-src/releases/download/EA-4168/Linux-Yuzu-EA-4168.AppImage
https://github.com/pineappleEA/pineapple-src/releases/download/EA-4167/Linux-Yuzu-EA-4167.AppImage
# Create a temporary directory if it doesn't exist
$tempDirectory = "C:\Temp"
if (-not (Test-Path $tempDirectory -PathType Container)) {
New-Item -ItemType Directory -Path $tempDirectory -Force
}
# Step 0: Backup Arc:
Write-Host "Backing up arc..."
& "C:\Program Files\7-Zip\7z.exe" a -t7z "c:\Temp\arcBackup.7z" "c:\arcBrowser\*" -mx=4
@trumad
trumad / googleLinks.boost.js
Created February 7, 2024 09:32
Arc Boost - Google Links
@trumad
trumad / deletePlaydateGames.js
Created June 16, 2023 13:08
Deletes all games at play.date/sideload
// ==UserScript==
// @name Delete all playdate games
// @namespace http://tampermonkey.net/
// @version 0.1
// @description deletes all playdate games at play.date/sideload
// @author trumad
// @match https://play.date/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=play.date
// @grant none
// ==/UserScript==
@trumad
trumad / autoblock promoted tweeters script (arc boost).js
Created June 13, 2023 19:24
This script autoblocks accounts which post any sponsored tweets, hopefully before you even see them. Use the autoscroll checkbox to let it scroll replies on a popular tweet, to hoover up accounts who sponsor.
// Boost by Thanael - thannymack.com
// Created as a boost for Arc browser
// Could easily be ported to a tampermonkey script
// This script autoblocks accounts which post any sponsored tweets, hopefully before you even see them
// Use the autoscroll checkbox to let it scroll replies on a popular tweet, to hoover up accounts who sponsor.
if (!localStorage.userWantsPromotersBlocked){
localStorage.userWantsPromotersBlocked = true;
}
@trumad
trumad / tiddlersMonkees.json
Created February 5, 2023 10:07
Scans a linux directory, subdirectories & files, and creates a tiddlywiki. Each folder & file becomes a hyperlinked tiddler. Makes it easy to browse and search a file system, and share the listings with others.
This file has been truncated, but you can view the full file.
[{"title": "mnt/big/monkees", "created": "20230205095900086090", "modified": "20230205095900086090", "tags": "folder", "text": "/ [[mnt|mnt]] / [[big|mnt/big]]\n\n* \ud83d\udcc2 [[CD-Rom|mnt/big/monkees/CD-Rom]]\n* \ud83d\udcc2 [[Comics|mnt/big/monkees/Comics]]\n* \ud83d\udcc2 [[Magazines|mnt/big/monkees/Magazines]]\n* \ud83d\udcc2 [[Movies|mnt/big/monkees/Movies]]\n* \ud83d\udcc2 [[Music|mnt/big/monkees/Music]]\n* \ud83d\udcc2 [[Radio|mnt/big/monkees/Radio]]\n* \ud83d\udcc2 [[TV|mnt/big/monkees/TV]]\n* \ud83d\udcc2 [[Trading Cards|mnt/big/monkees/Trading Cards]]"}, {"title": "mnt/big/monkees/CD-Rom", "created": "20190907224911222063", "modified": "20190907224911222063", "tags": "folder", "text": "/ [[mnt|mnt]] / [[big|mnt/big]] / [[monkees|mnt/big/monkees]]\n\n* \ud83d\udcc2 [[Hey, Hey, We're The Monkees (Rhino CD-Rom 1996)|mnt/big/monkees/CD-Rom/Hey, Hey, We're The Monkees (Rhino CD-Rom 1996)]]"}, {"title": "mnt/big/monkees/Comics", "created": "20190907224918034838", "modified": "20190907224918034838", "tag
@trumad
trumad / delete all files from an archive.org item.js
Created November 1, 2022 22:11
JS to delete all files from an archive.org item
function searchText(elementType,text){
var xpath = `//${elementType}[contains(text(),'${text}')]`;
var matchingElement = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
return matchingElement;
}
function sleep(ms) { // usage: await sleep(4000)
return new Promise(resolve => setTimeout(resolve, ms));
}
@trumad
trumad / flickrDownloader.user.js
Created August 19, 2022 10:48
tampermonkey script to download photos from Flickr
// ==UserScript==
// @name Flickr Downloader
// @namespace https://github.com/f2face/flickr-dl.userscript
// @version 0.2.3
// @description A userscript for downloading Flickr photos.
// @author f2face / trumad
// @match https://www.flickr.com/*
// @include http://www.flickr.com/*
// @include https://www.flickr.com/*
// @grant unsafeWindow
@trumad
trumad / addElementHelperFunction.js
Last active October 5, 2022 08:56
A javascript helper function to add elements to the DOM
// Helper function to create new DOM elements, by thanael - thannymack.com
function addEl() {
function isElement(element) { // Check if something is a DOM element
// This function from https://stackoverflow.com/a/36894871
return element instanceof Element || element instanceof HTMLDocument;
}
// Defaults, if the user specifies nothing:
let el = document.body; // add our new element to the document.body by default
let tag = "div"; // add a DIV element by default
let attr = {}; // no attributes by default
@trumad
trumad / tradingViewMultipleWindows.py
Last active September 11, 2023 12:10
See multiple tradingview windows side by side, hopefully without ads and popups.
# First install webview:
# pip install pywebview
# Then create a config.json file in the same folder with the following options:
"""
{
"content":[
{
"exchange":"Bitstamp",
"ticker":"BTCUSD",