Verwijder commentaar op tweakers.net

Verwijdert de commentaar sectie op tweakers.net

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Verwijder commentaar op tweakers.net
// @name:en      Remove comments on tweakers.net
// @namespace    https://github.com/HiddenKn
// @version      0.1
// @description  Verwijdert de commentaar sectie op tweakers.net
// @description:en Removes the comment section on tweakers.net
// @author       HiddenKn
// @match        http://tweakers.net/nieuws/*
// @match        https://tweakers.net/nieuws/*
// @upgrade      https://gist.github.com/HiddenKn/0e1c2ba69cb250f6e1033267cfb1e8a4/raw/remove_comments_tweakers.user.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var commentColumn = document.getElementById("commentColumn");
    if(commentColumn){
        commentColumn.remove();
        console.info("Remove comments on tweakers.net userscript: Removed comments.");
    } else {
        console.error("Remove comments on tweakers.net userscript: An error occured during the removal of the comments section.");
    }
})();