Quizlet RTL fix hebrew

Fix hebrew on Quizlet

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Quizlet RTL fix hebrew
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Fix hebrew on Quizlet
// @author       You
// @match        http://tampermonkey.net/index.php?version=4.3.6&ext=dhdg&updated=true#features
// @grant        none
// @include      https://quizlet.com/*
// ==/UserScript==

// Your code here...
var d1 = document.getElementsByClassName("CardsItemInner-cell");
var arrayLength = d1.length;
for (var i = 0; i < arrayLength; i++) {
    d1[i].dir="auto";
}

var d2 = document.getElementsByClassName("CardsItemInner-cell image-adjacent");
var arrayLength = d2.length;
for (var i = 0; i < arrayLength; i++) {
    d2[i].dir="auto";
}

var d3 = document.getElementsByClassName("TestModeSection-questions");
var arrayLength = d3.length;
for (var i = 0; i < arrayLength; i++) {
    d3[i].dir="rtl";
}

var d4 = document.getElementsByClassName("UIRadio-fauxInput");
var arrayLength = d4.length;
for (var i = 0; i < arrayLength; i++) {
    d4[i].style.float="right";
}