Last active
April 7, 2020 12:03
-
-
Save cahva/594dce8ba364f6a735aa578ea1acd3a6 to your computer and use it in GitHub Desktop.
Change privacypolicy text in videosync registration
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
<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