March 20, 2022

Decrypt genopets alphabet

Decrypt genopets alphabet

Заходи к нам https://t.me/Fliperi

Все, кто участвовал в квестах от Genopets понимает, что это за картинка внизу.

Сейчас мы быстро настроим скрипт, который будет переводить genopets символы в текст прямо на сайте.

1. Скачиваем расширение Tampermonkey:

https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en

Tampermonkey — менеджер пользовательских скриптов.

Здесь будет храниться скрипт и при входе на любой из поддоменов genopets.me он будет запускаться.

2. Создаем новый скрипт.

Вставляем это в поисковую строку в браузере:

chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/options.html#nav=new-user-script+editor

Здесь нужно заменить шаблон нового скрипта уже созданным.

Удаляем все, что здесь написано (с 1 по 16 строку).

Теперь копируем скрипт ниже и вставляем вместо удалённого шаблона.

https://github.com/BiNGO4445/Decrypt-genopets-alphabet1/blob/main/gene_code.txt

// ==UserScript==
// @name         Genopets Alphabet Script
// @version      0.1
// @description  Replace genopets alphabet with plain text!
// @author       https://t.me/Fliperi
// @match        *://*.genopets.me/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=genopets.me
// ==/UserScript==

const alphabet = [
    {
        symbol: 'A',
        shape: 'M8.232 0.199999V1.572L0.42 7.032V10H2.366V8.11L8.232 4.022V10H10.192V0.199999H8.232Z'
    },
    {
        symbol: 'B',
        shape: 'M4.326 0.199999V2.16H8.232V8.04H4.326V10H10.192V0.199999H4.326ZM6.286 4.12H2.366V0.199999H0.42V10H2.366V6.08H6.286V4.12Z'
    },
    {
        symbol: 'C',
        shape: 'M2.856 0.199999H0.42V10H2.366V3.014L7.252 10H9.702L2.856 0.199999Z'
    },
    {
        symbol: 'D',
        shape: 'M4.326 0.199999V2.16H8.232V8.04H4.326V10H10.192V0.199999H4.326ZM2.366 10V0.199999H0.42V10H2.366ZM6.286 6.08V4.12H4.326V6.08H6.286Z'
    },
    {
        symbol: 'E',
        shape: 'M2.366 2.16V0.199999H0.42V2.16H2.366ZM10.192 6.094V4.134H6.958L9.702 0.199999H7.252L0.42 10H10.192V8.04H4.228L5.586 6.094H10.192Z'
    },
    {
        symbol: 'F',
        shape: 'M2.366 8.04V6.08H6.286V4.12H2.366V0.199999H0.42V10H10.192V8.04H2.366Z'
    },
    {
        symbol: 'G',
        shape: 'M0.42 0.199999V10H2.366V2.16H10.192V0.199999H0.42ZM4.326 6.094H8.232V10H10.192V4.134H4.326V6.094Z'
    },
    {
        symbol: 'H',
        shape: 'M12.152 2.16V0.199999H0.42V2.16H12.152ZM9.408 4.134H6.958L4.228 8.04H0.42V10H12.152V8.04H6.678L9.408 4.134Z'
    },
    {
        symbol: 'I',
        shape: 'M2.80057 10V8.04H0.85457V10H2.80057ZM3.29057 0.199999H0.85457L7.68657 10H10.1366L3.29057 0.199999Z'
    },
    {
        symbol: 'J',
        shape: 'M2.366 2.16V0.199999H0.42V2.16H2.366ZM9.702 0.213999L4.228 8.054H0.42V10H5.306L10.192 3.014V10H12.138V0.213999H9.702Z'
    },
    {
        symbol: 'K',
        shape: 'M12.138 10V8.054H10.192V10H12.138ZM7.252 0.199999L2.366 7.2V0.199999H0.42V10H2.856L8.33 2.16H12.138V0.199999H7.252Z'
    },
    {
        symbol: 'L',
        shape: 'M2.366 2.16V0.199999H0.42V2.16H2.366ZM2.366 10V8.054H0.42V10H2.366ZM4.326 0.199999V2.16H8.232V8.04H4.326V10H10.192V0.199999H4.326Z'
    },
    {
        symbol: 'M',
        shape: 'M6.286 10V6.08H4.326V10H6.286ZM10.192 10V0.199999H8.232V10H10.192ZM0.42 10H2.366V2.16H4.326V4.12H6.286V0.199999H0.42V10Z'
    },
    {
        symbol: 'N',
        shape: 'M8.232 0.199999V8.04H4.326V10H10.192V0.199999H8.232ZM4.326 6.08H6.286V0.199999H0.42V10H2.366V2.16H4.326V6.08Z'
    },
    {
        symbol: 'O',
        shape: 'M10.78 8.04L5.306 0.199999H0.42V2.16H4.228L8.33 8.04H0.42V10H12.152V8.04H10.78Z'
    },
    {
        symbol: 'P',
        shape: 'M0.42 0.199999V10H2.366V3.014L4.508 6.08H6.958L4.228 2.16H8.232V6.08H10.192V0.199999H0.42Z'
    },
    {
        symbol: 'Q',
        shape: 'M12.152 10V8.04H0.42V10H12.152ZM6.958 6.08H9.408L5.306 0.199999H0.42V2.16H4.228L6.958 6.08Z'
    },
    {
        symbol: 'R',
        shape: 'M10.192 6.08V0.199999H0.42V10H2.366V3.014L7.252 10H9.702L4.228 2.16H8.232V6.08H10.192Z'
    },
    {
        symbol: 'S',
        shape: 'M2.366 10V8.04H0.42V10H2.366ZM10.192 6.08V0.199999H0.42L7.252 10H9.702L4.228 2.16H8.232V6.08H10.192Z'
    },
    {
        symbol: 'T',
        shape: 'M12.152 6.08V0.199999H10.192V6.08H12.152ZM2.366 6.08V0.199999H0.42V6.08H2.366ZM7.252 0.199999H5.306V8.04H0.42V10H12.152V8.04H7.252V0.199999Z'
    },
    {
        symbol: 'U',
        shape: 'M8.232 0.199999V8.04H5.278L2.366 6.024V0.199999H0.42V7.102L4.578 10H10.192V0.199999H8.232Z'
    },
    {
        symbol: 'V',
        shape: 'M2.366 10V8.054H0.42V10H2.366ZM10.192 0.199999V7.2L5.306 0.199999H0.42V2.16H4.228L9.702 10H12.138V0.199999H10.192Z'
    },
    {
        symbol: 'W',
        shape: 'M9.982 10V0.199999H8.036V10H9.982ZM2.366 8.054V0.199999H0.42V10H3.444L7.546 4.134H5.096L2.366 8.054Z'
    },
    {
        symbol: 'X',
        shape: 'M10.276 4.134L7.546 8.054V0.199999H4.508L0.42 6.08H2.856L5.586 2.16V10H8.624L12.726 4.134H10.276Z'
    },
    {
        symbol: 'Y',
        shape: 'M6.286 6.08V4.12H2.366V0.199999H0.42V6.08H6.286ZM8.232 0.199999V8.04H0.42V10H10.192V0.199999H8.232Z'
    },
    {
        symbol: 'Z',
        shape: 'M10.192 2.16V0.199999H8.232V2.16H10.192ZM3.346 0.199999H0.896L6.384 8.04H2.366V4.134H0.42V10H10.192L3.346 0.199999Z'
    },
    {
        symbol: '1',
        shape: 'M5.054 2.08V0.12H0.42V2.08H5.054Z'
    },
    {
        symbol: '2',
        shape: 'M5.054 2.16V0.199999H0.42V2.16H5.054ZM5.054 10V8.04H0.42V10H5.054Z'
    },
    {
        symbol: '3',
        shape: 'M5.054 2.16V0.199999H0.42V2.16H5.054ZM5.054 10V8.04H0.42V10H5.054ZM9.702 6.08V4.12H0.42V6.08H9.702Z'
    },
    {
        symbol: '4',
        shape: 'M5.054 6.08V4.12H0.42V6.08H5.054ZM9.702 2.16V0.199999H0.42V2.16H9.702ZM9.702 10V8.04H0.42V10H9.702Z'
    },
    {
        symbol: '5',
        shape: 'M9.702 2.16V0.199999H0.42V2.16H9.702ZM9.702 10V8.04H0.42V10H9.702Z'
    },
    {
        symbol: '6',
        shape: 'M9.702 6.08V4.12H5.054V6.08H9.702ZM9.702 10V8.04H0.42V10H9.702ZM9.702 2.16V0.199999H0.42V2.16H9.702Z'
    },
    {
        symbol: '7',
        shape: 'M9.702 10V8.04H5.054V10H9.702ZM9.702 2.16V0.199999H5.054V2.16H9.702ZM9.702 6.08V4.12H0.42V6.08H9.702Z'
    },
    {
        symbol: '8',
        shape: 'M5.054 2.16V0.199999H0.42V2.16H5.054ZM9.702 6.08V4.12H0.42V6.08H9.702ZM9.702 10V8.04H0.42V10H9.702Z'
    },
    {
        symbol: '9',
        shape: 'M9.702 10V8.04H5.054V10H9.702ZM9.702 6.08V4.12H0.42V6.08H9.702ZM9.702 2.16V0.199999H0.42V2.16H9.702Z'
    },
    {
        symbol: '0',
        shape: 'M9.702 2.16V0.199999H0.42V2.16H9.702ZM9.702 6.08V4.12H0.42V6.08H9.702ZM9.702 10V8.04H0.42V10H9.702Z'
    },
    {
        symbol: '\'',
        shape: 'M2.856 2.16H2.366V0.199999H0.42V4.12H4.228L2.856 2.16Z'
    },
    {
        symbol: '\'',
        shape: 'M0.42 0.199999L1.778 2.16H2.268V4.12H4.228V0.199999H0.42Z'
    },
    {
        symbol: ':',
        shape: 'M2.366 2V0.0539998H0.42V2H2.366ZM5.292 2V0.0539998H3.346V2H5.292Z'
    },
    {
        symbol: '.',
        shape: 'M2.366 2V0.0539998H0.42V2H2.366Z'
    },
    {
        symbol: '"',
        shape: 'M4.228 0.199999H0.42V4.12H4.228L2.856 2.16L4.228 0.199999Z'
    },
    {
        symbol: '"',
        shape: 'M0.42 0.199999L1.778 2.16L0.42 4.12H4.228V0.199999H0.42Z'
    },
    {
        symbol: ',',
        shape: 'M2.856 0.0539998H0.42V2H4.228L2.856 0.0539998Z'
    },
    {
        symbol: '!',
        shape: 'M2.366 6.08V0.199999H0.42V6.08H2.366ZM2.366 10V8.04H0.42V10H2.366Z'
    },
    {
        symbol: '?',
        shape: 'M5.306 0.199999H0.42V2.16H4.228L9.702 10H12.152L5.306 0.199999ZM2.856 10V8.04H0.42V10H2.856Z'
    }
];

function replaceAll() {
    alphabet.forEach(replace);
}

function replace({ symbol, shape }) {
    document.querySelectorAll(`path[d="${shape}"]`).forEach(svgPath => {
        svgPath.parentElement.replaceWith(symbol);
    });
}

document.addEventListener('keydown', (event) => {
    if (event.key === 'b' && event.ctrlKey) {
        replaceAll();
    }
});

Должно получиться вот так:

Сохраняем скрипт. Нажимаем File -> Save

3. Итоги

Готово. Можно заходить и проверять.

https://mainframe.genopets.me/treasure-hunt/1/question

Теперь при нажатии CTRL + B все символы будут автоматически заменяться на буквы.

Подписывайтесь на нас https://t.me/Fliperi