Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name blockly
// @namespace Mohan Scripts
// @match https://groklearning.com/blockly/frame.html
// @grant none
// @version 1.0
// @author -
// @description 24/08/2025, 6:29:49 pm
// @inject-into page
// ==/UserScript==

Cookie clicker

HTML

HTML Elements

A tag has a name and attributes

import android.net.nsd.NsdManager
import android.net.nsd.NsdServiceInfo
import android.os.Build
import androidx.annotation.RequiresApi
import kotlinx.coroutines.suspendCancellableCoroutine
import java.util.concurrent.Executor
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
// ... other code ...
substitutions:
TARGET_TEMP_C: "42.0"
TEMP_TOL_C: "1.0"
MIN_RUN_S: "8"
MAX_RUN_S: "180"
HOLD_OFF_S: "20"
ADAPT_ALPHA: "0.2"
INCREMENT_S: "5"
K_IDLE_S_PER_MIN: "0.1"
PREHEAT_WINDOW_S: "90"

My chromecast google tv recently updated to Android 14 from Android 12.

Unforuntately, usb debugging no longer works (port 5555)

Real drama for my remote on Home Assistant.

Temporarily, I connected by PC to chromecast using "Pairing with wifi" procedure. Important thing with this procedure is that the port you use for pairing NOT EQUAL connect port NOT EQUAL 5555

For me it was