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
| (() => { | |
| const KEY = "__docShiftPlusFooter__"; | |
| const SHIFT_PX = 15; | |
| const HEIGHT_ADD = 30; | |
| const FONT_SCALE = 1.2; | |
| const START_DELAY_MS = 5000; | |
| const RESTORE_DELAY_MS = 2000; | |
| // --- Undo / Restore --- | |
| if (window[KEY]?.active) { |
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
| /* ──────────────────────────────────────────────── | |
| AUTOHIDE URL BAR + BOOKMARKS BAR (FULLSCREEN ONLY) | |
| ──────────────────────────────────────────────── */ | |
| /* Default fullscreen cleanup: hide everything but tabs */ | |
| :root[inFullscreen="true"] #navigator-toolbox > *:not(#TabsToolbar) { | |
| max-height: 0 !important; | |
| min-height: 0 !important; | |
| opacity: 0 !important; | |
| overflow: hidden !important; |
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
| ---------------------------------------------------------------------- | |
| -- 🚫 Block macOS menubar reveal in fullscreen by redirecting mouse | |
| ---------------------------------------------------------------------- | |
| local BLOCK_HEIGHT = 5 -- pixels from top edge | |
| local blockMenubar = true | |
| local checkInterval = 0.02 -- seconds (~50 Hz) | |
| local function blockMenu() | |
| if not blockMenubar then return end |
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
| // use site to convert to bookmarklet for mobile devices | |
| // https://infocatcher.github.io/Bookmarklets/scriptToBookmarklet.html | |
| (() => { | |
| // === LocalStorage helpers === | |
| const STORAGE_KEY = 'crd_layout_settings'; | |
| function loadSettings() { | |
| try { |
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
| tell application "System Events" | |
| tell application processes | |
| repeat with proc in it | |
| try | |
| repeat with w in windows of proc | |
| set position of w to {0, 0} | |
| end repeat | |
| end try | |
| end repeat | |
| end tell |
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
| #!/bin/bash | |
| # brew install displayplacer | |
| # To generate the config below | |
| # displayplacer list | awk '/^displayplacer /{p=1} p' | |
| # How to run | |
| # ~/displayplacer_local.sh |
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
| #!/bin/bash | |
| # brew install displayplacer | |
| # To generate the config below | |
| # displayplacer list | awk '/^displayplacer /{p=1} p' | |
| # How to run | |
| # ~/displayplacer_remote.sh |
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
| // pre-reqs - homebrew, displayplacer | |
| // brew install displayplacer | |
| // | |
| // How To Run | |
| // osascript -l JavaScript ~/move_to_three_monitors.jxa | |
| ObjC.import('stdlib') | |
| const se = Application('System Events') | |
| const app = Application.currentApplication() |
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
| // References | |
| // https://forum.vivaldi.net/topic/10549/modding-vivaldi?page=1 | |
| // https://forum.vivaldi.net/topic/33122/custom-keyboard-shortcuts-mod | |
| // vivaldi://experiments | |
| // Enable "Allow for using CSS modifications". | |
| // Restart vivaldi | |
| // mod /Applications/Vivaldi.app/Contents/Frameworks/Vivaldi\ Framework.framework/Versions/[current version]/Resources/vivaldi/window.html | |
| // insert inside body tag |
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
| javascript:(function() { | |
| var manifestContent = { | |
| "name": "YouTube PWA", | |
| "short_name": "YouTube PWA", | |
| "start_url": "/", | |
| "display": "fullscreen", | |
| "background_color": "#000000", | |
| "theme_color": "#FF0000", | |
| "orientation": "landscape-primary", | |
| }; |
NewerOlder