Skip to content

Instantly share code, notes, and snippets.

@yutsuku
yutsuku / youtube_tags.user.js
Created August 5, 2015 09:20
Simple script that adds video tags back on YouTube
// ==UserScript==
// @name YouTube Tags
// @description Shows video tags
// @version 1.0.1
// @author moh <moh@yutsuku.net>
// @include https://www.youtube.com/watch*
// @include http://www.youtube.com/watch*
// @grant none
// ==/UserScript==
#!/usr/bin/python
# This script will take your anime-planet.com username and scrape a list of your watched anime in
# XML utf-8 format to anime-planet.xml (and anime-planet.txt in case of problems)
#
# Original author: unknown
# Maintenance: moh'at'yutsuku.net
#
# Requirements: MAL account (for checking data)
# Additional info and packages:
# Python 3.* - http://python.org/download/
/*jslint undef: true, nomen: true, eqeqeq: true, plusplus: true, newcap: true, immed: true, browser: true, devel: true, passfail: false */
/*global window: false, readConvertLinksToFootnotes: false, readStyle: false, readSize: false, readMargin: false, Typekit: false, ActiveXObject: false */
var dbg = (typeof console !== 'undefined') ? function(s) {
console.log("Readability: " + s);
} : function() {};
/*
* Readability. An Arc90 Lab Experiment.
* Website: http://lab.arc90.com/experiments/readability
@yutsuku
yutsuku / preview.png
Last active August 16, 2017 13:01
PrestaShop CSV Baker media files
mediafiles
@yutsuku
yutsuku / straight.google.user.js
Last active August 8, 2018 07:15 — forked from ql-owo-lp/straight.google.user.js
Straight Google
// ==UserScript==
// @name Straight Google
// @id straight_google_pokerface
// @version 1.17.14
// @author Pokerface - Kevin
// @namespace in.co.tossing.toolkit.google
// @description Remove URL redirection from google products
// @license GPL v3 or later version
// @downloadURL https://userscripts.org/scripts/source/121261.user.js
// @updateURL https://userscripts.org/scripts/source/121261.meta.js
// ==UserScript==
// @name Soundcloud Stop auto play
// @version 1.2
// @author moh <moh@yutsuku.net>
// @include https://soundcloud.com/*/*
// @include https://soundcloud.com/*/sets/*
// ==/UserScript==
(function() {
'use strict';
BLW = {}
if UnitClass("player") ~= "Warrior" then return end
BLW.debug = false
BLW.prep = "[BLW] "
function BLW.OnLoad()
if UnitClass("player") ~= "Warrior" then return end
-- for target casting.
this:RegisterEvent("CHAT_MSG_SPELL_CREATURE_VS_CREATURE_DAMAGE")
@yutsuku
yutsuku / avatar.sh
Created February 17, 2019 03:36
bash script to easily change Discord Bot avatar
#!/bin/bash
if [ -z "$1" ]
then
echo "Usage: $0 your-image.jpg"
exit
fi
# get your "Bot" token from
# https://discordapp.com/developers/applications/
@yutsuku
yutsuku / exiftool
Created February 22, 2019 19:45
Sort your camera photos quickly
# COPY all files with missing EXIF [date taken] in current folder and
# subfolders to YYYY/MM/YYYYMMDD-HHMMSS.extension
# and writes EXIF [date taken] to file modified date
#
# Flags explanation:
#
# -o when combined with '-d' flag, forces copy operation,
# alone just specifiec output folder
# -P Preserve file dates
# -r recursive
Issue 2
=======
Some (but not all) photos taken by Samsung SGH-E260 have
EXIF tag DateTimeOriginal formated wrong (2009:1212:12 16:21:3)
as reported by
exiftool -n -s .\badfile.jpg
and other various photo viewers with EXIF support (Honeyview, Irfranview)