I'm no where near a coder and have followed the directions and pasted the ticket-getter.min as it didn't have a .js afterward. Below is what I saw when pasting it in Google Chrome when in Eventbrite. Plus, how would I run it and where would I put the start time and quantity? Thank you for your assistance. In addition, how do I add to Mozilla as I downgraded to an old version of Mozilla. Version 68.0 to be exact.
<!DOCTYPE html>
Eventbrite-Tools/ticket-info.min.js at master · Dalimil/Eventbrite-Tools
(()=>{!function(){!function(){if(-1==location.href.indexOf("eventbrite")){conste="You must go to the Eventbrite event page and run the script from there!";throwconsole.error(e),newError(e)}}();lete=null;constt=require("mediatorjs"),n=t&&t.get("ticketOrderOptions");if(n){constt=function(e){constt=e.match(/\"inventoryLevel\":[0-9]+/g);returnt?t.map(e=>e.replace(/"inventoryLevel":/,"")):[]}(document.documentElement.innerHTML);t.length==n.collection.length&&n.collection.forEach((e,n)=>{e.number_of_tickets_remaining=e.number_of_tickets_remaining||t[n]});consto=function(e){returne.collection.map(function(e){return{name:e.ticket_name,quantity:{quantity_remaining:e.number_of_tickets_remaining},cost:e.is_free?"Free":null==e.total_cost?e.ticket_price:e.total_cost.display,status:{status_is_sold_out:e.status_is_sold_out,status_is_ended:e.status_is_ended,status_not_yet_started:e.not_yet_started,on_sale_status:e.on_sale_status},dates:{sales_start:e.start_sales_with_tz?newDate(e.start_sales_with_tz.utc).toLocaleString():"unavailable",sales_end:e.end_sales_with_tz?newDate(e.end_sales_with_tz.utc).toLocaleString():"unavailable"}}})}(n);e=JSON.stringify(o,null,2),o.length>1&&(e="<strong>There are several ticket classes...</strong>\n\n"+e)}elsee="Unable to retrieve ticket information. Eventbrite must have changed their code...";console.log(e),function(e){constt="tooltip-custom-event-info";letn=document.getElementById(t);null!=n&&document.body.removeChild(n),(n=document.createElement("div")).id=t,n.style.cssText="width: 40%; max-height: 75%; white-space: pre; overflow-y: auto; background-color: #333; color: #EEE; border-radius: 6px; box-shadow: 0px 0px 5px #999; position: fixed; left: 1em; top: 6em; z-index: 10001; padding: 1em 2em 1em 1em;";consto=document.createElement("a");o.innerHTML="×",o.href="javascript:void(0)",o.onclick=function(){document.body.removeChild(this.parentElement)},o.style="float: right; font-weight: bold; font-size: 2.5em; line-height: 1em;position: fixed; left: 40%";consti=document.createElement("div");i.innerHTML=e,n.appendChild(o),n.appendChild(i),document.body.appendChild(n)}(e)}()})();
I'm no where near a coder and have followed the directions and pasted the ticket-getter.min as it didn't have a .js afterward. Below is what I saw when pasting it in Google Chrome when in Eventbrite. Plus, how would I run it and where would I put the start time and quantity? Thank you for your assistance. In addition, how do I add to Mozilla as I downgraded to an old version of Mozilla. Version 68.0 to be exact.
<!DOCTYPE html>
Learn Git and GitHub without any code!
Using the Hello World guide, you’ll start a branch, write comments, and open a pull request.
Read the guideDalimil / Eventbrite-Tools
Branch: master
Eventbrite-Tools/ticket-info.min.js /
Code definitions
Jump to