Skip to content

Instantly share code, notes, and snippets.

View Kenya-West's full-sized avatar
💻
Windows

Innokenty Ivanov Kenya-West

💻
Windows
View GitHub Profile
@Kenya-West
Kenya-West / script.js
Created March 10, 2024 14:38
Collect channel usernames in Telegram Web (A)
// Because there is no API method nor programmatic access to Telegram channel usernames,
// this script was created. It is a workaround to collect usernames from the chat folder.
// It collects names and usernames and saves them to an array.
// 1. Open https://web.telegram.org/a/;
// 2. Open the chat filder. Main one is not supported! And there should be no "Archived chats" chat;
// 3. Open the browser console;
// 4. Paste the script and run it;
// 5. Wait for the script to finish. It should take a few minutes.
// Current bugs:
// - The script does not always collect usernames when chat is a forum.
@Kenya-West
Kenya-West / script.js
Created March 6, 2024 13:50
VK get feed sources you subscribed to
// This is a script to get links from feed sources modal.
// How to use:
// 1. Go to your feed: https://vk.com/feed
// 2. Open the + button, list of feeds appears;
// 3. Do not add new source, select existing one;
// 4. Open the modal with sources you SUBSCRIBED to;
// 5. Apply this script in the browser's console;
// 6. It outputs a JSON you can copy.
const config = {
@Kenya-West
Kenya-West / frpc.sh
Created May 27, 2023 07:59
Set of scripts that setup frp client and server
FRP_PREFIX=frpc
mkdir ~/${FRP_PREFIX} && cd "$_"
echo "[common]
server_addr = YOUR_SERVER_IP # e. g. 70.91.70.100
server_port = 7000
authentication_method = token
token = SOMETOKEN
@Kenya-West
Kenya-West / (Almost) automatically install oh-my-posh.md
Last active August 22, 2025 22:36
This is a guide that helps you install oh-my-posh and its necessary boilerplate without deep dive to their documentation

(Almost) automatically install oh-my-posh

This is a guide that helps you install oh-my-posh and its necessary boilerplate without deep dive to their documentation

0. Pre-requisites

In this guide, it is assumed that you have installed:

  1. VS Code (User setup, not system one);
  2. PowerShell 6+, whatever way (Microsoft Store, WinGet, Portable);
@Kenya-West
Kenya-West / script.js
Last active October 23, 2023 17:11
VK get posts in feed
// This is a script to get posts from feed, mark them with emoji (similar to reaction you set on post)
// In the end, it returns a text you can copy and post directly to VK.
// The text will reference all the posts you've reacted to.
const config = {
timeToLoad: 1000,
timeToUnload: 350,
zeroResultLimit: 10
};
@Kenya-West
Kenya-West / script.js
Created February 10, 2023 12:08
Get members of current selected feed in Telegram Web Z
const namesList = new Set();
let namesListDelta = 1;
let scrollingCounter = 0;
const scrollingCounterLimit = 10;
while(namesListDelta > 0 || scrollingCounter < scrollingCounterLimit) {
let delta = namesList.size;
const elems = document.querySelectorAll(".Transition.zoom-fade .Transition.slide-optimized .Transition__slide--active .chat-list .ListItem .info .info-row .title");
const names = Array.from(elems).map((elem) => elem.innerText);

Здравствуйте!

Для эмиграции в наше нелегкое время вам потребуются все документы, в том числе:

  • Загранпаспорт
  • Внутренний паспорт
  • ИНН (ХЗ зачем, "ну надо"©)
  • СНИЛС, Полис и прочие документы
  • Запасной работающий телефон (рекомендуется)

🇷🇺 Перед вылетом местным вылетом в другой город РФ:

@Kenya-West
Kenya-West / README.md
Last active May 1, 2022 06:14
Krisha.kz mobile phone number copier allow you to copy any Russian/Kazakh mobile phone number to your device's clipboard

Description

A js file for Tampermonkey that allows you to copy any Russian/Kazakh mobile phone number in Krisha.kz website redirect to the new item page. This project is a script for Krisha.kz website.

How to contribute

Copy source code of this project on GitHub Gist and start your changes. If you want to use the script from source code directly by yourself, then create new script in Tampermonkey extension and put source code in opened window.

How to use this script?

@Kenya-West
Kenya-West / VK-get-videos-links-wall.js
Created March 31, 2022 14:00
Get links of external videos you have in wall (on your profile VK.com)
@Kenya-West
Kenya-West / FindSmallVerticalVideos.ps1
Created March 31, 2022 13:08
Find vertical videos MP4 that has resolution smaller than 400 by height. This script uses TagLibSharp. Get it here first: https://www.nuget.org/packages/TagLibSharp
Import-Module "Path\To\TagLibSharp.dll";
$dir = ".\";
$files = Get-ChildItem -Path $dir -Filter "*.mp4";
[array] $arr = @();
function Format-CoubName {
param (
[string]$Name
)