[LolzTeam NotPixel] Draw Our Logo!

Draw Our Logo

目前為 2024-09-11 提交的版本,檢視 最新版本

// ==UserScript==
// @name         [LolzTeam NotPixel] Draw Our Logo!
// @namespace    Draw Our Logo
// @version      2
// @description  Draw Our Logo
// @author       el9in
// @match        https://notpx.app/*
// @match        https://notpx.app
// @match        https://web.telegram.org/*
// @match        https://web.telegram.org
// @icon         https://www.google.com/s2/favicons?sz=64&domain=notpx.app
// @grant        none
// @license      el9in
// ==/UserScript==

const background_x1 = 359098;
const background_x2 = 429098;

function randomBackground() {
	return Math.floor(Math.random() * (background_x2 - background_x1 + 1)) + background_x1;
}

const pixels = [
	// L
	408145, 409145, 410145, 411145, 412145, 413145, 414145, 415145, 416145, 417145, 418145, 419145,
	408146, 409146, 410146, 411146, 412146, 413146, 414146, 415146, 416146, 417146, 418146, 419146,
	408147, 409147, 410147, 411147, 412147, 413147, 414147, 415147, 416147, 417147, 418147, 419147,
	418148, 419148,
	418149, 419149,
	418150, 419150,
	418151, 419151,
	418152, 419152,
	418153, 419153,

	// O
	414154, 415154,
	412155, 413155, 414155, 415155, 416155, 417155, 418155,
	411156, 412156, 413156, 414156, 415156, 416156, 417156, 418156, 419156,
	410157, 411157, 412157, 413157, 414157, 415157, 416157, 417157, 418157, 419157,
	410158, 411158, 412158, 418158, 419158, 420158,
	410159, 411159, 412159, 418159, 419159, 420159,
	410160, 411160, 412160, 418160, 419160, 420160,
	410161, 411161, 412161, 413161, 413161, 414161, 415161, 416161, 417161, 418161,
	411162, 412162, 413162, 414162, 415162, 416162, 417162, 418162, 419162,
	411163, 412163, 413163, 414163, 415163, 416163, 417163, 418163,
	413164, 414164, 415164, 416164, 417164,

	// Глаз (Верх)
	415229,
	411230, 412230, 413230, 414230, 415230,
	408231, 409231, 410231, 411231, 412231, 413231, 414231, 415231,
	404232, 405232, 406232, 407232, 408232, 409232, 410232, 411232, 412232, 413232, 414232,
	402233, 403233, 404233, 405233, 406233, 407233, 408233, 409233, 410233, 411233, 412233, 413233, 414233,
	404234, 405234, 406234, 407234, 408234, 409234, 410234, 411234, 412234, 413234,
	406235, 407235, 408235, 409235, 410235, 411235, 412235, 413235,
	407236, 408236, 409236, 410236, 411236, 412236,
	403237, 404237, 405237, 406237, 407237, 408237, 409237, 410237, 411237, 412237,
	400238, 401238, 402238, 403238, 404238, 405238, 406238, 407238, 408238, 409238, 410238, 411238, 412238,
	400239, 401239, 402239, 403239, 404239, 405239, 406239, 407239, 408239, 409239, 410239, 411239,
	402240, 403240, 404240, 405240, 406240, 407240, 408240, 409240, 410240, 411240,
	404241, 405241, 406241, 407241, 408241, 409241, 410241,
	403242, 404242, 405242, 406242, 407242, 408242, 409242, 410242,
	399243, 400243, 401243, 402243, 403243, 404243, 405243, 406243, 407243, 408243, 409243,
	397244, 398244, 399244, 400244, 401244, 402244, 403244, 404244, 405244, 406244, 407244, 408244, 409244,
	399245, 400245, 401245, 402245, 403245, 404245, 405245, 406245, 407245, 408245,
	401246, 402246, 403246, 404246, 405246, 406246, 407246, 408246,
	402247, 403247, 404247, 405247, 406247, 407247,
	398248, 399248, 400248, 401248, 402248, 403248, 404248, 405248, 406248, 407248,
	395249, 396249, 397249, 398249, 399249, 400249, 401249, 402249, 403249, 404249, 405249, 406249,
	396250, 397250, 397250, 398250, 399250, 400250, 401250, 402250, 403250, 404250, 405250, 406250,
	397251, 398251, 399251, 400251, 401251, 402251, 403251, 404251, 405251,
	399252, 400252, 401252, 402252, 403252, 404252, 405252,
	398253, 399253, 400253, 401253, 402253, 403253, 404253,
	394254, 395254, 396254, 397254, 398254, 399254, 400254, 401254, 402254, 403254, 404254,
	391255, 392255, 393255, 394255, 395255, 396255, 397255, 398255, 399255, 400255, 401255, 402255, 403255, 404255,
	393256, 394256, 395256, 396256, 397256, 398256, 399256, 400256, 401256, 402256, 403256,
	395257, 396257, 397257, 398257, 399257, 400257, 401257, 402257,
	397258, 398258, 399258, 400258, 401258, 402258,
	399259, 400259, 401259, 402259,
	401260,

	// Глаз (низ)
	416237,
	416238, 417238,
	415239, 416239, 417239,
	415240, 416240, 417240, 418240,
	415241, 416241, 417241, 418241,
	416242, 417242, 418242, 419242,
	417243, 418243, 419243,
	418244, 419244,
	418245, 419245,
	419246,
	419247,
	418248, 419248,
	418249, 419249,
	418250, 419250,
	417251, 418251, 419251,
	416252, 417252, 418252, 419252,
	408253, 409253, 410253, 413253, 414253, 415253, 416253, 417253, 418253,
	408254, 409254, 410254, 411254, 412254, 413254, 414254, 415254, 416254, 417254,
	407255, 408255, 409255, 410255, 411255, 412255, 413255, 414255, 415255, 416255, 417255,
	407256, 408256, 409256, 410256, 411256, 412256, 413256, 414256, 415256, 416256,
	408257, 409257, 410257, 411257, 412257, 413257, 414257, 415257,
	409258, 410258, 411258, 412258, 413258, 414258, 415258,
	410259, 411259, 412259, 413259,
	411260, 412260,

	// Глаз (центр)
	412245, 413245,
	412246, 413246, 414246,
	411247, 412247, 413247, 414247,
	411248, 412248, 413248,
	411249, 412249,
]

