Advertisement
jamescolin

Pricing Split Tool

Feb 15th, 2024
1,133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. window.addEventListener('load', function() {
  3.   const parentDiv = document.querySelector('div[id^="order-bump-"]');
  4.   if (parentDiv) {
  5.     const checkbox = parentDiv.querySelector('input[type="checkbox"]');
  6.     if (checkbox) {
  7.       checkbox.id = 'hiddenbump';
  8.       checkbox.click();
  9.       parentDiv.style.display = 'none';
  10.     }
  11.   }
  12.   const pricePlanListContainers = document.querySelectorAll('div[class*="PricePlanListUi"]');
  13.   pricePlanListContainers.forEach(function(listContainer) {
  14.     const radios = listContainer.querySelectorAll('input[type="radio"]');
  15.     if (radios.length === 1) {
  16.       radios[0].parentElement.removeChild(radios[0]);
  17.     }
  18.   });
  19. });
  20. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement