CSS: internationalwealth.info

Corrections to UI of internationalwealth.info: font style

目前為 2021-01-01 提交的版本,檢視 最新版本

// ==UserScript==
// @name          CSS: internationalwealth.info
// @description   Corrections to UI of internationalwealth.info: font style
// @author        MK
// @homepage      https://greasyfork.org/en/scripts/419352
// @namespace     https://greasyfork.org/users/309172
// @include       https://internationalwealth.info/*
// @include       http://internationalwealth.info/*
// @version       1.1
// @note          v1.1 2021-01-01 - code is rewritten to add CSS to the end of the document instead of <HEAD> tag in order to overcome possible server side CSS with !important rule
// @note          v1.0 2020-12-29 - initial release
// ==/UserScript==

(function() {
  var css = `
  p, a {
    font-weight: normal !important;
  }
  /*ul, ol, li {
    font-size: 15px !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);
  }
})();