If it matters to anybody, the following code is small and works flawless, to get a single hash value from the URL and show that:
<script>
window.onload = function () {
let url = document.location.toString();
let splitHash = url.split("#");
document.getElementById(splitHash[1]).click();
};
</script>
what it does is it retrieves the id and fires the click event. Simple.