用油猴才能去掉streamlit网页右下角home键,进制下拉刷新

// ==UserScript==
// @name New script geminihome.streamlit.app
// @namespace Violentmonkey Scripts
// @match https://geminihome.streamlit.app/*
// @grant none
// @version 1.0
// @author -
// @description 2024/6/21 10:12:25
// ==/UserScript==
(function() {

'use strict';

    // 每 5 秒钟执行一次
setInterval(function() {
  // 查找所有指向 https://streamlit.io/cloud 的链接
  const links = document.querySelectorAll('a[href="https://streamlit.io/cloud"]');
  // 隐藏这些链接
  links.forEach(link => {
      link.remove();
  });
// 监听 touchmove 事件
  document.addEventListener('touchmove', function(event) {
      if (event.touches.length > 1) {
          event.preventDefault();
      }
  }, { passive: false });

  document.addEventListener('touchstart', function(event) {
      if (event.touches.length > 1) {
          event.preventDefault();
      }
  }, { passive: false });

}, 100);

})();

发表新评论
仅有 1 条评论
  1. root
    root本文作者
    回复

    手机浏览器下拉刷新行为需要 手机浏览器中设置、