Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** Use Any Blook */
- (function() {
- const lobby = window.location.pathname.startsWith("/play/lobby");
- const dashboard = !lobby && window.location.pathname.startsWith("/blooks");
- if (dashboard) {
- let key = "konzpack";
- let propCall = Object.prototype.hasOwnProperty.call;
- let webpack = webpackChunk_N_E.push([
- [key],
- { [key]: () => {} },
- function (func) {
- Object.prototype.hasOwnProperty.call = function () {
- Object.defineProperty(arguments[0], key, { set: () => {}, configurable: true });
- return (Object.prototype.hasOwnProperty.call = propCall).apply(this, arguments);
- };
- return func;
- },
- ]);
- const blookData = webpack(4927).nK;
- const blooksHook = Object.values(document.querySelector("[class*=BlooksWrapper_content]"))[0].return.memoizedState.next;
- const showBlooks = blooksHook.memoizedState;
- const seen = {};
- const userBlooks = [];
- const prices = {
- Uncommon: 5,
- Rare: 20,
- Epic: 75,
- Legendary: 200,
- Chroma: 300,
- Unique: 350,
- Mystical: 1000,
- };
- for (const data of blooksHook.next.memoizedState) {
- userBlooks.push(data);
- seen[data.blook] = true;
- }
- for (const blook in blookData) {
- if (blookData[blook].rarity != "Common" && !seen[blook]) {
- userBlooks.push({
- blook,
- quantity: 1,
- sellPrice: prices[blookData[blook].rarity],
- });
- }
- }
- blooksHook.next.queue.dispatch(userBlooks);
- blooksHook.queue.dispatch(!showBlooks);
- setTimeout(() => blooksHook.queue.dispatch(showBlooks), 1);
- } else if (lobby) {
- function getStateNode() {
- return Object.values((function react(r = document.querySelector("body>div")) {
- return Object.values(r)[1]?.children?.[0]?._owner.stateNode ? r : react(r.querySelector(":scope>div"));
- })())[1].children[0]._owner.stateNode;
- }
- getStateNode().setState({ unlocks: { includes: () => !0 } });
- } else {
- alert("This only works in lobbies or the dashboard blooks page.");
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment