// ==UserScript== // @name [Pokeclicker] Oak Items Unlimited // @namespace Pokeclicker Scripts // @author Ephenia // @description Removes the limit for the amount of Oak Items that you're able to equip so that you're able to equip all of them. // @copyright https://github.com/Ephenia // @license GPL-3.0 License // @version 1.0 // @homepageURL https://github.com/Ephenia/Pokeclicker-Scripts/ // @supportURL https://github.com/Ephenia/Pokeclicker-Scripts/issues // @match https://www.pokeclicker.com/ // @icon https://www.google.com/s2/favicons?domain=pokeclicker.com // @grant none // @run-at document-idle // @downloadURL none // ==/UserScript== var scriptName = 'oakitemsunlimited'; function initOakItems() { var oakItems = App.game.oakItems var oakMax = oakItems.itemList.length; for (let i = 0; i < oakMax; i++) { oakItems.unlockRequirements[i] = 0; } oakItems.maxActiveCount(oakMax); document.getElementById('oakItemsModal').querySelector('h5').innerHTML = "Oak Items Equipped: " + oakItems.activeCount() + '/' + oakMax; } function loadScript() { const oldInit = Preload.hideSplashScreen; hasInitialized = false; Preload.hideSplashScreen = function (...args) { var result = oldInit.apply(this, args); if (App.game && !hasInitialized) { initOakItems(); hasInitialized = true; } return result; } } if (!App.isUsingClient || localStorage.getItem(scriptName) === 'true') { loadScript(); }