Skip to content

Instantly share code, notes, and snippets.

@sekedus
sekedus / YTDLnis with translated title.md
Last active August 22, 2023 11:06
Simple guide to download YouTube videos on YTDLnis with translated title
  1. Download & install YTDLnis

  2. Open YTDLnis, go to More > Command Templates > New template, fill with :

    • Title: translated title
    • Command: --extractor-args "youtube:lang=en", replace en with your language code
    • enable Extra Command
    • tap Create
  3. Go to More > Settings > Downloads, enable Quick Download

@sekedus
sekedus / git.md
Last active November 15, 2024 05:21
Git tutorial for beginners

Git tutorial for beginners

Create a new repo on github
  1. Login to github: gh auth login
  2. Set global options (name & email):
git config --global user.name ""
@sekedus
sekedus / getMatchedCSSRules.js
Last active June 11, 2024 12:57 — forked from ydaniv/mozGetMatchedCSSRules.js
Alternative to deprecated window.getMatchedCSSRules
/**
* Alternative to deprecated window.getMatchedCSSRules()
*
* Usage: getMatchedCSSRules(document.getElementsByClassName('my-element')[0]).cssText;
*/
if (typeof window.getMatchedCSSRules !== 'function') {
var ELEMENT_RE = /[\w-]+/g,
ID_RE = /#[\w-]+/g,
CLASS_RE = /\.[\w-]+/g,
ATTR_RE = /\[[^\]]+\]/g,