Skip to content

Instantly share code, notes, and snippets.

View DerGoogler's full-sized avatar
🍃
Busy.

Der_Googler DerGoogler

🍃
Busy.
View GitHub Profile
@DerGoogler
DerGoogler / shortcut-patch.js
Last active August 8, 2025 21:25
v2.0.6 – Adds the "Add to homescreen" option back to bindhosts. Create a file named `/data/adb/.config/bindhosts/js/body/shortcut-patch.js` with this content:
(function() {
// Prevent duplicate injection
if (document.getElementById('homescreen-shortcut-container')) return;
// i18n fallback
const i18n = {
'control_panel_create_shortcut': 'Add to homescreen',
'control_panel_exists_shortcut': 'Shortcut already exists',
'control_panel_shortcut_created': 'Added to homescreen!'
};
@DerGoogler
DerGoogler / test.js
Last active July 12, 2025 16:39
Proof of concept for JavaScript-to-Java/Kotlin reflection using the WXU Plugin for WebUI X
class JavaObject {
static {
this.reflect = global.require("wx:reflect");
this.proxyHandlers = new Map();
this.nextProxyId = 0;
}
constructor(className, args = []) {
if (className) {
this.classId = JavaObject.getClass(className);
@DerGoogler
DerGoogler / index.html
Last active June 27, 2025 19:06
WebUI X API to open files nativly
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Text File Viewer</title>
<style>
body {
font-family: sans-serif;
@DerGoogler
DerGoogler / WXEvent.js
Last active May 28, 2025 14:40
WebUI X Event Handler System and a Example for it
class CustomWXEvent extends CustomEvent {
get wxOrigin() {
return this._wxOrigin
}
set wxOrigin(value) {
this._wxOrigin = value
}
constructor(type, detail) {
super(type, {
@DerGoogler
DerGoogler / index.html
Created May 18, 2025 13:24
WebUI X Snake WebGPU
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no"
/>
<title>Snake Game</title>
<!-- Window Safe Area Insets -->
@DerGoogler
DerGoogler / index.html
Created May 11, 2025 15:49
WebUI X Audio Player Prototype.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>MMRL Audio Player</title>
<!-- Window Safe Area Insets -->
<link rel="stylesheet" type="text/css" href="https://mui.kernelsu.org/internal/insets.css" />
<!-- App Theme which the user has currently selected -->
<link rel="stylesheet" type="text/css" href="https://mui.kernelsu.org/internal/colors.css" />
@DerGoogler
DerGoogler / index.html
Last active May 9, 2025 21:25
WebUI X new experimental PackageManager API.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>App List</title>
<link rel="stylesheet" href="https://mui.kernelsu.org/internal/colors.css" />
<style>
body {
font-family: sans-serif;
@DerGoogler
DerGoogler / custom.css
Last active March 24, 2025 17:20
Custom theme for the Magiak Module "bindhosts". Only for main use in MMRL.
@import url("https://mui.kernelsu.org/mmrl/colors.css");
:root {
/* Background colors */
--bg-primary: var(--background);
--bg-secondary: var(--tonalSurface);
--bg-input: var(--surfaceBright);
/* Text colors */
--text-primary: var(--onSurface);
@DerGoogler
DerGoogler / README.md
Last active September 3, 2024 20:33
ModConf prototype for the livebootmagisk module

fallbackwidth and fallbackheight are empty when you run the config in the browser

Note

The current version is messy.

image

import React from "react";
import { Page, Toolbar, BottomToolbar, Ansi } from "@mmrl/ui";
import { ConfigProvider } from "@mmrl/providers";
import {
useConfig,
useActivity,
useNativeStorage,
useTheme
} from "@mmrl/hooks";
import { Add, Remove, Save } from "@mui/icons-material";