koalastothemax custom image

Custom image url

Skaber
ia-nah
Daglige installationer
0
Installationer i alt
3
Bedømmelser
0 0 0
Version
1.1.0
Oprettet
26.03.2024
Opdateret
29.03.2024
Size
927 bytes
Licens
MIT
Gælder for

Additional Info for koalastothemax custom image script


Instructions for koalastothemax custom image script

This script allows you to set a custom image URL on koalastothemax.com.

Here's how to use it:

  1. Install a userscript manager extension like Tampermonkey or Greasemonkey in your browser.
  2. Create a new userscript.
  3. Paste the following code into your userscript editor:


// ==UserScript==
// @name         koalastothemax custom image
// @namespace    https://ianah.me
// @version      1.0.0
// @description  Custom image url
// @author       ianah.dev
// @match        *://koalastothemax.com/
// @icon         https://koalastothemax.com/favicon.png
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    document.getElementById('next').style.display = 'block';
    var input = document.querySelector('#next input');
    input.addEventListener('keydown', function(event) {
        if (event.keyCode === 13) {
            var imageUrl = input.value.trim();
            if (/^https?:\/\//i.test(imageUrl)) {
                window.location.href = "http://koalastothemax.com?" + imageUrl;
            } else {
                alert("Ce n'est pas une URL d'image valide. Veuillez entrer une URL commençant par 'http://' ou 'https://'.");
            }
        }
    });
})();
    

Save the userscript.

Now whenever you visit koalastothemax.com, you will see an input box where you can enter the URL of the image you want to display.