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 October 24, 2024 14:00
InoReader dynamic height of tiles in the card view. Requires https://greasyfork.org/ru/scripts/513854-inoreader-viewing-api-for-userscripts
// ==UserScript==
// @name InoReader dynamic height of tiles in the card view
// @namespace http://tampermonkey.net/
// @version 0.1.0
// @description Makes cards' heights to be dynamic depending on image height
// @author Kenya-West
// @match https://*.inoreader.com/*
// @icon https://inoreader.com/favicon.ico?v=8
// @license MIT
// ==/UserScript==
@Kenya-West
Kenya-West / script
Created April 2, 2024 14:16
InoReader script that replaces comss.ru domain with comss.one in Inoreader links. Works with `V` key press, too
// ==UserScript==
// @name InoReader replace comss.ru domain with comss.one
// @namespace http://tampermonkey.net/
// @version 0.0.1
// @description Replaces comss.ru links to comss.one for those who try to access comss.ru website from outside of Russian Federation
// @author Kenya-West
// @match https://*.inoreader.com/feed*
// @match https://*.inoreader.com/article*
// @match https://*.inoreader.com/folder*
// @match https://*.inoreader.com/starred*
@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