Drawaria Enhanced Ratedrawerbox

Mantiene el elemento #ratedrawerbox siempre visible, activo y clickeable, incluso si estás prohibido de dibujar, y permite su reutilización

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
YouTubeDrawaria
日安装量
0
总安装量
12
评分
0 0 0
版本
2024-12-28
创建于
2024-12-28
更新于
2024-12-28
大小
2.9 KB
许可证
MIT
适用于

This script ensures that the `#ratedrawerbox` element on the Drawaria website remains **always visible, active, and clickable**, even if the user is prohibited from drawing. It also allows the `ratedrawerbox` to be reused. Here’s a brief breakdown of its functionality:

1. **Visibility and Activity**:
- The script ensures the `#ratedrawerbox` is always displayed (`display: block`), visible (`visibility: visible`), and interactive (`pointer-events: auto`).

2. **Button Interception**:
- It intercepts the `.ratedrawerbox-button` click event to force the use of the `ratedrawerbox` functionality, even if the user is restricted from drawing.
- After triggering the `ratedrawerbox`, it resets its state to ensure it remains usable.

3. **DOM Monitoring**:
- A `MutationObserver` monitors the DOM for changes to ensure the `ratedrawerbox` stays visible and active.
- An interval is also set to periodically check and maintain the `ratedrawerbox` functionality.

### Purpose:
This script is designed to **bypass restrictions** on the `ratedrawerbox` element, ensuring users can always interact with it, regardless of their drawing permissions. It’s useful for maintaining access to rating or drawing-related features on the site.