Dwitter Tweaks

Tweak Dwitter with extreme dark theme

2020-05-20 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Dwitter Tweaks
// @namespace    https://greatest.deepsurf.us/en/users/8615-joeytwiddle
// @version      0.1.3
// @description  Tweak Dwitter with extreme dark theme
// @author       joeytwiddle
// @license      ISC
// @match        https://beta.dwitter.net/*
// @grant        GM_addStyle
// ==/UserScript==

(function() {
  'use strict';

  // In theory I like the dark background.
  // But in practice is causes my retinas to open, which then get overwhelmed by the bright white of the default canvas!
  // So a somewhat lighter dark theme can help to keep my eyes prepared.

  const hue = 208;
  const sat = 25;

  // 6, 11, 8
  // 9, 13, 11
  // 13, 19, 11

  GM_addStyle(`
    /*
    :root {
      --pageBackgroundColor: #0b0b0b;
      --mainBackgroundColor: #1b1b1b;
    }
    */
    .App {
      background: hsl(${hue}, ${sat}%, 9%) !important;
    }
    .App > header, .card {
      background: hsl(${hue}, ${sat}%, 14%);
    }
    /* Code textarea */
    .card .mb-3+div,
    input.form-control, input.form-control[readonly],
    /* "Theme challenge of the month" */
    .card.text-center.mb-3.px-3 > div {
      background: hsl(${hue}, ${sat}%, 11%) !important;
    }
    input.form-control, input.form-control[readonly] {
      border: 0;
    }
    /* Inside the comment box, use a nice dull blue for the button */
    .card > form > div > div > .btn-secondary,
    .card > form > div > div > .btn-secondary.disabled,
    .card > form > div > div > .btn-secondary:disabled,
    .card > form > div > div > .btn-primary,
    .card > form > div > div > .btn-primary.disabled,
    .card > form > div > div > .btn-primary:disabled,
    /* And also for the awesomed Awesome button */
    .btn-primary {
      background-color: hsl(211, 70%, 24%);
      border-color: hsl(211, 70%, 24%);
    }
    .shadow-primary {
      box-shadow: none !important;
    }
  `);
})();