Skip to content

Instantly share code, notes, and snippets.

@nfox513
nfox513 / recreation_gov_booking.js
Last active May 10, 2020 15:25
Recreation.gov booking
// ==UserScript==
// @name recreation.gov reservation checker
// @version 0.1
// @description Checks for reservation by refreshing the page
// @include /^https:\/\/www\.recreation\.gov\/camping\/campgrounds\/.*\/availability
// ==/UserScript==
'use strict';
var refreshTimer = 15000
function checkForAvailability () {
var available = false;
@nfox513
nfox513 / yosemite_campground
Created June 24, 2015 16:43
Yosemite script
// ==UserScript==
// @name Yosemite script
// @version 0.1
// @include http://www.recreation.gov/campsiteSearch.do
// @require http://code.jquery.com/jquery-2.1.0.min.js
// ==/UserScript==
function runGreaseScript() {
if ($("div div:contains('No suitable availability shown')").length > 0) {
@nfox513
nfox513 / gist:3d6ea9a552f5ab17b062
Last active August 29, 2015 14:19
git commitprev alias
git config --global alias.commitprev "commit --amend --no-edit"
// ==UserScript==
// @name _Reload and click demo
// @include https://www.kickstarter.com/projects/597507018/pebble-time-awesome-smartwatch-no-compromises/pledge/new?clicked_reward=false
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @grant GM_addStyle
// ==/UserScript==
/*- The @grant directive is needed to work around a major design
change introduced in GM 1.0.
It restores the sandbox.
*/
@nfox513
nfox513 / craigslist_walkscore.js
Last active December 17, 2015 07:18
Craigslist Walkscore Bookmarklet
javascript:
var line1 = document.getElementsByClassName('mapaddress')[0].innerText;
var win = window.open('http://www.walkscore.com/score/'+line1);
win.focus();