小窗預覽

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

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

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

Small window preview

「 Open link in popup window when dragging link,and provide a preview before opening,use Edge pre-reading technology。At the same time, add an acrylic effect behind the small window when it is opened.。 」

Views

Download:Github | ⭐Greasy Fork

Update record
  • 2024/9/3 05:26 - Ver:.2.4.0.20 #527837event error,Modified to check mouseyaxis<1Determine when moving in a browser tab
  • 2024/9/02 05:34 - Ver:.2.4.0.18
  • ask:#527625
    Add functionality:
    Pressing the keyboard in long-press mouse mode does not trigger the preview window
    In drag mode, the browser drags and drops the link to open it in a new tab.,Preview window will not be triggered
  • 2024/8/29 08:39 - Ver:.2.4.0.9 Add a timeout to display the timeout progress bar when dragging,Time runs out. Cancel drag and drop to open the preview window.
  • 2024/8/29 06:28 - Ver:.2.4.0.8 Detect mouse movement listener when moving out of long press,Change to monitor when the mouse enters dragging state and cancel opening the preview window..#526172
  • 2024/8/27 00:33 - Ver: 2.4.0.5
  • #526054 BUGfeedback:When opening a link’s preview window,Then click the focus of the original window to close the preview window and then long press another link. , There is a probability that the time bar cannot be triggered to open the preview window.
    add code:if (state.popupWindow)Execute code when window exists

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

  • #257270 Added display countdown when long press, Fixed the issue where the long press time is too short, causing the long press logic to be triggered when dragging, Added memory window position

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

  • Optimize script
    Add language pack

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

  • <Optimize script
    Add long press link popup window,for compatibilitychromeplug-in Google Chrome super drag 0.9.9
    Fixed issue when clicking the close button in the upper right corner of a small window,Problem with acrylic layer not closing

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

Web related scripts

Help

More user scripts / back to top↑

QingJ © 2025

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