你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/521978-drawaria-keep-buttons-enabled-uptaded,源站連結 點此以跳轉

Drawaria Keep Buttons Enabled Uptaded

All buttons enabled kickbutton, hidedrawing, mutebutton, reportbutton + Added drawcontrols and chatbox_textinput!



點此查看下載連結位址https://update.greasyfork.org.cn/scripts/521978/Drawaria%20Keep%20Buttons%20Enabled%20Uptaded.user.js

安装此脚本?
作者
YouTubeDrawaria
日安装量
0
总安装量
7
评分
0 0 0
版本
2.2
创建于
2024-12-27
更新于
2025-07-09
大小
6.2 KB
许可证
MIT
适用于

This script ensures that specific buttons on the `https://drawaria.online/` website remain enabled and clickable at all times. Here's a brief explanation of its functionality:

1. **Target Buttons**:
- It targets buttons with the classes `btn`, `btn-primary`, `btn-block`, and either `pgdrawbutton` or `spawnavatarbutton`, as well as the button with the ID `sendtogallery` + drawcontrols and chatbox_textinput!

2. **Enable Buttons**:
- The `keepButtonsEnabled` function removes the `disabled` attribute and ensures the buttons are clickable by setting `pointer-events: auto`.

3. **MutationObserver**:
- It uses a `MutationObserver` to monitor changes in the DOM and re-enable the buttons if they are disabled dynamically.

4. **Interval Check**:
- A `setInterval` is added to re-enable the buttons every second as an extra precaution.

5. **Click Event Interception**:
- It intercepts click events on the targeted buttons to ensure they remain enabled even if they are disabled after being clicked.

In summary, this script ensures that the specified buttons are always active and usable, regardless of any changes or restrictions applied by the website.