Last active
September 1, 2025 10:42
-
-
Save giladbarnea/302893ad36e9c2c81958543f61ffcf17 to your computer and use it in GitHub Desktop.
all tampermonkey scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Google AI Studio: Full-width reasoning | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2024-09-24 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://aistudio.google.com/* | |
| // @icon https://www.gstatic.com/aistudio/watermark/watermark.png | |
| // @grant none | |
| // ==/UserScript== | |
| const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); | |
| const loop = async() => { | |
| while(true){ | |
| const thoughtElements = [...document.getElementsByClassName('thought-container')]; | |
| if (thoughtElements.length) { | |
| thoughtElements.forEach(thoughtElement => { | |
| thoughtElement.style['maxWidth'] = '100%'; | |
| }); | |
| } | |
| await sleep(100); | |
| } | |
| } | |
| (async function() { | |
| await loop(); | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Google Forms RTL | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2024-11-27 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://docs.google.com/forms/d* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=google.com | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| function containsHebrew(text) { | |
| // Hebrew Unicode range: \u0590-\u05F | |
| return /[\u0590-\u05FF]/.test(text); | |
| } | |
| function setRtlForHebrewInputs() { | |
| // Select both input elements and editable divs | |
| const inputs = document.querySelectorAll('input[type="text"], div[contenteditable="true"][g_editable="true"]'); | |
| inputs.forEach(element => { | |
| // For regular inputs, check value | |
| // For contenteditable divs, check textContent | |
| const content = element.tagName === 'INPUT' ? element.value : element.textContent; | |
| if (containsHebrew(content)) { | |
| element.setAttribute('dir', 'rtl'); | |
| // element.style.direction = 'rtl'; | |
| // element.style.textAlign = 'right'; | |
| } | |
| }); | |
| } | |
| // Run on page load | |
| document.addEventListener('DOMContentLoaded', setRtlForHebrewInputs); | |
| // Also run periodically to catch dynamically added elements | |
| setInterval(setRtlForHebrewInputs, 1000); | |
| // Optional: Run when content changes | |
| /* | |
| document.addEventListener('input', function(e) { | |
| if (e.target.matches('input[type="text"], div[contenteditable="true"][g_editable="true"]')) { | |
| const content = e.target.tagName === 'INPUT' ? e.target.value : e.target.textContent; | |
| if (containsHebrew(content)) { | |
| e.setAttribute('dir', 'rtl'); | |
| // e.target.style.direction = 'rtl'; | |
| // e.target.style.textAlign = 'right'; | |
| } | |
| } | |
| }); | |
| */ | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment