Skip to content

Instantly share code, notes, and snippets.

@cahva
Last active April 7, 2020 12:03
Show Gist options
  • Save cahva/594dce8ba364f6a735aa578ea1acd3a6 to your computer and use it in GitHub Desktop.
Save cahva/594dce8ba364f6a735aa578ea1acd3a6 to your computer and use it in GitHub Desktop.
Change privacypolicy text in videosync registration
<script>
var url = window.location.href;
/* wait for element to be ready and then change text */
function tryEl(e) {
var privEl = document.querySelector('.register-form .privacyread span');
if (!privEl) {
window.requestAnimationFrame(tryEl);
} else {
changeText(privEl);
}
}
function changeText(el) {
var rText = '* Jag har läst och accepterar <a href="https://getvideosync.com/privacypolicy" target="_blank">sekretesspolicyn</a>.';
el.innerHTML = rText;
}
if (url.includes('/register')) {
tryEl();
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment