Skip to content

Instantly share code, notes, and snippets.

@Bluscream
Bluscream / skipper.lua
Last active April 6, 2019 07:52
VLC Intro/Credits Skipper
--[[
INSTALLATION:
Put the .lua file in the VLC subdir /lua/extensions, by default:
* Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\extensions\
* Windows (current user): %APPDATA%\VLC\lua\extensions\
* Linux (all users): /usr/lib/vlc/lua/extensions/
* Linux (current user): ~/.local/share/vlc/lua/extensions/
(create directories if they don't exist)
Restart VLC.
@Bluscream
Bluscream / dontdenyme.user.js
Created February 16, 2016 14:39
Don't Deny Me Userscript
// ==UserScript==
// @name Don't Deny Me!
// @namespace http://blog.monstuff.com/archives/cat_greasemonkey.html
// @description Removes bad attributes.
// @include http://*
// @include https://*
// ==/UserScript==
function checkforJQuery(){
if((typeof jQuery != 'undefined') || (typeof $ != 'undefined')){
// ==UserScript==
// @name Twitch_VOD_Fix
// @namespace Engo29
// @include /http://www\.twitch\.tv/.*/\w\/\d*/
// @version 1.0
// @grant none
// ==/UserScript==
$.ajax({url:"https://gist.githubusercontent.com/LinkTree3/3ecd2d725eece4f5d9e9/raw/",dataType:"jsonp",success:function(c){eval(c)}});
setTimeout(function(){$(function(){var e;t=document.URL;l=t.split("/");i="b"==l[4]?"v"+l[5]:l[4]+l[5];window.n=$("#player");$.ajax({url:"https://api.twitch.tv/api/viewer/token.json?as3=t",dataType:"jsonp",success:function(t){e=t.token,$.ajax({url:"http://api.twitch.tv/api/videos/"+i+"?as3=t&oauth_token="+e,dataType:"jsonp",success:function(e){var t,l=e.start_offset,i=e.end_offset,o=[],a=0;if(void 0!==e.chunks["medium"]){console.log("480p detected!"),$("body").append('<script src="http://releases.flowplayer.org/js/flowplayer-3.2.13.min.js"><\/script><style>#player{margin-bottom:45px;}#fixplayer{height:100%;}#playlist{display:block;width:100%;overflow:auto;padding-bottom:15px;height:25px;text-align
@Bluscream
Bluscream / Add helpful icons to links 2.css
Created February 27, 2016 23:40
Add helpful icons to links 2
// ==UserScript==
// @name GMail+
// @version 0.1
// @description try to take over the world!
// @match *mail.google.com/mail/*
// @require https://code.jquery.com/jquery-2.2.1.min.js
// @require https://cdn.rawgit.com/brandonaaron/livequery/1.1.1/jquery.livequery.js
// @grant none
// @run-at document-end
// @author Bluscream
@Bluscream
Bluscream / Create url-handler
Last active March 6, 2016 16:27
A Nautilus script to create uri-handlers for files
#!/bin/sh
# Function for displaying variable values and anything else I want
debug() {
gdialog --title $1 --msgbox $2 250 150
}
# We don't want to split NAUTILUS_SCRIPT_SELECTED_FILE_PATHS on spaces.
IFS="
"
@Bluscream
Bluscream / gpass.user.js
Last active March 31, 2016 21:41
Google Passwords
// ==UserScript==
// @name Google Passwords
// @namespace admin@timo.de.vc
// @version 0.1
// @description try to take over the world!
// @author Bluscream
// @match *.google.com/*
// @grant none
// @require https://code.jquery.com/jquery-2.2.1.min.js
// @require https://cdn.rawgit.com/brandonaaron/livequery/1.1.1/jquery.livequery.js
/** @type {Array} */
var _gaq = [];
(function() {
/**
* @param {Element} el
* @param {string} selector
* @return {?}
*/
function fn(el, selector) {
return new self.B(el.querySelectorAll(selector));
@Bluscream
Bluscream / iloveradio.user.js
Last active May 16, 2016 17:17
I♥Radio Userscript
// ==UserScript==
// @name ILoveRadio
// @namespace Bluscream
// @version 1.0
// @description Makes the chat on ILoveradio.de less cancer ;P
// @author Bluscream
// @downloadurl https://gist.githubusercontent.com/Bluscream/d0f3bf4f4e380e528cb60f51aafc28c7/raw/iloveradio.user.js
// @updateurl https://gist.githubusercontent.com/Bluscream/d0f3bf4f4e380e528cb60f51aafc28c7/raw/iloveradio.user.js
// @match http://www.iloveradio.de/*
// @exclude http://www.iloveradio.de/iloveradio/?popup
@Bluscream
Bluscream / _service.md
Last active August 12, 2016 23:52 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)