(http/https): https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)
^(\d+)\.\s
| window.addEventListener("load", fixStupidDiscordSpellcheck, false); | |
| window.addEventListener('locationchange', fixStupidDiscordSpellcheck, false); | |
| window.addEventListener('hashchange', fixStupidDiscordSpellcheck, false); | |
| function fixStupidDiscordSpellcheck(event){ | |
| setTimeout(function() { | |
| var textBoxes = document.querySelectorAll('div[role="textbox"]'); |
| window.addEventListener("load", function(event) { | |
| const ratingtd = document.getElementById("ratingstdtitle"); | |
| const orig_rating = document.getElementById("form_rating").value; | |
| const button = document.createElement('a'); | |
| button.setAttribute("id", "rate-button"); | |
| button.innerHTML = "<h3>Rate Book (Current Rating: "+orig_rating+")</h3>" |
| <?php | |
| function lottery_spin_the_wheel() { | |
| //Form is key (reward as string) value (frequency as int) | |
| $rewards_master = array( | |
| '1 bonus token'=>25, | |
| '5-album mini themed list'=>20, | |
| 'Album on demand'=>20, | |
| 'Trade 1 token for 2 tokens of your choice'=>15, | |
| 'Top-off overload +5 on Wednesday'=>10, |
| <?php | |
| if ( ! function_exists('register_equpiment_post_type') ) { | |
| // Register Custom Post Type | |
| function register_equpiment_post_type() { | |
| $labels = array( | |
| 'name' => 'Equipment', | |
| 'singular_name' => 'Equpiment', |
| function generateDownload(filename, text, type='text/plain') { | |
| // Create an invisible A element | |
| const a = document.createElement('a'); | |
| a.style.display = 'none'; | |
| document.body.appendChild(a); | |
| // Set the HREF to a Blob representation of the data to be downloaded | |
| a.href = window.URL.createObjectURL( | |
| new Blob([text], { type }) | |
| ); |
| window.addEventListener("load", function(event) { | |
| var userratingdiv = document.getElementsByClassName("ratings")[0]; | |
| const button = document.createElement('a'); | |
| button.setAttribute("id", "rate-button"); | |
| button.innerHTML = '<h3>Rate Album</h3>' | |
| userratingdiv.insertBefore(button, userratingdiv.firstChild) | |
| var userratingbutton = document.getElementById("rate-button"); |
| getRYMChart(); | |
| function getRYMChart() { | |
| const rows = [["Artist-Album","Release","Genres","Link"]] | |
| var tables = document.querySelectorAll("div.chart_results_frame"); | |
| var recTable = tables[0]; | |
| var tableRows = recTable.querySelectorAll("div.topcharts_itembox"); |
| function customShuffle(x) { | |
| var y = x.slice(1, x.length); | |
| var j, t, i; | |
| for (i = y.length - 1; i > 0; i--) { | |
| j = Math.floor(Math.random() * (i + 1)); | |
| t = y[i]; | |
| y[i] = y[j]; | |
| y[j] = t; | |
| } | |
| return [x[0]].concat(y); |
| getSpotispin(); | |
| function getSpotispin() { | |
| const rows = [["Artists-Album","Link"]] | |
| var tableRows = document.querySelectorAll("tr.single_rec"); | |
| for (i = 0; i < tableRows.length; i++) { | |
| combined = tableRows[i].querySelectorAll("td.album_name")[0].innerText.trim(); | |