Skip to content

Instantly share code, notes, and snippets.

@rwilkes
rwilkes / bookmark-launcher.user.js
Created August 6, 2017 19:20 — forked from ajchemist/bookmark-launcher.user.js
bookmark-launcher.user.js (chrome)
// ==UserScript==
// @name Bookmark Launcher
// @description Launches bookmakrs with keyboard shortcuts
// ==/UserScript==
var bookmarkLauncherSetup = (function() {
var bookmarks = {}, url;
bookmarks['D'] = function(e,t){var n=e.document;setTimeout(function(){function a(e){if(e.data==="destroy_bookmarklet"){var r=n.getElementById(t);if(r){n.body.removeChild(r);r=null}}}var t="DELI_bookmarklet_iframe",r=n.getElementById(t);if(r){return}var i="https://delicious.com/save?source=bookmarklet&",s=n.createElement("iframe");s.id=t;s.src=i+"url="+encodeURIComponent(e.location.href)+"&title="+encodeURIComponent(n.title)+"&note="+encodeURIComponent(""+(e.getSelection?e.getSelection():n.getSelection?n.getSelection():n.selection.createRange().text))+"&v=1.1";s.style.position="fixed";s.style.top="0";s.style.left="0";s.style.height="100%";s.style.width="100%";s.style.zIndex="16777270";s.style.border="none";s.style.visibility="hidden";s.onload=function(){this.style.visibility="visible"};n.body.appendChil
@rwilkes
rwilkes / add_favicon_for_2chbbsreader.user.js
Created August 7, 2017 00:11 — forked from masaakif/add_favicon_for_2chbbsreader.user.js
add_favicon_for_2chbbsreader.user.js
// ==UserScript==
// @name Add favicon for bbs2chreader
// @namespace http://gist.github.com/43714
// @include http://127.0.0.1:8823/thread/http*
// ==/UserScript==
var AddFavicon = {
execute: function() {
var header = document.evaluate("//head/link", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if (header) {
<#
.NOTES
-------------------------------------
Name: Export-MediaFileDetails.ps1
Version: 3.0a - 01/15/2017
Author: Randy E. Turner
Email: [email protected]
-------------------------------------
.SYNOPSIS
// ==UserScript==
// @name 500px graber
// @namespace http://500px.com/
// @description grab photo exif info
// @include http://500px.com/*
// @copyright 2012+, You
// ==/UserScript==
// a function that loads jQuery and calls a callback function when jQuery has finished loading
function addJQuery(callback) {
@rwilkes
rwilkes / 500px.user.js
Created August 16, 2017 13:27 — forked from homleen/500px.user.js
Show 500px photo url.
// ==UserScript==
// @match http://500px.com/photo/*
// ==/Userscript==
'use strict';
(function(){
var imgPlaceHolder = document.querySelector('.nude_placeholder');
var imgUrl = imgPlaceHolder.nextSibling.src;
@rwilkes
rwilkes / 500px.user.js
Created August 16, 2017 13:27 — forked from oldcai/500px.user.js
Enable copy 500px images and image links by right click at the image
// ==UserScript==
// @name copy 500px images
// @namespace http://www.oldcai.com/
// @version 0.1
// @description copy 500px images
// @author You
// @match https://500px.com/photo/*
// @grant none
// ==/UserScript==
@rwilkes
rwilkes / Get-SqlBlob.ps1
Created August 17, 2017 04:29
Simple POSH script to connect to SQL server and stream some table BLOBS a buffer to be reconstituted as proper files!
Function Select-TableBlob {
param(
[string]$connectionString="Initial Catalog=Anaqua;Data Source=HFX.anaqua.local;Trusted_Connection=True;",
[string]$sqlQuery="SELECT OriginalFile, ThumbNailBlob, ThumbNailBlob FROM FileInformation WHERE ((ThumbNailBlob IS NOT NULL) and (substring(convert(varchar(max),convert(varbinary(max),ThumbNailBlob)), 0, 3) like 'BM'))",
[string]$tableName,
[string]$blobColumn,
[string]$destination=(Get-Location | Split-Path),
[int]$blobLimit=10
)
[System.Data.SqlClient.SQLConnection]$connection = New-Object System.Data.SqlClient.SQLConnection
// ==UserScript==
// @name FlyVK
// @description new.vk.com
// @include *://vk.com/*
// @include *://*.vk.com/*
// @include *://*.vk.me/*
// @include *://*.vk.cc/*
// @include *://*.userapi.com/*
// @version 1.6
// @grant GM_setValue
@rwilkes
rwilkes / FlyVK.js
Last active September 14, 2017 01:46
UsersScript for new VK.com API
// ==UserScript==
// @name FlyVK
// @description new.vk.com
// @include *://vk.com/*
// @include *://*.vk.com/*
// @include *://*.vk.me/*
// @include *://*.vk.cc/*
// @include *://*.userapi.com/*
// @version 1.6
// @grant GM_setValue
@rwilkes
rwilkes / GCacheBackUser.js
Created September 14, 2017 01:53
Google Cache UserScript
// ==UserScript==
// @name google cache comeback
// @namespace trespassersW
// @description Brings back links to cached pages in the Google search results
// @include http://www.google.*
// @include https://www.google.*
// @include http://webcache.googleusercontent.*
// @include https://webcache.googleusercontent.*
// /homepageURL http://userscripts.org/scripts/show/156216
// /updateURL https://userscripts.org/scripts/source/156216.meta.js