🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

dialog-gui

快捷弹窗

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greasyfork.org/scripts/522780/1518758/dialog-gui.js

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Autor
twjx
Wersja
2.2
Utworzono
04-01-2025
Zaktualizowano
11-01-2025
Rozmiar
4,97 KB
Licencja
Brak licencji

how to use

attribute
= {
type:'single',
title: '', --标题
content: [ --内容
{
type: 'text' / 'img' / 'video' / 'audio' / 'scroller',--自行尝试
returnElement: String / false, -- 指是否返回这个元素 详细请看最下方
src: '', --用于img/video/audio类型
content: { --用于text类型
type: 'p' / 'h1' / ..., --用于text类型
content: '', --text类型输入文本 加入的区域是innerHTML区域,可以填代码 自由度高
scroll_type: 'automatic' / 'none' --用于scroller类型 automatic是自动滚动到最底部
},
style: css-style, --(all) style随意编辑
},
],
attribute: { -- body区域的style 以下可不填,attribute:{}即可代码会使用默认格式
position: '', 自动填写数据:'relative'
width: '', 填数字即可 height一样 '500px'
height: '', '400px'
top: '', '100px'
left: '', '50%'
backgroundColor: '', '#fefefe'
radius: '', '10px'
boxShadow: '', '0 0 5px 5px darkgray'
transform: '', 'translate(-50%, 0%)'
and so on... -- 以上只是默认格式会提供的 可随意添加style属性
},
dark_screen: true / false, -- 是否有黑幕 防止用户点击其他区域
enMove: true / false, --可以被拖动 尚不完善
}

returnElement 用法

var a=dialog.create({
type: "single",
...
content: [
{
type: "scroller",
...
returnElement:'scroll',
},
]
});
console.log(a)
// Object{scroll:div}

onclose

当dialog被关闭时会运行这个函数