doriitamar / Busy.org RTL

// ==UserScript==
// @name         Busy.org RTL
// @namespace    http://tampermonkey.net/
// @version      0.12
// @description  Right to left alignment to Busy.org
// @author       You
// @match        https://*busy.org/*
// @license MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
     var sheet = window.document.styleSheets[0];
    sheet.insertRule('.feed-layout .rightContainer {float:left!important} ', sheet.cssRules.length);
    sheet.insertRule('.feed-layout .leftContainer {float:right!important} ', sheet.cssRules.length);
    sheet.insertRule('.Topnav__user__username {margin-right: 8px!important; margin-left: 0px!important} ', sheet.cssRules.length);
    sheet.insertRule('.SidebarContentBlock__icon {margin-left: 5px!important; margin-right: 0px!important} ', sheet.cssRules.length);
    sheet.insertRule('.Sidenav>li>a>i {margin-left: 5px!important; margin-right: 0px!important} ', sheet.cssRules.length);
    sheet.insertRule('html { direction: rtl; }', sheet.cssRules.length);
    sheet.insertRule('.Payout {left: 0!important; right: unset!important} ', sheet.cssRules.length);
    sheet.insertRule('.topnav-layout .right {left: 0!important; right: unset!important} ', sheet.cssRules.length);
    sheet.insertRule('.InterestingPeople__icon-refresh {margin-right:auto!important; margin-left:0!important} ', sheet.cssRules.length);
    sheet.insertRule('.User__follow {margin-right:auto!important; margin-left:0!important} ', sheet.cssRules.length);
    sheet.insertRule('.ant-col-24.ant-form-item-label, .ant-col-xl-24.ant-form-item-label, .ant-form-vertical .ant-form-item-label {text-align: right!important} ', sheet.cssRules.length);
    sheet.insertRule('.ant-select-search__field__placeholder, .ant-select-selection__placeholder {text-align: right!important} ', sheet.cssRules.length);
    sheet.insertRule('.UserMenu__badge {margin-left: 0px!important; margin-right: 6px!important} ', sheet.cssRules.length);
    sheet.insertRule('.User__name {margin-left: 0px!important; margin-right: 8px!important} ', sheet.cssRules.length);
    sheet.insertRule('#app > div > div.content > div > div.shifted > div > div.center > div > div > div > div.Story__content > a.Story__content__title > h2 > span > div {margin-left: 10px!important; margin-right: 0px!important} ', sheet.cssRules.length);
    sheet.insertRule('#app > div > div.content > div > div.shifted > div > div.center > div > div > div > div.Story__footer > div > div > div > a:nth-child(5) > span { color: white } ', sheet.cssRules.length);
    sheet.insertRule('.UserCard>.UserCard__left>a:nth-child(2), .UserCard__alt {margin-left: 0px!important; margin-right: 8px!important} ', sheet.cssRules.length);
    sheet.insertRule('.Story__reblog {direction: ltr!important}', sheet.cssRules.length);
    sheet.insertRule('.UserWalletSummary__value {margin-right: auto!important; margin-left: 0!important}', sheet.cssRules.length);
    sheet.insertRule('#app > div > div.content > div > div > div.center > div > div.UserWalletSummary > div > div.UserWalletSummary__value > span {direction: ltr!important}', sheet.cssRules.length);
    sheet.insertRule('.UserWalletSummary__icon {margin-right: 0!important; margin-left: 10px!important}', sheet.cssRules.length);
    sheet.insertRule('.UserWalletTransactions__transfer {margin-right: auto!important; margin-left: 0!important; direction: ltr}', sheet.cssRules.length);
    sheet.insertRule('.UserWalletTransactions__payout {margin-right: auto!important; margin-left: 0!important; direction: ltr}', sheet.cssRules.length);
    sheet.insertRule('.UserWalletTransactions__received {margin-right: auto!important; margin-left: 0!important; direction: ltr}', sheet.cssRules.length);
    sheet.insertRule('.UserWalletTransactions__content-recipient {margin-right: 10px!important}', sheet.cssRules.length);
    sheet.insertRule('.CryptoTrendingCharts__icon-refresh {margin-right: auto!important; margin-left: 0!important}', sheet.cssRules.length);
    sheet.insertRule('.Comment__date {margin-right: 8px!important; margin-left: 0!important}', sheet.cssRules.length);
    sheet.insertRule('.Comment__text {margin-right: 10px!important; margin-left: 0!important}', sheet.cssRules.length);
    sheet.insertRule('.StoryFull__header__text {margin-right: 16px!important; margin-left: 0!important}', sheet.cssRules.length);
    sheet.insertRule('.post-layout .rightContainer {float: left!important}', sheet.cssRules.length);
    sheet.insertRule('#app > div > div.content > div > div > div > div.center {margin-left: 10px!important}', sheet.cssRules.length);
    sheet.insertRule('.CommentForm__text {margin-left: 0px!important; margin-right: 12px!important}', sheet.cssRules.length);
    sheet.insertRule('#app > div > div.content > div > div.shifted > div > div.center > div > div > div > div > div > div.Story__footer > div > div > div > a:nth-child(5) > span {color: white}', sheet.cssRules.length);
    sheet.insertRule('.Body--full {direction: ltr!important}', sheet.cssRules.length);
    sheet.insertRule('.post-layout .center {float: right!important}', sheet.cssRules.length);


    // Your code here...
})();