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
Last active April 2, 2024 11:19
InoReader highlight transparent images script hightlights transparent images in InoReader with a white border
// ==UserScript==
// @name InoReader highlight transparent images
// @namespace http://tampermonkey.net/
// @version 0.0.4
// @description Hightlights transparent images in InoReader with a white border
// @author Kenya-West
// @require https://cdnjs.cloudflare.com/ajax/libs/color-thief/2.3.0/color-thief.umd.js
// @match https://*.inoreader.com/feed*
// @match https://*.inoreader.com/article*
// @match https://*.inoreader.com/folder*
@Kenya-West
Kenya-West / script.js
Last active May 4, 2024 13:04
InoReader restore lost images - this script restores images from old Telegram posts for feeds generated by RSS-Bridge
// ==UserScript==
// @name InoReader restore lost images and videos
// @namespace http://tampermonkey.net/
// @version 0.0.10
// @description Loads new images and videos from VK and Telegram in InoReader articles
// @author Kenya-West
// @grant GM_registerMenuCommand
// @grant GM_unregisterMenuCommand
// @match https://*.inoreader.com/feed*
// @match https://*.inoreader.com/article*
@Kenya-West
Kenya-West / script.js
Created March 19, 2024 13:32
Get currencies' values and names from Russian Central bank website
// 1. Navigate to https://www.cbr.ru/currency_base/dynamics/
// 2. Open browser devtools
// 3. Paste this code
// 4. it outputs an array with currencies codes and text names
Array.from(document.querySelectorAll("#UniDbQuery_VAL_NM_RQ > option")).map((elem) => { return { value: elem.value, name: elem.innerText?.trim() } });
@Kenya-West
Kenya-West / script.js
Last active April 2, 2024 11:22
Script for InoReader that allows to open links that are presented in the article. Press `:` (`;`) to focus a link, or press `'` (`"`) to focus previous ones. Press `[` (`{`) or `]` (`}`) to open selected link in a new tab.
// ==UserScript==
// @name InoReader follow inner links
// @namespace http://tampermonkey.net/
// @version 0.0.4
// @description Script for InoReader that allows to open links that are presented in the article. Press `:` (`;`) to focus a link, or press `'` (`"`) to focus previous ones. Press `[` (`{`) or `]` (`}`) to open selected link in a new tab.
// @author Kenya-West
// @require https://unpkg.com/[email protected]/dist/hotkeys.js
// @match https://*.inoreader.com/feed*
// @match https://*.inoreader.com/article*
// @match https://*.inoreader.com/folder*
@Kenya-West
Kenya-West / script.js
Created March 10, 2024 15:27
Adds Telegram and VK (if you got token with video and offline permission on vkhost.github.io) previewing content, such as autoplay video and embed a video
// ==UserScript==
// @name InoReader preview content
// @namespace http://tampermonkey.net/
// @version 0.0.1
// @description InoReader autoplay video, preview full article, VK video embed
// @author Kenya-West
// @grant GM_registerMenuCommand
// @match https://*.inoreader.com/feed*
// @match https://*.inoreader.com/article*
// @icon https://inoreader.com/favicon.ico?v=8
@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 February 12, 2025 17:04
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
};