const colors = {
	411249: "#00756F",
	412245: "#00756F",
	410259: "#00756F",
	408257: "#00756F",
	418248: "#00756F",
	418245: "#7EED56",
	415241: "#00756F",
	418240: "#7EED56",
	417238: "#7EED56",
	416237: "#00756F",
	402259: "#00756F",
	399259: "#7EED56",
	404255: "#00756F",
	391255: "#9C6926",
	394254: "#7EED56",
	398253: "#7EED56",
	395249: "#00756F",
	407248: "#7EED56",
	398248: "#00756F",
	399243: "#00756F",
	404241: "#9C6926", // Коричневый
	402240: "#7EED56", // Салатовый
	412238: "#00756F", // Темно-зеленый
	403237: "#00756F",
	407236: "#00756F",
	404232: "#00756F",
	411230: "#00756F",
	418153: "#00756F",
	419153: "#00756F",
	414154: "#00756F",
	415154: "#00756F",
	412159: "#00756F",
	413161: "#000000", // Чёрный
	414161: "#000000",
	415161: "#00756F",
	419161: "#00756F",
};

function getRandomPixel() {
	const randomIndex = Math.floor(Math.random() * pixels.length);
	const pixelId = pixels[randomIndex];
	return {
		pixelId,
		newColor: colors[pixelId] || "#00A368"
	}
}

(async function () {
	if(location.host === "web.telegram.org") {
		console.log(true, 123);
		while(true) {
			const webApp = document.querySelector('iframe[src*="https://notpx.app/"]');
			console.log(webApp);
			if(webApp && webApp.src != undefined && webApp.src.length > 10) location.href = webApp.src;
			await new Promise(resolve => setTimeout(resolve, 1000));
		}
	} else if(location.host === "notpx.app") {
		while(true) {
			try {
				const response = await fetch("https://notpx.app/api/v1/repaint/start", {
					"headers": {
						"accept": "application/json, text/plain, */*",
						"accept-language": "ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7",
						"authorization": `initData ${window.Telegram.WebApp.initData}`,
						"content-type": "application/json",
						"priority": "u=1, i",
						"sec-ch-ua": "\"Chromium\";v=\"128\", \"Not;A=Brand\";v=\"24\", \"Google Chrome\";v=\"128\"",
						"sec-ch-ua-mobile": "?0",
						"sec-ch-ua-platform": "\"Windows\"",
						"sec-fetch-dest": "empty",
						"sec-fetch-mode": "cors",
						"sec-fetch-site": "same-origin"
					},
					"referrer": "https://notpx.app/",
					"referrerPolicy": "strict-origin-when-cross-origin",
					"body": JSON.stringify(getRandomPixel()),
					"method": "POST",
					"mode": "cors",
					"credentials": "include"
				});
				const json = await response.json();
				console.log("< Текущий баланс:", json.balance);
			} catch(e) {
				console.error("< Не удалось установить новый пиксель:", e.message);
			}
			await new Promise(resolve => setTimeout(resolve, 180 * 1000));
		}
	}
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址