Skip to content

eepyfemboi/anti-apple-web-popup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

anti-apple-web-popup

a script that can be added to any webpage that will show a popup if the user is on an apple device

to add this to your webpage, simply put this in the <head> tag of your html:

<!-- Anti-Apple Popup -->
<script async src="https://sleepie.dev/anti-apple-alert.js"></script>

the script (should) automatically check the user agent for signs that the user is on an apple device, and if they are, show a popup.

the user can choose to hide the popup on the current site for 7 days by clicking the "Don't show again" button.

if you add this to your site, make sure to test how it looks by opening dev tools and running do_anti_apple_popup() with the script active on the page. this will bypass any conditions and manually trigger the popup

About

a script that can be added to any webpage that will show a popup if the user is on an apple device

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published