Created
December 5, 2018 08:35
-
-
Save lasconic/b9691699fdf997260891af4d19829a8a to your computer and use it in GitHub Desktop.
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
(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