Skip to content

Instantly share code, notes, and snippets.

@clementmoine
Created March 5, 2026 08:34
Show Gist options
  • Select an option

  • Save clementmoine/058e7a78f57bb72cfdcbc16ebaa4a1e8 to your computer and use it in GitHub Desktop.

Select an option

Save clementmoine/058e7a78f57bb72cfdcbc16ebaa4a1e8 to your computer and use it in GitHub Desktop.
/* ============================================
Unit3D — RTL → LTR Override Stylesheet
Injecter via Stylus / Tampermonkey / uBlock
============================================ */
/* 1. Forçage global LTR */
*,
*::before,
*::after {
direction: ltr !important;
unicode-bidi: embed !important;
}
html,
body {
direction: ltr !important;
text-align: left !important;
}
/* 2. Attribut HTML dir="rtl" neutralisé */
[dir="rtl"] {
direction: ltr !important;
text-align: left !important;
}
/* 3. Classes RTL courantes dans Unit3D / Bootstrap */
.rtl,
.text-right,
[class*="rtl"] {
direction: ltr !important;
text-align: left !important;
}
/* 4. Navbar & header */
.navbar,
.navbar-nav,
.navbar-brand,
.top-nav,
.site-header {
direction: ltr !important;
flex-direction: row !important;
}
.navbar-nav {
padding-left: 0 !important;
padding-right: unset !important;
margin-left: auto !important;
margin-right: unset !important;
}
/* 5. Sidebar / panneau latéral */
.sidebar,
.sidebar-nav,
.panel,
.panel-body {
direction: ltr !important;
text-align: left !important;
float: left !important;
}
/* 6. Formulaires */
input,
textarea,
select,
.form-control,
.form-group label {
direction: ltr !important;
text-align: left !important;
}
/* 7. Tableaux (torrent list, peers, etc.) */
table,
thead,
tbody,
tr,
th,
td {
direction: ltr !important;
text-align: left !important;
}
/* 8. Icônes / boutons d'action (ne pas retourner les icônes) */
.fa,
.fas,
.far,
.fab,
.fal,
[class*="icon"] {
transform: none !important;
}
/* 9. Dropdowns & menus */
.dropdown-menu,
.dropdown-item {
direction: ltr !important;
text-align: left !important;
right: unset !important;
left: 0 !important;
}
/* 10. Torrent cards / listes */
.torrent-listing,
.torrent-search,
.torrent-card,
.forum-post,
.bbcode-content,
.topic-content,
.shoutbox {
direction: ltr !important;
text-align: left !important;
}
/* 11. Pagination */
.pagination {
direction: ltr !important;
justify-content: flex-start !important;
}
/* 12. Modals */
.modal,
.modal-dialog,
.modal-content,
.modal-header,
.modal-body,
.modal-footer {
direction: ltr !important;
text-align: left !important;
}
/* 13. Alerts / toasts */
.alert,
.toast {
direction: ltr !important;
text-align: left !important;
}
/* 14. Flex containers souvent inversés en RTL */
.d-flex,
.flex-row-reverse {
flex-direction: row !important;
}
/* 15. Float inversés */
.float-right { float: right !important; }
.float-left { float: left !important; }
/* 16. Margin / padding RTL (Bootstrap 5 utilise ms/me) */
[class*="ms-"] { margin-left: revert !important; }
[class*="me-"] { margin-right: revert !important; }
[class*="ps-"] { padding-left: revert !important; }
[class*="pe-"] { padding-right: revert !important; }
/* 17. Scrollbar — repositionnée à droite */
* {
scrollbar-width: thin;
}
::-webkit-scrollbar {
width: 8px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment