Nexusmods without Ratings

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

  1. // ==UserScript==
  2. // @name Nexusmods without Ratings
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0.0
  5. // @description Removes endorsements and download counts from all mods for unbiased browsing.
  6. // @license MIT
  7. // @author AeonOfTime
  8. // @match https://www.nexusmods.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. window.onload = init();
  16.  
  17. function init()
  18. {
  19. console.log('RemoveEndorsements | Initializing.');
  20.  
  21. const observer = new MutationObserver((mutationList, observer) => {
  22. removeRatings();
  23. });
  24.  
  25. // Use an observer to react to changes in the page structure:
  26. // We use this to handle AJAX-based page changes like switching
  27. // tabs on the mod page, so we can remove elements in the
  28. // dynamically loaded content.
  29. observer.observe(
  30. document.getElementsByTagName('BODY')[0],
  31. {
  32. attributes: false,
  33. childList: true,
  34. subtree: true
  35. }
  36. );
  37.  
  38. removeRatings();
  39. }
  40.  
  41. function removeRatings()
  42. {
  43. console.log("RemoveEndorsements | Hiding elements.");
  44.  
  45. removeBySelector('.stat-endorsements');
  46. removeBySelector('.stat-uniquedls');
  47. removeBySelector('.stat-totaldls');
  48. removeBySelector('.stat-totalviews');
  49. removeBySelector('.endorsecount');
  50. removeBySelector('.downloadcount');
  51. }
  52.  
  53. function removeBySelector(selector)
  54. {
  55. const elements = document.querySelectorAll(selector);
  56. for(let i=0; i < elements.length; i++) {
  57. elements[i].style.display = 'none';
  58. }
  59. }
  60. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址