小窗預覽

拖曳連結時在彈出視窗中開啟鏈接,並在打開前提供預覽,使用 Edge 的預讀技術。同時在小窗口打開時在背後添加壓克力效果。

目前為 2024-09-06 提交的版本,檢視 最新版本

作者
人民的勤务员
評價
0 0 0
版本
2.4.0.25
建立日期
2024-08-23
更新日期
2024-09-06
尺寸
37.9 KB
授權條款
MIT
腳本執行於
所有網站
UserScripts

人民的勤务员/UserScriptsGithub:@ChinaGodMan

脚本来自互联网广大网友,本人仅是做了些许改动.感谢网友 如有侵权,联系必删,勤务员的脚本可供随意修改.
Gmail

GreasyFork Total Installs Total Daily Installs Scripts Count Good Ratings Ok Ratings Bad Ratings

Github commit forks Issue license CopyRight


starsStar Me请给我点星

给勤务员加鸡腿

小窗口预览

「 拖拽链接时在弹出窗口中打开链接,并在打开前提供预览,使用 Edge 的预读技术。同时在小窗口打开时在背后添加亚克力效果。 」

Views

Download:Github | ⭐Greasy Fork

更新记录
  • 2024/9/3 05:26 - Ver:.2.4.0.20 #527837事件错误,修改为检查鼠标y轴<1时判断移动在浏览器标签页
  • 2024/9/02 05:34 - Ver:.2.4.0.18
  • 请求:#527625
    添加功能:
    长按鼠标模式下按下键盘不触发预览窗口
    拖拽模式下浏览器拖住拖拽链接到新标签打开,不会触发预览窗口
  • 2024/8/29 08:39 - Ver:.2.4.0.9 添加拖拽时超时显示超时进度条,时间耗光取消拖拽打开预览窗口
  • 2024/8/29 06:28 - Ver:.2.4.0.8 移出长按时检测鼠标移动监听器,改为监听鼠标进入拖拽状态取消打开预览窗口.#526172
  • 2024/8/27 00:33 - Ver: 2.4.0.5
  • #526054 BUG反馈:当打开一个链接的预览窗,然后点击原窗口焦点关闭预览窗之后再长按另外一个链接 , 有概率无法触发时间条打开预览窗
    添加代码:if (state.popupWindow)当窗口存在时执行代码

  • 2024/8/25 04:59 - Ver: 2.4.0.2

  • #257270 添加长按时显示倒计时, 修复长按时间过短导致在拖拽时触发长按逻辑, 增加记住窗口位置

  • 2024/8/24 07:29 - Ver: 2.4

  • 优化脚本
    添加语言包

  • 2024/8/23 08:12 - Ver: 2.4

  • <优化脚本
    添加长按链接弹出小窗口,用于兼容chrome插件 Google Chrome 的超级拖拽 0.9.9
    修复点击小窗口右上角关闭按钮时,亚克力图层不关闭的问题

Feature Introduction

🔗 Drag and Drop to Open Preview Window — Easily open and preview web links in a small window by dragging them, utilizing Edge's pre-read technology. The background of the small window features an acrylic effect to enhance visual appeal.

Menu Options Description

Options List

  1. Action Mode (actionMode)

    • Description: Sets the current action mode. Determines which mode to use based on the value of actionMode.
      • Action Mode 1: 1 - Triggers the preview window when the link is long-pressed.
      • Action Mode 2: 2 - Triggers the preview window when the link is dragged.
      • Default Action Mode: 0 - Defaults to enabling both of the above action modes.
  2. Long Press Duration (longPressDuration)

    • Description: Sets the duration of the long press action.
    • Action: setLongPressDuration, used to modify the long press duration in conjunction with Action Mode (actionMode).
  3. Blur Effect Enabled (blurEnabled)

    • Description: Enables or disables the background blur effect.
    • Action: toggleBlurEffect, used to enable or disable the blur effect.
  4. Blur Intensity (blurIntensity)

    • Description: Sets the intensity of the background blur.
  5. Close on Mouse Click (closeOnMouseClick)

    • Description: Closes the preview window when clicking the mouse in the main window (parent window of the preview window).
    • Action: toggleCloseOnMouseClick, used to enable or disable the setting to close the preview window on mouse click.
  6. Close on Scroll (closeOnScroll)

    • Description: Closes the preview window when scrolling the mouse wheel in the main window (parent window of the preview window).
    • Action: toggleCloseOnScroll, used to enable or disable the setting to close the preview window on mouse scroll.
  7. Window Width (windowWidth)

    • Description: Sets the width of the preview window. This configuration will override the set width when Save Window Configuration is enabled.
  8. Window Height (windowHeight)

    • Description: Sets the height of the preview window. This configuration will override the set height when Save Window Configuration is enabled.
  9. Show Countdown (showCountdown)

    • Description: When Action Mode (actionMode)=1 is enabled, displays a countdown progress bar below the mouse before the preview window is triggered by a long press. The time is set by Long Press Duration (longPressDuration).
    • Action: Used to enable or disable the countdown progress bar display.
  10. Show Drag Timeout (showCountdowndrag)

    • Description: When enabled, a timeout progress bar is displayed under the mouse before the drag preview window opens. The duration is determined by the Drag Timeout (dragTimeOut) setting. If the time runs out, the drag operation will not open the preview window. If the timeout is set to 0, both the progress bar and the timeout-based cancellation of the drag preview will be disabled.
    • Action: Used to enable or disable the display of the timeout progress bar.
  11. Save Window Configuration (saveWindowConfig)

    • Description: Used to remember and save the size and position configuration of the window, overriding the user-defined preview window height and width.

Each option is followed by a corresponding action function, which is used to update the menu settings. By clicking on an option, users can directly change the related configuration and see the effect immediately.

Supported Web Pages

🌐 Applicable to All Web Pages — Supports all web pages, allowing convenient link preview and opening functionality anytime, anywhere.

Script Highlights:

  • Acrylic Effect: Adds a beautiful background effect to the small window.
  • Link Pre-read: Accelerates loading using Edge's technology.
  • Configurable Options:
    • Adjustable blur effect intensity.
    • Customizable small window size.

Notes:

  • Clicking or scrolling on the page can automatically close the small window.
  • Experience it now! 🚀 Enhance Browsing Efficiency — Install the script to enjoy intelligent link previews and aesthetically pleasing small windows!

1.png

Original Author

hiisme

网页相关脚本

使用帮助

更多用户脚本 / 回到顶部↑

QingJ © 2025

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