FarisHijazi / Rarbg-Enhancer-UserScript

Browser extension for Rarbg.to to add autoCAPTCHA, magnet links, and enhance the interface
MIT License
108 stars 9 forks source link

Magnet GIF Icon [SUGGESTION & FIX INCLUDED] #31

Closed tyhallcsu closed 6 months ago

tyhallcsu commented 6 months ago

The magnet ICO doesnt load on my machine due to DNS not resolving the URL sometimes depending on which internet I am using.

May I suggest an edit?

This code:

const MAGNET_ICO = "https://rarbg.torrentbay.net/static/img/magnet.gif";

Replace it with base64 URI image encoding:

const MAGNET_ICO = "data:image/png;base64,R0lGODlhDAAMAPcAAAAAAGNjY97e3v8AAP8ICP///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH5BAEAAAUALAAAAAAMAAwAAAhMAAEIHEhwoICDAgQiTAhgoUKEDw9GZDhgAAEAAQIAIMBRYMWLBQps7Aig4gCMGjleLGlSoMqVJj++xMhSZscABTSyJIkzZE6CPQsEBAA7";

Not only will it save multiple calls to the magnet.gif, but it also makes sure that the image loads if the URL cannot be reached.

tyhallcsu commented 6 months ago

Hold on --- I think you already fixed this, let me check something

tyhallcsu commented 6 months ago

Nevermind, already implemented THANKS!