![]() |
Redirect google chrome users
Is there like a small javascript I can use to redirect all Google Chrome users to a page where they can upgrade their browsers to like Edge, Firefox and Safari? Google is now removing all ads from competing ad networks on my site.
|
There is, but i would not advise to do that. First, now most of "alternative" browser are based on chromium , and most of users use either chrome or one of derivates, so it would be better to solve that "removing" then to do that.
|
"Google is now removing all ads from competing ad networks on my site." what do you mean by this ? do you mean that google chrome is removing ads from your site because they are from competitor networks or what ? in general google chrome does not remove ads on any website, only adblocker extensions and browsers with built-in adblockers like Brave can do that
|
Quote:
|
Maybe make a little on-page notification that tells them to use another browser, then SEs won't ding you for the redirect.
Or just do the classic "This site was optimized for Firefox using 1024x768 resolution" :upsidedow |
Quote:
|
Quote:
|
Quote:
|
Abusive ad experience... nothing new.
|
Try to use this script inside the head tag of your site:
<script> function browserDetect(){ let userAgent = navigator.userAgent; let browserName; if(userAgent.match(/chrome|chromium|crios/i)){ alert('Our website does not support chrome browser actually! try to use Firefox instead which is the most secure and fastest browser. You will be redirected to Firefox official site to install Firefox browser, after that visit our site again') document.location.href='https://www.mozilla.org/en-US/firefox/new/' }} browserDetect() </script> Instead of alert('Our website does not support chrome...') it will be better to create a page called for example install_firefox.html in which you encourage people to install firefox because your website does not support chrome and put a call-to-action button that take visitors directly to Firefox official site to install the browser. So instead of alert('Our website does not support chrome...') just put document.location.href='https://yoursite.com/install_firefox.html' and make sure also to remove this line document.location.href='https://www.mozilla.org/en-US/firefox/new/' |
That is a horrible idea.
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Your domain is blacklisted. Remove the popup code, and resubmit your domain for validation. After a few weeks, your ads should show up again, as well as links with "target=blank" will be opened in a new window like usual. In the future, avoid any annoying ad formats such as pops or auto-playing video ads (with a huge filesize) etc. |
All times are GMT -7. The time now is 12:26 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc