Created
August 24, 2021 23:34
-
-
Save duplaja/cfcdd60a43930cd2faa4922163192d33 to your computer and use it in GitHub Desktop.
Album Rating BestEverAlbums
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment