ElementaryOS - Remove paywall

It removes the fake paywall on ElementaryOS website

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         ElementaryOS - Remove paywall
// @namespace    https://github.com/Synaelle/ElementaryOS-nopaywall
// @version      1.02
// @description  It removes the fake paywall on ElementaryOS website
// @author       Synaelle
// @match        https://elementary.io/*
// @icon         https://elementary.io/favicon.ico
// @grant        none
// @license      gpl-3.0
// ==/UserScript==

(function() {
    'use strict';
    //I don't think three "duplicate" lines of commands is worth an array
    document.getElementById("payment-trust").style.display = 'none';
    document.getElementById("choice-buttons").style.display = 'none';
    document.getElementById("pay-what-you-want").style.display = 'none';
    //If you don't choose any value, they will put 20$ if you click buy. So that's how I found a workaround for this.
    document.getElementById("amount-twenty").value = '0';
    document.getElementById('translate-purchase').innerHTML = document.getElementById('translate-download').innerHTML;
}

)();