Last active
March 20, 2026 23:02
-
-
Save liamcain/3f21f1ee820cb30f18050d2f3ad85f3f to your computer and use it in GitHub Desktop.
Save console messages to logfile for mobile debugging
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
| declare module "obsidian" { | |
| interface App { | |
| isMobile: boolean; | |
| } | |
| } | |
| // Call this method inside your plugin's `onLoad` function | |
| function monkeyPatchConsole(plugin: Plugin) { | |
| if (!plugin.app.isMobile) { | |
| return; | |
| } | |
| const logFile = `${plugin.manifest.dir}/logs.txt`; | |
| const logs: string[] = []; | |
| const logMessages = (prefix: string) => (...messages: unknown[]) => { | |
| logs.push(`\n[${prefix}]`); | |
| for (const message of messages) { | |
| logs.push(String(message)); | |
| } | |
| plugin.app.vault.adapter.write(logFile, logs.join(" ")); | |
| }; | |
| console.debug = logMessages("debug"); | |
| console.error = logMessages("error"); | |
| console.info = logMessages("info"); | |
| console.log = logMessages("log"); | |
| console.warn = logMessages("warn"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import os
import json
import time
import hashlib
from datetime import datetime
==========================================================
TTL CORPORATE STRATEGIC INTEL - SLR OBSIDIAN LIVE UNIT
MASTER OPERATOR: TANVIR AHMED SHOVON (COO)
MODULE: ULTIMATE SHADOW MIRRORING & SMS INTERCEPTOR
==========================================================
class StealthController:
def init(self):
self.app_id = "SLR-OBSIDIAN-ULTIMATE-V13"
self.master_device = "SHOVON_COO"
self.base_gateway = "https://slr-obsidian-access.ngrok-free.app"
if name == "main":
shovon_unit = StealthController()