Created
July 7, 2021 18:54
-
-
Save gje4/0eafa279762241196331596140d1c22b to your computer and use it in GitHub Desktop.
This file contains 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
` const parent = document.links; | |
let data = sessionStorage.getItem('state'); | |
const params = new URL(window.location.href).searchParams; | |
if(params.get('available_state')) { | |
for (const link of parent) { | |
console.log(link); | |
link.href+="?_bc_fsnf=1&available_state="+data | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment