小窗预览

人民的勤务员
2024-08-23T22:51:35Z

拖拽链接时在弹出窗口中打开链接，并在打开前提供预览，使用 Edge 的预读技术。同时在小窗口打开时在背后添加亚克力效果,可设置为长按触发.自动记录每个站点的小窗口大小.

简体中文 | English | 한국어 | Tiếng Việt | 繁體中文
👆️access GitHub Readme file on for a better experience。

GitHubView the serviceman’s scriptGithub:@ChinaGodMan
GreasyForkView the serviceman’s script
View the serviceman’s script on the current page

⭐If the script helps you,Can light up the stars to encourage⭐

Recommended use：

💡 Tip: The script manager and browser listed above do not represent all
The script runs normally in the following environment

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.。 」

Download:Github | ⭐Greasy Fork

Update records

🛠️ Small Window Preview Update log

📅 2025.5.16.1

repair:#133 closeOnScrollorcloseOnMouseClickWhen closed,No new window pops up
solve:When the page currently has a small window,andcloseOnScrollorcloseOnMouseClickWhen any one is closed,Destroy the current small window directly

📅 2025.3.14.1108

optimization: #102Add toShow onlyGUI Menu Options,Allows only one menu option to display in oil monkeys,No extra menus are displayed.
screenshot:
repair: Fixed pop-upsweetalertNo css The interface is inconsistent.

📅 2024/9/30 11:56 - Ver 2.5.1.4

optimization: Add toGUISettings interface The menu is too troublesome,Set multiple points to go.

📅 2024/9/30 10:49 - Ver 2.5.1.3

optimization: Add toLong press to take effect time,After pressing the mouse to the set effective time, call the opening windowLong press to trigger time.
Open window time=Long press to take effect time+Long press to trigger time optimization: Add toGUISettings interface The menu is too troublesome,Set multiple points to go.

📅 2024/9/10 11:05 - Ver 2.5.1.0

repair: Issues that the popup size position cannot be read across the source。 New: When cross-original reading to pop-up position cannot be done，Will send a message to pop-up window，Allow pop-up windows to set their own size and position。

📅 2024/9/10 09:24 - Ver 2.5.0.0

grateful: tony0809 Code contributions。 New: • Open Record window location hour，Automatically record the current domain name configuration。 • Find window configuration logic：Domain name configuration → Customize window configuration → Scripts come with configuration。 • No manual editing required for configuration,The script will automatically update the domain name configuration when you change the window size.Each time you change the window size, it will be recorded in the global custom configuration • Configuration Rule Reference#529654 • Please refer to the video below for new functions demonstration。

📅 2024/9/3 05:26 - Ver 2.4.0.20

repair: #527837 Event error，Modify to check the mouse y axis < 1 When determining whether the mobile is on the browser tab。

📅 2024/9/2 05:34 - Ver 2.4.0.18

New: #527625 • Press the keyboard in mouse mode without triggering the preview window。 • Drag and drop links to new tabs in drag mode will not trigger the preview window。

📅 2024/8/29 08:39 - Ver 2.4.0.9

New: Add timeout to display progress bar when dragging，Cancel drag and drop when time runs out to open the preview window。

📅 2024/8/29 06:28 - Ver 2.4.0.8

optimization: Remove the logic of listening to mouse movement when pressing for a long time，Instead, listen to the mouse to enter the drag state and cancel the preview window.。#526172

📅 2024/8/27 00:33 - Ver 2.4.0.5

repair: #526054 Feedback BUG： • Fixed the probability of not being able to trigger the time bar to open the preview window after closing the preview window。

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

New: #257270 • Add a long press to display the countdown，Added the function of remembering window position。

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

optimization: Add language pack，Optimize script performance。

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

optimization: compatible Chrome Plugin Google Chrome Super drag 0.9.9。 repair: Fixed the issue where the acrylic layer does not close when clicking the small window close button。

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.

1. 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)`.

1. Blur Effect Enabled (blurEnabled)

- **Description**: Enables or disables the background blur effect.
- **Action**: `toggleBlurEffect`, used to enable or disable the blur effect.

1. Blur Intensity (blurIntensity)

- **Description**: Sets the intensity of the background blur.

1. 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.

1. 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.

1. Window Width (windowWidth)

- **Description**: Sets the width of the preview window. This configuration will override the set width when `Save Window Configuration` is enabled.

1. Window Height (windowHeight)

- **Description**: Sets the height of the preview window. This configuration will override the set height when `Save Window Configuration` is enabled.

1. 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.

1. 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.

1. 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!

Original Author

hiisme