Skip to content

Instantly share code, notes, and snippets.

@Greenscreener
Greenscreener / duotrigordle-tab.user.js
Last active October 6, 2026 20:52
Duotrigordle userscript to use Tab and Shift+Tab to go to the next/previous word.
// ==UserScript==
// @name Duotrigordle Tab to next
// @namespace http://tampermonkey.net/
// @version 2026-10-06
// @description Use Tab and Shift+Tab to go to the next/previous word.
// @author Greenscreener
// @match https://duotrigordle.com/game/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=duotrigordle.com
// @grant none
// @downloadURL https://gist.github.com/Greenscreener/f8f07e9dd3a165e2d7cbe6545a3f9441/raw/duotrigordle-tab.user.js
import requests
import sys
import re
import urllib.parse
link = sys.argv[1]
link = urllib.parse.urlparse(link)
key = link.path.split("/")[-1]
host = urllib.parse.urlunparse((link.scheme, link.netloc, "", "", "", ""))
function avgvar(str) {
return str.replaceAll(",",".").split(":").map(e => parseFloat(e))
}
function anketatoarray() {
let ucitel = "";
const list = [];
for (let tr of document.querySelectorAll("#content > .tab1 tr")) {
if (tr.children[0].innerText.trim() === "") continue;
else if (tr.children.length === 1) {
ucitel = tr.children[0].innerText.trim();
// ==UserScript==
// @name SIS force auth
// @namespace http://grsc.cz/
// @version 2024-08-28
// @description SIS force auth from cookie
// @author Greenscreener
// @match https://is.cuni.cz/studium/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=cuni.cz
// @grant none
// ==/UserScript==
@Greenscreener
Greenscreener / average-calculator.py
Last active December 2, 2024 16:03
Just paste the JS file into your console while having your "exam results" window open and then run the python script on the resulting JSON
import json
subjects = json.load(open("znamky.json"))
subjects = [subject for subject in subjects if subject["finished"]]
subjects = [
{**subject, "marked_attempts": [attempt for attempt in subject["attempts"] if attempt["outcome"].isnumeric()]}
for subject in subjects
]
subjects = [
@Greenscreener
Greenscreener / ENOWARS let there be light.js
Created July 22, 2023 10:36
ENOWARS let there be light Tampermonkey script
// ==UserScript==
// @name ENOWARS let there be light
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://7.enowars.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=enowars.com
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Turn off flicker for ECSC Bootcamp
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Stoopid
// @author Me
// @match https://ctf.ecsc2023.eu/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=ecsc2023.eu
// @grant none
// ==/UserScript==
@Greenscreener
Greenscreener / 12to24.user.js
Last active July 23, 2025 22:13
Convert all elements with 12-hour time to 24-hour automatically (for WhatsApp Web, but could be adapted easily)
// ==UserScript==
// @name WAWeb 24-hourifier
// @version 0.10
// @description Convert all elements with 12-hour time to 24-hour automatically (for WhatsApp Web, but could be adapted easily)
// @author Greenscreener
// @homepage https://grsc.cz/
// @match https://web.whatsapp.com/*
// @grant none
// @downloadURL https://gist.githubusercontent.com/Greenscreener/4422f5be36752bc720cbc7222fb73cdc/raw/12to24.user.js
// @updateURL https://gist.githubusercontent.com/Greenscreener/4422f5be36752bc720cbc7222fb73cdc/raw/12to24.user.js
# Each time you put something into your clipboard, it gets appended to a file
wat2=$(xclip -o); while true; do wat=$(xclip -o); if [ "$wat" != "$wat2" ]; then echo $wat >> wat.txt; echo $wat; fi; wat2=$(xclip -o); sleep 0.2; done

Keybase proof

I hereby claim:

  • I am greenscreener on github.
  • I am greenscreener (https://keybase.io/greenscreener) on keybase.
  • I have a public key ASBYeLl4VLpWHkqhZrk4H8M5sUkdV3I9isPxE1-LUy9kJAo To claim this, I am signing this object:
{
    "body":{
        "key":{