BlockOnche

Remplace le site avec une image et un lien

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         BlockOnche
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Remplace le site avec une image et un lien
// @match        https://www.jeuxvideo.com/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    var preload = new Image();
    preload.src = imageUrl;
    var imageUrl = "https://image.noelshack.com/fichiers/2023/11/4/1678982162-revolution-onche2.jpg";
    var text = "Nique Webedia et les modos";
    var linkUrl = "https://onche.org/";
    document.body.innerHTML = "";
    var div = document.createElement("div");
    div.style.display = "flex";
    div.style.flexDirection = "column";
    div.style.alignItems = "center";
    div.style.justifyContent = "center";
   document.body.appendChild(div);
   var image = document.createElement("img");
   image.src = imageUrl;
   div.appendChild(image);
   var p = document.createElement("p");
   p.textContent = text;
   p.style.fontSize = "36px";
   p.style.color = "red";
  p.style.animation = "blink 1s infinite";
  div.appendChild(p);
  var style = document.createElement("style");
  style.textContent =
      "@keyframes blink {" +
      "0% {opacity: 1;}" +
      "50% {opacity: 0;}" +
      "100% {opacity: 1;}" +
      "}";
  document.head.appendChild(style);
  var a = document.createElement("a");
  a.href = linkUrl;
  a.textContent = linkUrl;
  a.style.fontSize = "24px";
  a.style.color ="blue";
  div.appendChild(a);
})();