Skip to content

Instantly share code, notes, and snippets.

@gje4
Created July 7, 2021 18:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gje4/0eafa279762241196331596140d1c22b to your computer and use it in GitHub Desktop.
Save gje4/0eafa279762241196331596140d1c22b to your computer and use it in GitHub Desktop.
` 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