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 / get-more-beatiful-nubmers.js
Created October 6, 2024 15:47
A ChatGPT snippet to output and sort the best (in terms of beauty) phone number to pick
// Helper function to check if all characters in a string are the same
function allSame(str) {
return str.split('').every(char => char === str[0]);
}
// Helper function to check if a string is a palindrome
function isPalindrome(str) {
return str === str.split('').reverse().join('');
}
@Kenya-West
Kenya-West / script.js
Last active October 6, 2024 15:46
Inoreader get Habr stats - shows comments and rating counter for Habr articles
// ==UserScript==
// @name InoReader get Habr stats
// @namespace http://tampermonkey.net/
// @version 0.0.1
// @description Shows comments and rating counter for Habr 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
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 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*