Skip to content

Instantly share code, notes, and snippets.

@Linaryx
Linaryx / morkovka.js
Last active May 12, 2025 05:42
Functionality of a slot machine in the form of javascript code from the series of Smeshariki “Bolshoi Kush”
const gambleEmotes = ["GAMBA", "catGAMBLING", "IVEPLAYEDTHESEGAMESBEFORE", "Loodomanych", "Opachki"];
const symbols = ["🥕", "🍒", "🔔", "❌"];
let availableEmotes = [];
function loadEmotes() {
return new Promise((resolve, reject) => {
utils.fetchEmotes().then(emotes => {
const emoteNames = Object.values(emotes).map(emote => emote.name);
availableEmotes = gambleEmotes.filter(emote => emoteNames.includes(emote));
resolve();
function getRandElement(elements) {
return elements[Math.floor(Math.random() * elements.length)];
}
function r() {
return getRandElement(["pozhar", "POTOP", "POTOM"]);
}
function generateMessage() {
const results = [r(), r(), r(), r()];
@Linaryx
Linaryx / numtotext.js
Last active September 15, 2024 21:12
function decodeString(encodedStr) {
let decoded = '', word = '';
for (let i = 0; i < encodedStr.length; i++) {
const char = encodedStr[i];
if (!isNaN(char)) {
word += String.fromCharCode(parseInt(char) + 64);
} else if (char === ' ') {
decoded += word + ' ';
word = '';
@Linaryx
Linaryx / texttonum.js
Last active September 15, 2024 21:31
function encodeString(args) {
let encoded = [];
const combinedStr = args.join('').toUpperCase().replace(/\s+/g, '');
for (let i = 0; i < combinedStr.length; i++) {
const char = combinedStr[i];
if (char.match(/[A-Z]/)) {
encoded.push((char.charCodeAt(0) - 64));
import axios from "axios";
import api from './../../utils/api.js';
const replaces = {
'killhuestro': 'exoneges',
'linaryx': 'l__linar__l',
'digidro_': 'digidr0',
'leysonmart_': 'leysonmart',
'0_nekopara_0': 'bromin_8_800'
};
function main(args) {
const currentDate = new Date();
let gmtHours = customData.get("gmtHoursALIASny");
let newYearDate = new Date();
if(gmtHours == undefined)
newYearDate = new Date(`Jan 14 ${currentDate.getFullYear() + 1} 00:00:00 GMT+0`);
else if(gmtHours >= 0)
newYearDate = new Date(`Jan 14 ${currentDate.getFullYear() + 1} 00:00:00 GMT+${gmtHours}`);
else
@Linaryx
Linaryx / fixprice.js
Last active December 27, 2024 13:34
fixprice
function getRandElement(elements) {
return elements[Math.floor(Math.random() * elements.length)];
}
function r() {
const elements = ["😀", "😋", "🤮", "💀"];
return getRandElement(elements);
}
function generateMessage() {
import axios from "axios";
import api from './../../utils/api.js';
const USERNAME_REPLACEMENTS = {
'killhuestro': 'exoneges',
'linaryx': 'l__linar__l',
'digidro_': 'digidr0',
'leysonmart_': 'leysonmart',
'0_nekopara_0': 'bromin_8_800'
};
function timeSinceUpload(args) {
const currentDate = new Date();
const videoUploadDate = new Date("2022-10-03T19:07:54+03:00"); // UTC+3 (Europe/Moscow)
if (isNaN(videoUploadDate.getTime())) {
return 'Некорректная дата загрузки видео FeelsDankMan';
}
// Если передан параметр 'date', выводим дату в формате Europe/Moscow
if (args[0] === 'date') {

🌟 Гайд по отображению смайлов на Twitch в 2025 🎮

Актуально для РФ и других стран


❓ Почему не видно смайлы?

С 2024 года Роскомнадзор заблокировал платформы смайлов (7TV, FrankerFaceZ, BTTV).
Обычные расширения не работают в РФ без обхода блокировок!