This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hide wikipedia donation nagscreen | |
// @description Wikimedia, I already give you money, leave me alone! | |
// @version 3 | |
// @grant GM.setValue | |
// @grant GM.getValue | |
// @match https://*.wikipedia.org/* | |
// ==/UserScript== | |
(async function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name YouTube minus autoplay and suggestions | |
// @description Removes suggestions in sidebar and end of video. Also disables autoplay. | |
// @version 1 | |
// @grant none | |
// @include https://www.youtube.com/watch* | |
// ==/UserScript== | |
(function() { | |
var styles = ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Warmmiete in Suche immowelt | |
// @namespace kch42 | |
// @include http://www.immowelt.de/immobilien/immoliste.aspx* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
function mkinfoelem(label, data) { | |
var info = document.createElement("div"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name immobilienscout++ | |
// @namespace kch42 | |
// @include http://www.immobilienscout24.de/Suche/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
/* | |
* Immobilienscout24 Suche verbessern. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Mass retagging of mp3 files that don't have ID3 tags. | |
# The MP3 files must be named like this to use this script: | |
# ./<first letter of artist>/<artist>/<album>/<track number> - <title>.<file extension(s)> | |
# ^-- The current working directory | |
exsomething() { echo "$1" | sed 's#'"$2"'#\1#'; } | |
exartist() { exsomething "$1" '^\././\([^/]*\)/.*$'; } | |
exalbum() { exsomething "$1" '^\././[^/]*/\([^/]*\)/.*$'; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Extrahieren von [Martina und Moritz](http://martinaundmoritz.wdr.de/) Rezepten | |
# und aufbereiten in etwas besser druckbaren Stil. | |
# Klappt vielleicht auch mit anderen WDR-Rezepten. | |
extract_and_style() { | |
echo '<html> | |
<head> | |
<meta charset="utf-8"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ToroWorkaround { | |
public static function serve($handlers) { | |
/* | |
* Toro prefers the $_SERVER["PATH_INFO"] var to get the requested URL. | |
* If this var is present, everything seems to be correct. | |
* If it is not, some weird errors occur. | |
* For example, Toro sometimes can not route to the index route ("/"), when the app is not running from the servers document root. | |
* By constructing PATH_INFO manually using REQUEST_URI and SCRIPT_NAME, we can work around this problem. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Released under the WTFPL (wtfpl.org). | |
URL="http://www.ruthe.de" | |
toonid=`curl -s $URL | sed -n 's/^.*archiv\.php\?.*id=\([0-9]*\).*/\1/p' | sed 1q` | |
now=`date +%Y-%m-%dT%H:%M:%SZ` | |
echo -n "<?xml version=\"1.0\" encoding=\"utf-8\"?> | |
<feed xmlns=\"http://www.w3.org/2005/Atom\"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
/* | |
This will repair the metadata of the packages in your repository. | |
Place it into the root directory of your reository and run it via the terminal (php fix.php). | |
If everything has worked, nothing will be printed. | |
You should delete this script after fixing the metadata. | |
*/ |
NewerOlder