rtl-toggle detects and toggles the language direction ('rtl'/'ltr') of a site.
When you are developing for websites and applications that support languages that are written from right to left it's really helpful to visualize and toggle the language direction in the browser independently from the actual language that is being used.
HOW IT WORKS
The extensions does two things: Detects and toggles the direction of the website's language.
Detection:
When a new tab is loaded a script is checking the dir attribute of the tag element. If the attribute is set to 'rtl', the extension's badge text is also set to "RTL" indicating that the current website uses a language that is written from right to left.
Toggling:
When the user clicks the extension's icon, a script toggles (or adds it if not set) the value of dir attribute of the tag to one of the two values 'rtl'/'ltr'.