CSS: www.facebook.com - font Arial

Corrections to UI of new Facebook for desktop browsers: font Arial, bigger text size

2021-04-19 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला 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          CSS: www.facebook.com - font Arial
// @description   Corrections to UI of new Facebook for desktop browsers: font Arial, bigger text size
// @author        MK
// @namespace     max44
// @homepage      https://greasyfork.org/en/users/309172-max44
// @include       https://www.facebook.com/*
// @include       http://www.facebook.com/*
// @version       1.0.2
// @note          v1.0.2 2021-04-19: font error corrected and news feed width increased
// @note          v1.0.1 2021-02-18: @namespace and @homepage changed
// @note          v1.0 2021-01-05: initial release
// ==/UserScript==

(function() {
  var fontFamily = 'Arial, Roboto, Helvetica, sans-serif';
  var css = `
  /*Global text*/
  body, .jq4qci2q, .qzhwtbm6 > .a8c37x1j > .c1et5uql {
    font-family: ${fontFamily} !important;
    font-size: 14px !important;
  }

  /*News feed width*/
  .oh7imozk {
    width: 78% !important;
  }

  /*Author*/
  .l94mrbxd {
    font-family: ${fontFamily} !important;
    font-size: 14px !important;
  }

  /*Preview text*/
  .qzhwtbm6 > .a8c37x1j, .bi6gxh9e > .e9vueds3 {
    font-family: ${fontFamily} !important;
    font-size: 12.5px !important;
  }

  /*Likes, comments, shares*/
  .l9j0dhe7 > .m9osqain {
    font-family: ${fontFamily} !important;
    font-size: 12.5px !important;
  }

  /*Comment author*/
  .e9vueds3 {
    font-family: ${fontFamily} !important;
    font-size: 13px !important;
  }

  /*Comment text*/
  .ecm0bbzt > .jq4qci2q, ._71pn ._4w79 {
    font-family: ${fontFamily} !important;
    font-size: 13.5px !important;
  }

  /*Replies to comment, menu at left, list of contacts at right*/
  .hpfvmrgz > .rq0escxv {
    font-family: ${fontFamily} !important;
    font-size: 12.5px !important;
  }

  /*Number of likes under comment*/
  .bp9cbjyn > .e9vueds3 {
    font-size: 11px !important;
  }
  .bp9cbjyn > .qt6c0cv9 {
    padding-bottom: 2px;
  }

  /*Remove limit on height of underpicture text*/
  .r9c01rrb {
    max-height: none !important;
  }
  `;

  if (typeof GM_addStyle != 'undefined') {
    GM_addStyle(css);
  } else if (typeof PRO_addStyle != 'undefined') {
    PRO_addStyle(css);
  } else if (typeof addStyle != 'undefined') {
    addStyle(css);
  } else {
    var node = document.createElement('style');
    node.type = 'text/css';
    node.appendChild(document.createTextNode(css));
    document.documentElement.appendChild(node);
  }
})();