DIY_eJuice
https://ift.tt/eA8V8J
I made a script that copies all the flavors in your cart for easy sharing (prevent yourself from buying a shit flavor) https://ift.tt/2K3ehKj

How-to

  1. Copy the code listed under the vendor you wish to copy your cart from below (triple click to select whole line)
  2. Navigate to said vendors cart
  3. Press Option + ⌘ + J (on macOS), or Shift + CTRL + J (on Windows/Linux)
  4. Paste the script into the console
  5. Press enter

Bullcity Flavors

!function(){!function(e){if(!window.location.href.includes(e.cart)&&window.confirm("You must go to your cart first. After pressing OK, paste the script again."))return void window.location.replace(e.cart);if(!document.querySelectorAll(e.flavor).length)return void alert("You have no flavors in your cart to copy.");(e=>{const o=document.createElement("textarea");o.value=e,document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o)})("\n"+Array.from(document.querySelectorAll(e.flavor)).map(e=>e.childNodes[0].textContent.trim()).sort().join("\n").concat("\n")),alert("flavors have been copied to, go paste them somewhere!")}({cart:"https://www.bullcityflavors.com/cart.php",flavor:".cart-item h4 a"})}();

Ecigexpress

!function(){!function(e){if(!window.location.href.includes(e.cart)&&window.confirm("You must go to your cart first. After pressing OK, paste the script again."))return void window.location.replace(e.cart);if(!document.querySelectorAll(e.flavor).length)return void alert("You have no flavors in your cart to copy.");(e=>{const o=document.createElement("textarea");o.value=e,document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o)})("\n"+Array.from(document.querySelectorAll(e.flavor)).map(e=>e.childNodes[0].textContent.trim()).sort().join("\n").concat("\n")),alert("flavors have been copied to, go paste them somewhere!")}({cart:"https://ecigexpress.com/cart",flavor:"h5.product-name a"})}();

Chef's Flavours

!function(){!function(e){if(!window.location.href.includes(e.cart)&&window.confirm("You must go to your cart first. After pressing OK, paste the script again."))return void window.location.replace(e.cart);if(!document.querySelectorAll(e.flavor).length)return void alert("You have no flavors in your cart to copy.");(e=>{const o=document.createElement("textarea");o.value=e,document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o)})("\n"+Array.from(document.querySelectorAll(e.flavor)).map(e=>e.childNodes[0].textContent.trim()).sort().join("\n").concat("\n")),alert("flavors have been copied to, go paste them somewhere!")}({cart:"https://chefsflavours.co.uk/cart.php",flavor:".cart-item h4 a"})}();

Nicotine River

!function(){!function(e){if(!window.location.href.includes(e.cart)&&window.confirm("You must go to your cart first. After pressing OK, paste the script again."))return void window.location.replace(e.cart);if(!document.querySelectorAll(e.flavor).length)return void alert("You have no flavors in your cart to copy.");(e=>{const o=document.createElement("textarea");o.value=e,document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o)})("\n"+Array.from(document.querySelectorAll(e.flavor)).map(e=>e.childNodes[0].textContent.trim()).sort().join("\n").concat("\n")),alert("flavors have been copied to, go paste them somewhere!")}({cart:"https://riversupplyco.com/cart",flavor:"h5.product-title a"})}();

here is the unminified source

How-toCopy the code listed under the vendor you wish to copy your cart from below (triple click to select whole line)Navigate to said vendors cartPress Option + ⌘ + J (on macOS), or Shift + CTRL + J (on Windows/Linux)Paste the script into the consolePress enterBullcity Flavors!function(){!function(e){if(!window.location.href.includes(e.cart)&&window.confirm(“You must go to your cart first. After pressing OK, paste the script again.”))return void window.location.replace(e.cart);if(!document.querySelectorAll(e.flavor).length)return void alert(“You have no flavors in your cart to copy.”);(e=>{const o=document.createElement(“textarea”);o.value=e,document.body.appendChild(o),o.select(),document.execCommand(“copy”),document.body.removeChild(o)})(“\n”+Array.from(document.querySelectorAll(e.flavor)).map(e=>e.childNodes[0].textContent.trim()).sort().join(“\n”).concat(“\n”)),alert(“flavors have been copied to, go paste them somewhere!”)}({cart:”https://www.bullcityflavors.com/cart.php”,flavor:”.cart-item h4 a”})}();Ecigexpress!function(){!function(e){if(!window.location.href.includes(e.cart)&&window.confirm(“You must go to your cart first. After pressing OK, paste the script again.”))return void window.location.replace(e.cart);if(!document.querySelectorAll(e.flavor).length)return void alert(“You have no flavors in your cart to copy.”);(e=>{const o=document.createElement(“textarea”);o.value=e,document.body.appendChild(o),o.select(),document.execCommand(“copy”),document.body.removeChild(o)})(“\n”+Array.from(document.querySelectorAll(e.flavor)).map(e=>e.childNodes[0].textContent.trim()).sort().join(“\n”).concat(“\n”)),alert(“flavors have been copied to, go paste them somewhere!”)}({cart:”https://ecigexpress.com/cart”,flavor:”h5.product-name a”})}();Chef’s Flavours!function(){!function(e){if(!window.location.href.includes(e.cart)&&window.confirm(“You must go to your cart first. After pressing OK, paste the script again.”))return void window.location.replace(e.cart);if(!document.querySelectorAll(e.flavor).length)return void alert(“You have no flavors in your cart to copy.”);(e=>{const o=document.createElement(“textarea”);o.value=e,document.body.appendChild(o),o.select(),document.execCommand(“copy”),document.body.removeChild(o)})(“\n”+Array.from(document.querySelectorAll(e.flavor)).map(e=>e.childNodes[0].textContent.trim()).sort().join(“\n”).concat(“\n”)),alert(“flavors have been copied to, go paste them somewhere!”)}({cart:”https://chefsflavours.co.uk/cart.php”,flavor:”.cart-item h4 a”})}();Nicotine River!function(){!function(e){if(!window.location.href.includes(e.cart)&&window.confirm(“You must go to your cart first. After pressing OK, paste the script again.”))return void window.location.replace(e.cart);if(!document.querySelectorAll(e.flavor).length)return void alert(“You have no flavors in your cart to copy.”);(e=>{const o=document.createElement(“textarea”);o.value=e,document.body.appendChild(o),o.select(),document.execCommand(“copy”),document.body.removeChild(o)})(“\n”+Array.from(document.querySelectorAll(e.flavor)).map(e=>e.childNodes[0].textContent.trim()).sort().join(“\n”).concat(“\n”)),alert(“flavors have been copied to, go paste them somewhere!”)}({cart:”https://riversupplyco.com/cart”,flavor:”h5.product-title a”})}();here is the unminified source

Submitted November 09, 2019 at 12:06PM by Shty_Dev
via reddit https://ift.tt/2NW5mLz}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s