koalastothemax custom image

Custom image url

作者
ia-nah
日安装量
0
总安装量
2
评分
0 0 0
版本
1.1.0
创建于
2024-03-26
更新于
2024-03-29
大小
927 字节
许可证
MIT
适用于

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.