Skip to content

Instantly share code, notes, and snippets.

View sidneys's full-sized avatar

sidneys sidneys

  • Germany
View GitHub Profile
@sidneys
sidneys / library.on-element-ready.js
Last active December 22, 2023 02:25
UserScript | Library | onElementReady ES6
// ==UserScript==
// @name Library: onElementReady ES7
// @namespace org.sidneys.userscripts
// @homepage https://gist.githubusercontent.com/sidneys/ee7a6b80315148ad1fb6847e72a22313/raw/
// @version 0.8.1
// @description Detect any new DOM Element by its CSS Selector, then trigger a function. Includes Promise- & Callback interface. Based on ES6 MutationObserver. Ships legacy waitForKeyElements interface, too.
// @author sidneys
// @icon https://i.imgur.com/nmbtzlX.png
// @match *://*/*
// ==/UserScript==
@sidneys
sidneys / weltonline.artikelkommentare-automatisch-einblenden.js
Last active November 30, 2018 23:21
UserScript | Die WELT Online | Artikelkommentare Automatisch Einblenden
// ==UserScript==
// @name Die WELT Online | Artikelkommentare Automatisch Einblenden
// @namespace de.sidneys.userscripts
// @homepage https://gist.githubusercontent.com/sidneys/4392fdde27a0cf60cb12ada20c95fb81/raw/
// @version 4.0.0
// @description Alle Antworten zu Artikeln bei WELT.DE immer einblenden (Always automatically expand all WELT.DE article comments)
// @author sidneys
// @icon https://www.welt.de/favicon.ico
// @noframes
// @include https://www.welt.de/*article*
@sidneys
sidneys / qt5.11-mojave.patch
Created July 13, 2018 23:47
qt5.11-mojave.patch
From 1e0848d745910e942907a81ca4743553ee8e635b Mon Sep 17 00:00:00 2001
From: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Date: Fri, 15 Jun 2018 23:15:10 +0200
Subject: [PATCH] macOS: Force light theme on macOS 10.14+
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
Until we can properly fix QPalette and QMacStyle,
we should disable dark appearance in Qt applications.
@sidneys
sidneys / de.sidneys.userscripts.reddit.expand-all-comments.js
Last active March 24, 2023 05:42
Userscript | Reddit | Expand All Comments
// ==UserScript==
// @name Reddit | Expand All Comments
// @namespace de.sidneys.userscripts
// @homepage https://gist.githubusercontent.com/sidneys/759bdb70442597638d63c4ed170020c9/raw/
// @version 1.0.0
// @description Automatically expands all comment replies within Reddit threads
// @author sidneys
// @icon https://www.redditstatic.com/desktop2x/img/favicon/apple-icon-180x180.png
// @include http*://www.reddit.com/*/comments/*
// @require https://greasyfork.org/scripts/38888-greasemonkey-color-log/code/Greasemonkey%20%7C%20Color%20Log.js
@sidneys
sidneys / xml-to-srt.pl
Created June 7, 2018 20:57
XML (EBU-TT) to SRT Subtitle Converter for MediathekView XML Subtitles
#!/usr/bin/perl
## XML (EBU-TT) to SRT Subtitle Converter for MediathekView XML Subtitles
## forked from mattfoo/ebu-tt_to_srt
## USAGE
## $> perl xml-to-srt.pl subtitle.xml
## $> Written SRT Subtitle: subtitle.xml.srt
use strict;
@sidneys
sidneys / de.sidneys.jxa.toggle-macos-accessibility-keyboard.scpt
Last active June 21, 2022 03:29
JavaScript for Automation (JXA) | Toggle macOS Accessibility Keyboard
/**
* toggle-macos-accessibility-keyboard
* javascript for automation (jxa)
*
* description:
* macOS automation script to toggle the macOS Accessibility Keyboard.
* Shows and hides the keyboard depending on its current state.
*
* author: sidneys
* homepage: http://sidneys.github.io
@sidneys
sidneys / de.sidneys.applescript.toggle-macos-accessibility-keyboard.scpt
Last active May 26, 2021 15:08
AppleScript | Toggle Accessibility Keyboard (macOS)
(*
* toggle-macos-accessibility-keyboard
* applescript
*
* description:
* macOS automation script to toggle the macOS Accessibility Keyboard.
* Shows and hides the keyboard depending on its current state.
*
* author: sidneys
* homepage: http://sidneys.github.io
@sidneys
sidneys / de.sidneys.userstyles.youtube.dark-fade-ii-2018.css
Last active June 1, 2018 15:34
Userstyle | YouTube | DARK FADE II (2018)
/* ==UserStyle==
@name YouTube | DARK FADE 2 (2018)
@namespace de.sidneys.userstyles
@version 1.0.1
@description Reimplementation of the legendary 'YouTube Dark Fade' userstyle for YouTubes' 2018 redesign. Written from scratch, leveraging web components, CSS variable namespace (--ytd-*) and conforming to the UserCSS standard.
@author sidneys <sidneys.github.io@outlook.com> (https://github.com/sidneys)
@homepageURL https://sidneys.github.io
@license MIT
==/UserStyle== */
@sidneys
sidneys / de.sidneys.userscripts.save-as.js
Last active July 9, 2023 19:09
Userscript | Download File As
// ==UserScript==
// @name Save-As Userscript Library
// @namespace de.sidneys.userscripts
// @homepage https://gist.githubusercontent.com/sidneys/1731ea8ca69af49ca6e138d045c09971/raw/
// @version 3.0.0
// @description "Save As..." for any URL
// @author sidneys
// @icon https://www.greasespot.net/favicon.ico
// @include *://*/*
// @grant unsafeWindow
@sidneys
sidneys / franc-min.js
Created April 16, 2018 15:46
wooorm/franc
!function(b,a){typeof exports==='object'&&typeof module!=='undefined'?module.exports=b():typeof define==='function'&&define.amd?define([],b):(typeof window!=='undefined'?a=window:typeof global!=='undefined'?a=global:typeof self!=='undefined'?a=self:a=this,a.franc=b())}(function(){return function a(b,c,e){function f(d,k){if(!c[d]){if(!b[d]){var i=typeof require=='function'&&require;if(!k&&i)return i(d,!0);if(g)return g(d,!0);var j=new Error("Cannot find module '"+d+"'");throw j.code='MODULE_NOT_FOUND',j}var h=c[d]={exports:{}};b[d][0].call(h.exports,function(c){var a=b[d][1][c];return f(a?a:c)},h,h.exports,a,b,c,e)}return c[d].exports}var g=typeof require=='function'&&require;for(var d=0;d<e.length;d++)f(e[d]);return f}({1:[function(b,a,c){a.exports={Latin:{spa:' de|os |de | la|la | y | a |es |ón |ión|rec|ere|der| co|e l|el |en |ien|cho|ent|ech|ció|aci|o a|a p| el|a l|al |as |e d| en|na |ona|s d|da |nte| to|ad |ene|con| pr| su|tod| se|ho |los| pe|per|ers| lo|o d| ti|cia|n d|cio| es|ida|res|a t|tie|ion|rso|te |