csdn remove full ad

close csdn full page ad.

  1. // ==UserScript==
  2. // @name csdn remove full ad
  3. // @namespace http://tampermonkey.net/
  4. // @version 2023-12-27
  5. // @description close csdn full page ad.
  6. // @author You
  7. // @match https://blog.csdn.net/virobotics/article/details/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=csdn.net
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. setTimeout(function(){
  16. document.evaluate("/html/body/div[2]/div/div[1]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.style.display = "none";
  17. }, 1000);
  18. // Your code here...
  19. })();