BlockOnche

Remplace le site avec une image et un lien

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==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);
})();