Set Bopimo Coins to custom amount.

Sets the displayed coin count on Bopimo to a custom amount.

  1. // ==UserScript==
  2. // @name Set Bopimo Coins to custom amount.
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Sets the displayed coin count on Bopimo to a custom amount.
  6. // @author Teemsploit
  7. // @match *://*.bopimo.com/*
  8. // @grant none
  9. // @license Unlicense
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. function setCoins() {
  16. const coinElements = document.querySelectorAll('.flex-align-middle.v-popper--has-tooltip');
  17.  
  18. coinElements.forEach(element => {
  19. const coinIcon = element.querySelector('.b-coin');
  20. const coinText = element.querySelector('div:nth-child(2)');
  21.  
  22. if (coinIcon && coinText) {
  23. coinText.textContent = '24.3k';
  24. }
  25. });
  26. }
  27.  
  28. setCoins();
  29.  
  30. const observer = new MutationObserver(setCoins);
  31. observer.observe(document.body, { childList: true, subtree: true });
  32. })();