Last active
June 25, 2021 13:29
-
-
Save vitoo/8fc9b5cf3ce1ee66dbb3dc7a8da72dd2 to your computer and use it in GitHub Desktop.
archv.user.js
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 archv.user.js | |
// @version 0.1 | |
// @grant none | |
// @include /^(http|https):\/\/www\.jeuxvideo\.com\/forums\/(.*)$/ | |
// ==/UserScript== | |
let topic410 = false; | |
if(document.getElementsByClassName("img-erreur")[0] && document.getElementsByClassName("img-erreur")[0].src == "https://www.jeuxvideo.com/img/erreurs/e410.png"){ | |
topic410 = true; | |
} | |
if(topic410){ | |
var url = document.location.href.replace("jeuxvideo.com","jvarchive.com"); | |
document.location.href=url; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment