Greasy Fork is available in English.

Small Window Preview

Drag a link to open it in a popup window with a preview before opening, using Edge's prerendering technology. Also, add an acrylic effect behind the window when it's open.

Устаревшая версия за 01.09.2024. Перейдите к последней версии.


Установить этот скрипт?
Автор
##的勤务员
Оценки
000
Версия
2.4.0.17
Создано
23.08.2024
Обновлено
01.09.2024
Размер
26,1 КБ
Лицензия
MIT
Работает на
всех сайтах
UserScripts

##的勤务员/UserScripts

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

GreasyForkTotal InstallsTotal Daily InstallsScripts CountGood RatingsOk RatingsBad Ratings

GithubcommitforksIssuelicenseCopyRight


starsStar Me请给我点星

给勤务员加#腿

小窗口预览

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

Download:Github | ⭐GreasyFork

更新记录
  • 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

使用帮助

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