sourse of watermark

get off the watermark

  1. // ==UserScript==
  2. // @name sourse of watermark
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-1-6
  5. // @description get off the watermark
  6. // @author keir
  7. // @match https://shuiyuan.sjtu.edu.cn/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=sjtu.edu.cn
  9. // @license MIT
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. // 找到元素
  16. var watermarkElement = document.querySelector('div[style*="position: fixed;"][style*="opacity: 0.005;"]');
  17.  
  18. // 移除元素
  19. if (watermarkElement) {
  20. watermarkElement.parentNode.removeChild(watermarkElement);
  21. }
  22.  
  23. // Your code here...
  24. })();