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 May 4, 2024 12:33
InoReader copy cover image - copy cover image of the post you selected in article list view
// ==UserScript==
// @name InoReader copy cover image
// @namespace http://tampermonkey.net/
// @version 0.0.2
// @description Copy cover image of the post you selected in article list view
// @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 May 3, 2024 07:53
InoReader autoplay video in card view - autoplays Telegram video generated by RSS-Bridge feed when user chooses "card view" (press `4`)
// ==UserScript==
// @name InoReader autoplay video in card view
// @namespace http://tampermonkey.net/
// @version 0.0.2
// @description Autoplays Telegram video generated by RSS-Bridge feed when user chooses "card view" (press `4`)
// @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 29, 2024 13:13
InoReader dynamic height of tiles in the card view
// ==UserScript==
// @name InoReader dynamic height of tiles in the card view
// @namespace http://tampermonkey.net/
// @version 0.0.4
// @description Makes cards' heights to be dynamic depending on image height
// @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
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/hotkeys-js@3.13.7/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.