Skip to content

Instantly share code, notes, and snippets.

@lasconic
Created December 5, 2018 08:35
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 lasconic/b9691699fdf997260891af4d19829a8a to your computer and use it in GitHub Desktop.
Save lasconic/b9691699fdf997260891af4d19829a8a to your computer and use it in GitHub Desktop.
(function() {
function readAll() {
const links = document.querySelectorAll("div.forum__topic-status--new + div.forum__title div.forum__name a")
for (const a of links) {
console.log(a.href)
var sArray = a.href.split("/")
var nid = sArray[sArray.length - 1];
var readUrl = "https://musescore.org/en/history/"+nid+"/read"
console.log(readUrl)
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "POST", readUrl, false ); // false for synchronous request
xmlHttp.send( null );
console.log(xmlHttp.responseText);
}
}
var original = window.MuseScoreorg;
var self = (window.MuseScoreorg = {
add: add,
noConflict: function() {
window.SeaDragon = original;
return self;
}
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment