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
/** | |
* 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 |
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
// ==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 |
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
@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; | |
} |