Skip to content

Instantly share code, notes, and snippets.

View TeriFash's full-sized avatar
⚒️
Working hard

Teri TeriFash

⚒️
Working hard
View GitHub Profile
/**
* GM Wrapper for Backward Compatibility
*
* This script provides a bridge for legacy `GM_*` API calls to use the modern `GM.*` API introduced in
* newer userscript managers. It ensures backward compatibility for older scripts without requiring modifications.
*
* The wrapper is lightweight, modular, and maintains error-handling integrity.
*
* Supported Legacy Methods:
* - GM_addStyle
@TeriFash
TeriFash / atomicgmsetvalue.js
Created April 22, 2025 08:19 — forked from vjancik/atomicgmsetvalue.js
Atomic cross-origin access to GM_(set/get)value
// ==UserScript==
// @name Cross-origin atomic GM_(get/set)Value access
// @namespace http://tampermonkey.net/
// @version 0.1
// @description shows how to use babel compiler
// @author You
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/7.21.2/babel.min.js
// @require https://cdn.jsdelivr.net/npm/bowser@2/es5.min.js
// @icon <$ICON$>
// @run-at document-idle
@TeriFash
TeriFash / css-ios-pwa-viewport.css
Created January 26, 2022 17:29 — forked from cvan/css-ios-pwa-viewport.css
CSS for env(safe-area-inset-top) for iOS "Add to Homescreen" / PWA; standalone styles
@supports (padding-top: constant(safe-area-inset-top)) {
body {
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
}
@media (display-mode: fullscreen) {
body {
padding: 0;
}