7PH / powerglitch

Tiny JS library to glitch anything on the web
https://7ph.github.io/powerglitch/
MIT License
767 stars 9 forks source link

Issue with search engines #32

Open AnixPasBesoin opened 1 month ago

AnixPasBesoin commented 1 month ago

Is it possible to make the glitched text non viewable to search engines?

Due to the way the glitching effect is applied on textual elements (create multiple copies and play with their positional offsets), if by any chance a search engine bot vists when the effefct is applied, the repeated text would be indexed.

7PH commented 1 month ago

Hey @AnixPasBesoin, thanks for opening an issue, Typically search engines will not run the JavaScript code so will not be able to see the repeated text. Do you have any example where that wasn't the case, or wouldn't be the case?

AnixPasBesoin commented 1 month ago

Thanks for the reply @7PH. Looks like Google does run js :)). Here's how it looks like:

image

I will refactor things on our end so that powerglitch is not run when robots visit. A native solution for future users would be great though.

Thanks for the great library btw 👍