// ==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);
})();
手机浏览器下拉刷新行为需要 手机浏览器中设置、