Skip to content

Instantly share code, notes, and snippets.

@rwilkes
rwilkes / favicon-interceptor.js
Created March 22, 2017 23:57 — forked from kentbrew/favicon-interceptor.js
How to short-circuit those annoying favicon requests in node.js
// early experiments with node had mysterious double requests
// turned out these were for the stoopid favicon
// here's how to short-circuit those requests
// and stop seeing 404 errors in your client console
var http = require('http');
http.createServer(function (q, r) {
// control for favicon
/**
* Vkontakte JavaScript API wrapper.
*
* This script meant for simplify development of Vkontakte applications
* using Vkontakte API. Using vk_api() object you can call API methods,
* get HTTP-GET parameters (aka flashVars) in a simple way. You don't need
* to calculate signature parameter, don't need to form request string,
* don't need to implement JSONP-communication. You just connect this script
* to HTML-page using <script> tag, call one function to initialize object
* and one function to perform API-request!
@rwilkes
rwilkes / VkGetLink.user.js
Created June 13, 2017 09:48 — forked from mistificator/VkGetLink.user.js
Script for downloading audio and video files from the vk.com
// ==UserScript==
// @name play on tumblr
// @namespace tag:[email protected],2008-04-03:/coderepos.org
// @description play current image or video on tumblr dashboard with 'ENTER' key. open notes with 'h' key. like it with 'l' key. if won't work, pray on tumblr!
// @include http://www.tumblr.com/dashboard*
// @include http://www.tumblr.com/show/*
// @include http://www.tumblr.com/tumblelog/*
// @include http://www.tumblr.com/tagged/*
// ==/UserScript==
// ==UserScript==
// @name YouTube Enhancer
// @namespace http://iulianonofrei.com
// @version 0.5
// @author Iulian Onofrei
// @updateURL https://gist.github.com/raw/c6ca9ed14d388e6e7e8278cebc3dfb29/YouTube_Enhancer.user.js
// @match https://youtube.com/*
// @match https://www.youtube.com/*
// @require https://gist.githubusercontent.com/raw/dab432d4b4bbb672896b/min.js
// @grant GM_addStyle
@rwilkes
rwilkes / video-containers.user.js
Created June 13, 2017 09:57
Video containers
// ==UserScript==
// @name Video containers
// @namespace gm.cha0s
// @description Resize video containers
// @include http://www.promptfile.com/*
// @include http://www.movshare.net/video/*
// @include http://movpod.in/*
// @include http://vodlocker.com/*
// @include http://bestreams.net/*
// @include http://www.nowvideo.sx/video/*
// ==UserScript==
// @name Tumblr Bookmarker
// @description Bookmark posts on your dash to return to later
// @namespace http://userscripts.org/users/113977
// @include http://www.tumblr.com/blog/*
// @include http://www.tumblr.com/drafts*
// @include http://www.tumblr.com/queue*
// @include http://www.tumblr.com/likes*
// @include http://www.tumblr.com/messages*
// @include http://www.tumblr.com/dashboard*
// ==UserScript==
// @name Tumblr Dashboard High-Res Photos
// @namespace http://cxx.tumblr.com/
// @include http://www.tumblr.com/*
// @version 0.0.5.2.20101020
// ==/UserScript==
// original : http://userscripts.org/scripts/source/43621.user.js?
(function(){
function $(selectors, context) {
@rwilkes
rwilkes / InoReader Full Feed.user.js
Created July 13, 2017 14:05
User.js script for import into Chrome Tampermonkey to Retrieve Full InoReader Feed Data
// ==UserScript==
// @name InoReader Full Feed
// @description Read full story in InoReader. / InoReaderで記事の全文を表示します。
// @description:en Read full story in InoReader.
// @description:ja InoReaderで記事の全文を表示します。
// @id InoReaderFullFeed
// @namespace https://userscripts.org/scripts/show/172238
// @homepage https://greasyfork.org/scripts/897-inoreader-full-feed
// @include http://inoreader.com/*
// @include https://inoreader.com/*
@rwilkes
rwilkes / DownloadYTVideo.js
Created August 6, 2017 19:10 — forked from dev-ext/DownloadYTVideo.js
Youtube video downloader script
// go to the youtube video page using iPhone as user-agent and run the following script:
var xhr=new XMLHttpRequest();
xhr.open("GET",location.href,true);
xhr.onload=function(){
var r=xhr.responseText;
r=r.substring(r.indexOf('url_encoded_fmt_stream_map'),r.length);
r=r.substring(r.indexOf('url=http')+4,r.length);
r=r.split('url=');
location.href=