Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yantesoft/LinuxdoAssistant
/ functions
Functions
38 in github.com/Yantesoft/LinuxdoAssistant
⨍
Functions
38
◇
Types & classes
0
↓ 11 callers
Function
getSwitchState
* 获取当前标签页的助手运行状态 * @returns {boolean} 当前标签页是否启用
linuxdo-helper.user.js:244
↓ 6 callers
Function
randomByJitter
* 按比例随机波动数值 * @param {number} value - 原始值 * @param {number} jitter - 波动比例,例如 0.3 表示 ±30% * @param {number} minValue - 最小值 * @r
linuxdo-helper.user.js:116
↓ 6 callers
Function
stopScrolling
* 停止当前滚动
linuxdo-helper.user.js:849
↓ 5 callers
Function
setTabValue
* 保存当前标签页级别的数据 * @param {string} key - 存储键名 * @param {*} value - 存储值
linuxdo-helper.user.js:161
↓ 4 callers
Function
getSpeedRatio
* 获取速度比例 * @returns {number} 速度比例(0.01 - 1.0)
linuxdo-helper.user.js:192
↓ 4 callers
Function
getTopicFirstMode
* 获取话题优先模式状态 * @returns {boolean} 是否启用话题优先
linuxdo-helper.user.js:281
↓ 4 callers
Function
normalizeSpeedRatio
(ratio)
linuxdo-helper.user.js:204
↓ 3 callers
Function
getConfig
* 获取实际使用的配置(基础配置 × 速度比例) * @returns {Object} 计算后的配置对象
linuxdo-helper.user.js:220
↓ 3 callers
Function
getTabValue
* 获取当前标签页级别的数据 * @param {string} key - 存储键名 * @param {*} defaultValue - 默认值 * @returns {*} 存储值
linuxdo-helper.user.js:142
↓ 3 callers
Function
loadPage
* 加载并跳转到新页面 * @param {Array<Object>} links - 可用链接列表
linuxdo-helper.user.js:797
↓ 3 callers
Function
randomDelay
* 受速度比例影响的随机延时 * 速度越快,延时越短 * @param {number} min - 最小延时 * @param {number} max - 最大延时 * @returns {number}
linuxdo-helper.user.js:129
↓ 3 callers
Function
randomInt
* 获取随机整数 * @param {number} min - 最小值 * @param {number} max - 最大值 * @returns {number}
linuxdo-helper.user.js:103
↓ 3 callers
Function
restartScrolling
* 重新启动滚动(用于速度改变时立即生效)
linuxdo-helper.user.js:977
↓ 3 callers
Function
updateSpeed
(ratio)
linuxdo-helper.user.js:600
↓ 2 callers
Function
formatSpeedDisplay
(ratio)
linuxdo-helper.user.js:212
↓ 2 callers
Function
getBaseConfig
* 获取基础配置(从存储中读取,如果没有则使用默认值) * @returns {Object} 基础配置对象
linuxdo-helper.user.js:174
↓ 2 callers
Function
getNewTopicFirstMode
* 获取新话题优先模式状态 * @returns {boolean} 是否启用新话题优先
linuxdo-helper.user.js:297
↓ 2 callers
Function
getRawLinks
* 获取页面中的原始链接列表 * @returns {Array<Object>} 链接对象数组,包含index、href、text、isNewTopic
linuxdo-helper.user.js:749
↓ 2 callers
Function
jumpWithRandomDelay
* 随机延时后跳转 * @param {string} url - 目标地址 * @param {number} minDelay - 最小延时 * @param {number} maxDelay - 最大延时 * @param {string} m
linuxdo-helper.user.js:781
↓ 2 callers
Function
scrollComment
* 滚动评论区域并自动跳转 * @param {HTMLElement} commentElement - 评论容器元素
linuxdo-helper.user.js:862
↓ 2 callers
Function
waitForElement
* 等待指定元素出现在页面中 * @param {string} selector - CSS选择器 * @returns {Promise<HTMLElement>} 找到的元素
linuxdo-helper.user.js:708
↓ 1 callers
Function
createFloatingSpeedSlider
* 创建悬浮速度滑块 * @returns {HTMLElement} 滑块容器元素
linuxdo-helper.user.js:537
↓ 1 callers
Function
createSVGIcon
* 创建SVG图标元素 * @param {string} iconHref - 图标引用(如 '#play' 或 '#pause') * @returns {SVGElement} SVG元素
linuxdo-helper.user.js:316
↓ 1 callers
Function
createSwitchButton
* 创建控制开关按钮 * @returns {HTMLElement} 开关按钮的 li 元素
linuxdo-helper.user.js:333
↓ 1 callers
Function
createSwitchIcon
* 创建并插入开关图标到页面
linuxdo-helper.user.js:455
↓ 1 callers
Function
findChatButton
* 查找聊天按钮元素 * @returns {Promise<HTMLElement|null>} 聊天按钮元素或null
linuxdo-helper.user.js:376
↓ 1 callers
Function
findFallbackInsertPosition
* 查找备用插入位置 * @returns {HTMLElement|null} 备用位置元素或null
linuxdo-helper.user.js:406
↓ 1 callers
Function
injectFloatingPanelStyles
* 注入悬浮面板样式,支持亮色/暗色主题
linuxdo-helper.user.js:466
↓ 1 callers
Function
insertSwitchButton
* 将开关按钮插入到页面中 * @param {HTMLElement} buttonElement - 开关按钮元素
linuxdo-helper.user.js:416
↓ 1 callers
Function
main
* 主初始化函数
linuxdo-helper.user.js:1016
↓ 1 callers
Function
saveNewTopicFirstMode
* 保存新话题优先模式状态 * @param {boolean} enabled - 是否启用新话题优先
linuxdo-helper.user.js:305
↓ 1 callers
Function
saveSpeedRatio
* 保存速度比例 * @param {number} ratio - 速度比例
linuxdo-helper.user.js:200
↓ 1 callers
Function
saveTopicFirstMode
* 保存话题优先模式状态 * @param {boolean} enabled - 是否启用话题优先
linuxdo-helper.user.js:289
↓ 1 callers
Function
startAutoScroll
* 启动自动滚动功能
linuxdo-helper.user.js:988
↓ 1 callers
Function
toggleSwitch
* 切换助手开关状态
linuxdo-helper.user.js:251
↓ 1 callers
Function
updateFloatingSliderVisibility
* 更新悬浮滑块的显示状态
linuxdo-helper.user.js:693
Function
doScroll
()
linuxdo-helper.user.js:889
Function
saveBaseConfig
* 保存基础配置 * @param {Object} newConfig - 新的基础配置
linuxdo-helper.user.js:183