Skip to content

Instantly share code, notes, and snippets.

@Rouhollah
Created December 12, 2023 08:41
Show Gist options
  • Save Rouhollah/e3b0a8036f3e1244860b089bcd66d22e to your computer and use it in GitHub Desktop.
Save Rouhollah/e3b0a8036f3e1244860b089bcd66d22e to your computer and use it in GitHub Desktop.
RTL or LTR for chatGPT site
javascript:(function() { [...document.querySelectorAll("pre")].forEach(ele => ele.style.direction = 'ltr'); [...document.querySelectorAll("p")].forEach(ele => ele.style.direction = ele.style.direction === 'ltr' ? 'rtl' : 'ltr'); })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment