Wikiwand Enhancer

Userscript that fixes the five-minute shit that Wikiwand couldn't fix on its website. Seriously, just don't sit on Wikiwand, it's that terrible.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Wikiwand Enhancer
// @namespace   https://greasyfork.org/en/users/830433-vintprox
// @description Userscript that fixes the five-minute shit that Wikiwand couldn't fix on its website. Seriously, just don't sit on Wikiwand, it's that terrible.
// @version     1.0
// @icon        https://wikiwand-19431.kxcdn.com/img/wikiwand_icon_apple.png
// @license     WTFPL
// @homepageURL https://addons.mozilla.org/en-US/firefox/addon/modern-for-wikipedia/
// @author      vintprox
// @match       https://*wikiwand.com/*
// @grant       none
// ==/UserScript==

(function() {
  const style = document.createElement("style");
  style.type = "text/css";
  style.appendChild(document.createTextNode(`
    /* Was it so hard to not mess up the dark theme? */
    body.dark #main_menu {
      background-color: #615a5f80;
    }
    body.dark #main_menu.navbar_opaque {
      background-color: #615a5f;
    }

    /* Uncalled branding. */
    #main_menu > li.article_btn {
      display: none;
    }

    /* Do you want to "upgrade" your plan? But seriously, what a dull naming. It seems as if they just took someone else's template and stretched a wikipedia on it!
    Also, you don't really want this annoying button. */
    #main_menu > li.upgrade_btn,
    #main_menu .menu_line {
      display: none;
    }

    /* It's a shame that we have a circus of colors in the main menu, of all places. These should have been monochromatic. */
    body.dark #main_menu > li > i {
      filter: contrast(0%) brightness(160%);
    }
    body.dark #main_menu > li:hover > i,
    body.dark #main_menu > li:active > i {
      filter: contrast(0%) brightness(220%);
    }
    body.light #main_menu > li > i {
      filter: contrast(0%) brightness(80%);
    }
    body.light #main_menu > li:hover > i,
    body.light #main_menu > li:active > i {
      filter: contrast(0%) brightness(0%);
    }

    /* You don't really need to be reminded to tell friends about Wikiwand. It's way too green. */
    .footer_invite_wrapper .invite_box {
      display: none;
    }

    /* If this shit was open source, I would already bring some sense to it. What the heck is with these uncentered labels? */
    .infobox-image,
    .infobox-full-data {
      text-align: center;
    }

    /* Mx. Fancy Pants thought that you would appreciate this Pinterest button. Let's be real: who uses this bullshit today? */
    #cover_image .pin_btn {
      display: none;
    }

    /*
    THERE ARE MORE PRESSING ISSUES WITH WIKIWAND.
    IT DOESN'T RESPECT PRIVACY AND IT'S TOO GREEN.
    GIVE PROPER EXTENSIONS A TRY TO MODERNIZE THE LOOK OF WIKIPEDIA, NOT THIS GARBAGE.
    */
  `));
  document.body.appendChild(style);
})();