Skip to content

Instantly share code, notes, and snippets.

@EthraZa
Created October 18, 2022 14:35
Show Gist options
  • Save EthraZa/6ad6f7038fa8bd5845617c4bbc939e01 to your computer and use it in GitHub Desktop.
Save EthraZa/6ad6f7038fa8bd5845617c4bbc939e01 to your computer and use it in GitHub Desktop.
Adminer SQL Edit Fullscreen Bookmarklet - https://bookmarkify.it/53844
/**
:: Adminer.org SQL Edit Fullscreen Bookmarklet ::
Add to your bookmarks using: https://bookmarkify.it/53844
How to: Click the bookmark when editing a SQL command in Adminer. Press ESC to exit fullscreen.
*/
var s = document.getElementsByClassName('sqlarea')[0];
if (s) {
s.style.backgroundColor = window.getComputedStyle(document.body, null).getPropertyValue('background-color');
s.requestFullscreen();
}
@EthraZa
Copy link
Author

EthraZa commented Oct 18, 2022

Bookmarklet:
javascript:(function(){window.s0=document.createElement('script');window.s0.setAttribute('type','text/javascript');window.s0.setAttribute('src','https://bookmarkify.it/bookmarklets/53844/raw');document.getElementsByTagName('body')[0].appendChild(window.s0);})();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment