Copy Cat! >:3

CHEAT at picasso!

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Copy Cat! >:3
// @namespace    http://tampermonkey.net/
// @version      2025-2-12
// @description  CHEAT at picasso!
// @author       CCGameing
// @match        https://*.straw.page/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=straw.page
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    const picasso = document.querySelector(".picasso")
    const canvas = picasso.childNodes[0]
    const trueCD = canvas.getBoundingClientRect()
    const cw = trueCD.width
    const ch = trueCD.height

    window.pen = canvas.getContext("2d")

    const messages = [
        "Send anonymously 🎨🤫",
        "Send anonymousely 🐁",
        "U so pro!! 😀😉",
        "Hy! no cheating! ❗😡",
        "Wats u draaawiiin? 🙃",
        "Swapdoodle core 🪽💌🪽",
        "Mew Mao! 😸",
        "I feel so sigma! B3",
        ":3c",
        "U is awesome!! nwn",
        "When did this change? :0",
        "*boop* :3"
    ]

    function getRandomMessage() {
        var index = Math.floor(Math.random() * messages.length)
        return messages[index]
    }

    const submitButton = document.querySelector(".sendPicasso > button")

    const extraTools = document.createElement("div")
    extraTools.appendChild(document.querySelector(".toolbox"))
    extraTools.classList.add("toolbox")
    extraTools.id = "uplaodBox"
    document.querySelector(".innerCanvas").appendChild(extraTools)

    const upload = document.createElement("input")
    upload.type = "file"
    extraTools.appendChild(upload)

    const opacity = document.createElement("input")
    opacity.type = "range"
    opacity.min = 0
    opacity.max = 1
    opacity.step = 0.05
    opacity.value = 0.5
    opacity.onchange = () => {
        canvas.style.opacity = opacity.value
    }
    extraTools.appendChild(opacity)

    const image = document.createElement("img")
    image.width = cw
    image.height = ch
    picasso.appendChild(image)

    canvas.style.position = "absolute"
    canvas.style.left = 0
    canvas.style.top = 0

    upload.addEventListener('change', (event) => {
            const file = event.target.files[0];
            const reader = new FileReader();

            reader.onload = (e) => {
                canvas.style.opacity = 0.5
                opacity.value = 0.5
                image.src = e.target.result;
            };

            reader.readAsDataURL(file);

            submitButton.innerHTML = getRandomMessage();
        });

})();