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.

作者
YouTubeDrawaria
日安装量
0
总安装量
1
评分
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!

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址