Last active
April 2, 2025 07:45
-
-
Save skyghis/eac11f150ffb9a7e005ce1c6fe5bb525 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Ygg corriger l'affichage des images | |
// @version 1.1.5 | |
// @description Corrige le soucis d'affichage des images dans les posts (https://www2.yggtorrent.si/forum/index.php?threads/probleme-affichage-image-dans-mes-up.46302/page-9) | |
// @namespace https://gist.github.com/skyghis/eac11f150ffb9a7e005ce1c6fe5bb525 | |
// @updateURL https://gist.github.com/skyghis/eac11f150ffb9a7e005ce1c6fe5bb525/raw | |
// @match https://*ygg.*/* | |
// @match https://*yggtorrent.*/* | |
// @icon https://www.yggtorrent.top/favicon.ico | |
// @author SkyghiS | |
// @homepageURL https://gist.github.com/skyghis/eac11f150ffb9a7e005ce1c6fe5bb525 | |
// @run-at document-idle | |
// ==/UserScript== | |
const imgProxyToRemove = "https://images.weserv.nl/?url="; | |
[...document.getElementsByTagName("img")] | |
.filter(i => i.src.startsWith(imgProxyToRemove)) | |
.forEach(i => i.src = i.src.replaceAll(imgProxyToRemove, "")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment