Are you sure you want to go to an external site to donate a monetary value?
WARNING: Some countries laws may supersede the payment processors policy such as the GDPR and PayPal. While it is highly appreciated to donate, please check with your countries privacy and identity laws regarding privacy of information first. Use at your utmost discretion.
For example, if you press download button here https://www.fimfiction.net/story/463036/the-greatest-trick or press play at https://bandcamp.com
Thank you for the feedback! I'll investigate this issue. Please, use Github issues if you want to report any bugs in the future.
EDIT I've just found out that my script also breaks bandcamp.com: when I'm trying to play any album in my collection, it starts playing, but then immediately reloads the page.
I'm confused, how this little 4-liner could make this?
UPD I think that I've found the source of this issue. Some websites (ab)use
<a>
tag withouthref
attribute to make buttons that execute some JavaScript code when pressed. My script adds emptyhref
attribute to such tags, so instead of this:<a class="track_play_auxiliary" data-trackid="3827312825">...</a>
...it starts looking like this:
<a class="track_play_auxiliary" data-trackid="3827312825" href="">...</a>
Browser interprets empty
href
as current page, so after pressing the button the page is updated.Fixed by https://github.com/Logarithmus/crates-io-to-lib-rs/commit/be85ee3a0a69ea933e0d993f2c7a5c0f4f4fd4b7.
Closing.