A Pen by Ryan Smith on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//export_csv_favorites('page_recommendations_list_main'); | |
//export_csv_favorites('page_recommendations_list_non_affinity'); | |
function export_csv_favorites(passed_parent_id) { | |
const rows = [["Artist - Album","Year","Genres","RYM Link"]] | |
var title | |
var artist | |
var combined | |
var list = document.getElementById(passed_parent_id); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (let i = 1; i < 8; i++) { | |
setTimeout(function timer() { | |
window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' }) | |
if(i == 7) { | |
export_csv_favorites(); | |
} | |
}, i * 4000); | |
} | |
function export_csv_favorites() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ratingContainer = document.getElementsByClassName("object-interaction-panel-rating")[0]; | |
var albumIdElement = ratingContainer.getElementsByTagName("ul")[0]; | |
var albumId = albumIdElement.id; | |
var rating = prompt("Please enter your rating out of 100, as a multiple of 5."); | |
var ratingHolderId = albumId.replace("star_","starUser_"); | |
document.getElementById(ratingHolderId).innerHTML = rating+'/100'; | |
star.update('onmousedown',albumIdElement); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Force Sticky Header*/ | |
div#header{ | |
position: sticky!important; | |
top: 0; | |
z-index: 100; | |
} | |
/*Hide Overdue Assignments Section on Home*/ | |
div#overdue-submissions{ | |
display:none!important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var noteValues = { | |
'C0': 16.35, | |
'C#0': 17.32, | |
'Db0': 17.32, | |
'D0': 18.35, | |
'D#0': 19.45, | |
'Eb0': 19.45, | |
'E0': 20.60, | |
'F0': 21.83, | |
'F#0': 23.12, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Útil para filtros de Gutenberg como "allowed_block_types" | |
archives | |
audio | |
button | |
categories | |
code | |
column | |
columns | |
coverImage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Make Allmusic Accessible: Follow Artist | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Makes the clickable div button to follow an artist accessible to screenreaders | |
// @author Dan Dulaney | |
// @match https://www.allmusic.com/artist/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gform_wrapper .pt-toggle .gfield_checkbox input[type=checkbox] { | |
margin-left: -9999px; | |
position: absolute; | |
visibility: hidden; | |
} | |
.gform_wrapper .pt-toggle .gfield_checkbox input[type=checkbox] + label { | |
background-color: #ddd; | |
border-radius: 60px; | |
cursor: pointer; | |
display: block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Change gform_pre_submission_1 to gform_pre_submission_(your form # here) | |
add_action( 'gform_pre_submission_1', 'sweepstakes_winner_check' ); | |
function sweepstakes_winner_check( $form ) { | |
//Array of codes for the first listed prize | |
$prize_one = array('aaaa','bbbb','cccc'); | |
//Array of codes for second listed prize |