Skip to content

Instantly share code, notes, and snippets.

@kerupani129s
Last active March 15, 2019 01:48
Show Gist options
  • Save kerupani129s/1099e380021318084a8589c21eae5876 to your computer and use it in GitHub Desktop.
Save kerupani129s/1099e380021318084a8589c21eae5876 to your computer and use it in GitHub Desktop.
ブックマークレット: WEB サイト左右反転

ブックマークレット: WEB サイト左右反転

動作環境

  • Chrome
  • Firefox
  • Edge

使い方

一度起動すると WEB サイトを左右反転、もう一度起動すると元に戻る。

(() => {
document.body.style.transform = window.BOOKMARKLET_TOOL_MIRROR ? '' : 'scale(-1,1)';
window.BOOKMARKLET_TOOL_MIRROR = ! window.BOOKMARKLET_TOOL_MIRROR;
})();
javascript:(()=>{document.body.style.transform=window.BOOKMARKLET_TOOL_MIRROR?'':'scale(-1,1)';window.BOOKMARKLET_TOOL_MIRROR=!window.BOOKMARKLET_TOOL_MIRROR;})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment