Skip to content

Instantly share code, notes, and snippets.

@zecar
Created April 19, 2021 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zecar/ea44de69d1e9a7eaacecff3f1bb21514 to your computer and use it in GitHub Desktop.
Save zecar/ea44de69d1e9a7eaacecff3f1bb21514 to your computer and use it in GitHub Desktop.
document ready
function contentLoaded() {
document.addEventListener("stamped:badges:loaded", function() {
$(".stamped-badge[data-rating!='0.0']").parent().addClass("has-rating")
})
}
if (document.readyState === "complete" || document.readyState === "loaded" || document.readyState === "interactive"){
contentLoaded();
} else {
window.addEventListener("DOMContentLoaded",contentLoaded);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment