Drawaria Draggable Action Menu Safe Version

Adds a draggable menu with a button to perform autokick actions using WebSockets and shows an alert when kicked.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
YouTubeDrawaria
今日安裝
0
安裝總數
4
評價
0 0 0
版本
2024-05-20
建立日期
2025-01-20
更新日期
2025-01-20
尺寸
5.3 KB
授權條款
MIT
腳本執行於

This script is a **Tampermonkey userscript** designed to enhance the functionality of the website **Drawaria Online** by adding a **draggable menu** with a single button labeled **"AutoKick"**. When clicked, this button triggers an action (simulating a kick) and displays an alert saying **"You have been kicked!"**.

Here’s a step-by-step guide on how to use this script:

---

### **1. Install Tampermonkey**
Tampermonkey is a browser extension that allows you to run userscripts on websites. You’ll need to install it first:

- **For Chrome**: Go to the [Chrome Web Store](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo) and install Tampermonkey.
- **For Firefox**: Go to the [Firefox Add-ons site](https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/) and install Tampermonkey.
- **For Edge**: Go to the [Microsoft Edge Add-ons site](https://microsoftedge.microsoft.com/addons/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo) and install Tampermonkey.

---

### **2. Create a New Script**
Once Tampermonkey is installed, follow these steps to add the script:

1. Click the Tampermonkey icon in your browser toolbar.
2. Select **"Create a new script"**.
3. Delete any default code in the editor and paste the entire script provided above.
4. Save the script by pressing **Ctrl + S** (Windows/Linux) or **Cmd + S** (Mac).

---

### **3. Use the Script on Drawaria Online**
1. Open the website: [https://drawaria.online](https://drawaria.online).
2. Log in or join a room as usual.
3. Once the page loads, you should see a **draggable menu** appear on the screen with a single button labeled **"AutoKick"**.
4. You can click and drag the menu to move it around the screen.
5. Click the **"AutoKick"** button to trigger the action. An alert will pop up saying **"You have been kicked!"**.

---

### **4. How It Works**
- **Draggable Menu**: The menu is positioned on the screen and can be moved by clicking and dragging it.
- **AutoKick Button**: When clicked, the script simulates a kick action by calling `window['___BOT'].room.join('')`. This is specific to Drawaria Online's internal functionality.
- **Alert**: After the action is triggered, a browser alert is displayed to notify the user.

---

### **5. Customization**
If you want to customize the script, here are some things you can do:
- **Change the Alert Message**: Modify the text inside the `alert("You have been kicked!");` line to display a different message.
- **Change the Button Text**: Edit the `autoKickButton.textContent = 'AutoKick';` line to change the button label.
- **Change the Menu Style**: Modify the CSS inside the `CreateStylesheet` function to change the appearance of the menu and button.

---

### **6. Troubleshooting**
- **Script Not Working**: Ensure that Tampermonkey is enabled and the script is active. Check the Tampermonkey dashboard to confirm.
- **No Menu Appears**: Make sure you’re on the correct website (`https://drawaria.online`) and that the script is running on that page.
- **Errors in Console**: Open the browser’s developer tools (usually by pressing **F12**) and check the console for any errors. If there are issues with the WebSocket or `window['___BOT']`, it might be due to changes in the website’s code.

---

### **7. Safety and Ethics**
- This script is intended for educational purposes and personal use. Be mindful of the rules of the website and avoid using it in a way that disrupts others' experience.
- The script does not inject malicious code or steal data. It only interacts with the website’s existing functionality.

---

By following these steps, you should be able to use the script successfully on Drawaria Online. Let me know if you have any questions or need further assistance!