Hide the ad-entry element on the GreasyFork page

Hide the ad-entry element on the GreasyFork page.

目前为 2023-12-19 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Hide the ad-entry element on the GreasyFork page
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Hide the ad-entry element on the GreasyFork page.
  6. // @author aspen138
  7. // @match https://greasyfork.org/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Add styles to hide the '.ad-entry' class elements
  16. var style = document.createElement('style');
  17. style.type = 'text/css';
  18. style.innerHTML = '.ad-entry { display: none !important; }';
  19. document.head.appendChild(style);
  20. })();