I have a bookmarklet that I\'ve made and it loads a script from my server onto the users current page. However I have an if check in my script that if a condition is not met the
if (document.getElementById('element-id')) { // if exist must do something }
hi, this is worked for me, plesea try it if you still need it