您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Duplicates items in Bloxd.io
// ==UserScript== // @name Bloxd.io Item Duplicator // @namespace http://tampermonkey.net/ // @version 0.1 // @description Duplicates items in Bloxd.io // @author gamedubdub // @match https://bloxd.io/* // @grant none // ==/UserScript== (function() { 'use strict'; // Function to duplicate the item function duplicateItem() { // Try to find the item by a common class or ID let selectedItem = document.querySelector('.item, .block, .inventory-item'); // You can try changing these if they don't work if (selectedItem) { let clonedItem = selectedItem.cloneNode(true); // Clone the selected item selectedItem.parentNode.appendChild(clonedItem); // Add the duplicated item to the page console.log('Item duplicated!'); } else { console.log('Item not found!'); } } // Add an event listener to trigger duplication on 'D' key press document.addEventListener('keydown', function(event) { if (event.key === 'D') { // Press 'D' to trigger duplication duplicateItem(); } }); })();