Quote:
Originally Posted by iG0R
Sorry, my bad, it has to be
Code:
if (window.location.hostname === 'www.google.com') {
window.addEventListener('DOMContentLoaded', fix_google_markup());
}
to work properly.
|
No, that's wrong. If you add () it means the function is called when the script is loaded instad of when the DOM is ready.