// ==UserScript== // @name 点击翻页 // @namespace Violentmonkey Scripts // @match *://*/* // @grant GM_setValue // @grant GM_getValue // @version 1.1.1 // @author 逍遥 // @description 手机浏览器点按翻页 // @license MIT // @downloadURL https://update.greasyfork.icu/scripts/464947/%E7%82%B9%E5%87%BB%E7%BF%BB%E9%A1%B5.user.js // @updateURL https://update.greasyfork.icu/scripts/464947/%E7%82%B9%E5%87%BB%E7%BF%BB%E9%A1%B5.meta.js // ==/UserScript== (function () { 'use strict'; // 左侧距离 屏幕百分比 let l_left = 5; let r_left = 85; //上方距离 屏幕百分比 let top = 70; // 透明度 let opacity = 0.5; //每次滚动的距离 let h = window.innerHeight * 0.8; //箭头最小宽度 vw let min_width = 12; function createNode(html) { var div = document.createElement("div"); div.innerHTML = html; return div.children[0]; } let arrow_p = GM_getValue("arrow_p"); let position = { top: top, left: arrow_p === 'l' ? l_left : r_left }; let html = `