HideSinaFlashInstallTips

去掉新浪微博弹出的提示“我们的产品需要安装flashplayer 10或更高版本”

  1. // ==UserScript==
  2. // @name HideSinaFlashInstallTips
  3. // @name:zh-CN 隐藏新浪微博Flash安装提示
  4. // @namespace cat
  5. // @version 0.1
  6. // @description 去掉新浪微博弹出的提示“我们的产品需要安装flashplayer 10或更高版本”
  7. // @author Gavin
  8. // @include http://blog.sina.com.cn/*
  9. // @run-at document-end
  10. // @website https://21ido.com/
  11. // @supportURL https://github.com/think2cat/js4tampermonkey/blob/master/hideSinaFlashInstallTips/hideSinaFlashInstallTips.user.js
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. let timer = 0;
  18. let clearAlert = () => {
  19. try{
  20. let alertDom = document.getElementsByClassName("CP_w");
  21. if(alertDom){
  22. for(let i=0; i < alertDom.length; i++){
  23. if("none" != alertDom[i].style.display){
  24. alertDom[i].style.display = "none";
  25. alertDom[i].previousElementSibling.style.display = "none";
  26. clearInterval(timer);
  27. }
  28. }
  29. }
  30. }catch(e){
  31. }
  32. };
  33.  
  34. window.onload = function(){
  35. timer = setInterval(clearAlert, 3000);
  36. setTimeout(()=>{
  37. clearInterval(timer);
  38. },60000);
  39. };
  40. })();

QingJ © 2025

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