Skip to content

Instantly share code, notes, and snippets.

View brunolm's full-sized avatar
🏠
Working from home

BrunoLM brunolm

🏠
Working from home
View GitHub Profile
@brunolm
brunolm / google-photos-select-all.js
Created May 21, 2026 23:55
Google Photos bulk-select via DevTools
// Google Photos — bulk-select all photos by scrolling and clicking checkboxes.
//
// Usage:
// 1. Open https://photos.google.com in your browser.
// 2. Open DevTools (F12) and switch to the Console tab.
// 3. Paste this script and press Enter.
// 4. Wait for it to finish; verify the selection count in the toolbar.
// 5. Click the trash icon to delete (items go to Trash for 30 days).
//
// How it works:
@brunolm
brunolm / poetrade-autofill.userscript.js
Last active December 14, 2024 00:21
Path of Exile Trade Autofill
// ==UserScript==
// @name Path of Exile Trade Autofill
// @namespace http://tampermonkey.net/
// @version 2024-12-13
// @description Copy and item in-game (CTRL+C) and click the button to process clipboard text
// @author BrunoLM
// @match https://www.pathofexile.com/trade2/search/poe2/Standard
// @icon https://www.google.com/s2/favicons?sz=64&domain=pathofexile.com
// @grant none
// ==/UserScript==
@brunolm
brunolm / sudoku.html
Created December 3, 2024 22:34
Sudoku Solver
<div id="sudoku-solution"></div>
<canvas id="canvas" style="display: none;"></canvas>
<div id="blocks-container"></div>
<script src="https://cdn.jsdelivr.net/npm/tesseract.js@2.1.1/dist/tesseract.min.js"></script>
screenshot:<br />
<textarea>
const canvas = document.querySelector('#game canvas');
// Convert canvas to a Blob
canvas.toBlob(async (blob) => {
@brunolm
brunolm / block-ad-accounts-on-x.userscript.js
Created November 30, 2024 20:09
Block Ad accounts on X (Twitter) | UserScript | Tampermonkey
// ==UserScript==
// @name Block Ad accounts on X (Twitter)
// @namespace http://tampermonkey.net/
// @version 2024-11-30
// @description try to take over the world!
// @author You
// @match https://x.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=x.com
// @grant none
// ==/UserScript==