Nexusmods without Ratings

Removes endorsements and download counts from all mods for unbiased browsing.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Nexusmods without Ratings
// @namespace    http://tampermonkey.net/
// @version      1.0.0
// @description  Removes endorsements and download counts from all mods for unbiased browsing.
// @license      MIT
// @author       AeonOfTime
// @match        https://www.nexusmods.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    window.onload = init();

    function init()
    {
        console.log('RemoveEndorsements | Initializing.');

        const observer = new MutationObserver((mutationList, observer) => {
            removeRatings();
        });

        // Use an observer to react to changes in the page structure:
        // We use this to handle AJAX-based page changes like switching
        // tabs on the mod page, so we can remove elements in the
        // dynamically loaded content.
        observer.observe(
            document.getElementsByTagName('BODY')[0],
            {
                attributes: false,
                childList: true,
                subtree: true
            }
        );

        removeRatings();
    }

    function removeRatings()
    {
        console.log("RemoveEndorsements | Hiding elements.");

        removeBySelector('.stat-endorsements');
        removeBySelector('.stat-uniquedls');
        removeBySelector('.stat-totaldls');
        removeBySelector('.stat-totalviews');
        removeBySelector('.endorsecount');
        removeBySelector('.downloadcount');
    }

    function removeBySelector(selector)
    {
        const elements = document.querySelectorAll(selector);
        for(let i=0; i < elements.length; i++) {
            elements[i].style.display = 'none';
        }
    }
})();