Propose d'activer 1.1.1.1 sur jeuxvideo.com pour éviter les captchas
当前为
// ==UserScript==
// @name JVC Cloudflare Bypass
// @namespace https://jeuxvideo.com/
// @version 1.2
// @description Propose d'activer 1.1.1.1 sur jeuxvideo.com pour éviter les captchas
// @author HulkDu92
// @match *://www.jeuxvideo.com/*
// @grant GM_xmlhttpRequest
// @license MIT
// @icon https://image.noelshack.com/fichiers/2025/06/5/1738891409-68747470733a2f2f74616d6e762e696d6769782e6e65742f63665f6279706173735f6c6f676f2e706e67.png
// ==/UserScript==
(function() {
'use strict';
function checkWarpStatus() {
GM_xmlhttpRequest({
method: "GET",
url: "https://cloudflare.com/cdn-cgi/trace",
onload: function(response) {
const warpActive = response.responseText.includes("warp=on");
if (!warpActive) { // Montrer bouton seulement si WARP n'est PAS actif
showButton();
}
}
});
}
function showButton() {
const btn = document.createElement("button");
btn.id = "warpButton";
btn.style.position = "fixed";
btn.style.bottom = "20px";
btn.style.right = "20px";
btn.style.padding = "8px 16px";
btn.style.borderRadius = "4px";
btn.style.border = "none";
btn.style.cursor = "pointer";
btn.style.backgroundColor = "#FF5722";
btn.style.color = "white";
btn.style.boxShadow = "0 2px 5px rgba(0,0,0,0.26)";
btn.textContent = "Activer WARP";
btn.onclick = function() {
window.open("https://1.1.1.1/", "_blank");
};
document.body.appendChild(btn);
}
checkWarpStatus();
})();