I use these filters with ArtBlock but they will also work with Adblock Plus.
The idea is to use Adblock's default filter lists to block all ads, but to whitelist certain assets necessary for the proper functioning of interactive sites.
span.inner { | |
display: none; | |
} |
I use these filters with ArtBlock but they will also work with Adblock Plus.
The idea is to use Adblock's default filter lists to block all ads, but to whitelist certain assets necessary for the proper functioning of interactive sites.
gem 'sinatra' | |
gem 'hyperresource' |
#!/usr/bin/env ruby | |
require 'sqlite3' | |
require 'json' | |
require 'securerandom' | |
EXTENSION_ID = 'laookkfknpbbblfpciffpaejjkokdgca' | |
DBFILE = "#{ENV['HOME']}/Library/Application Support/Google/Chrome/Default/" \ | |
"Local Storage/chrome-extension_#{EXTENSION_ID}_0.localstorage" |
#!/usr/bin/env ruby | |
require 'net/http' | |
require 'nokogiri' | |
require 'yaml' | |
def credential_pairs_from_yaml | |
YAML.load(File.open("#{ENV['HOME']}/.google-credentials.yml")) | |
rescue | |
{} |
Verifying that +fancyremarker is my Bitcoin username. You can send me #bitcoin here: https://onename.io/fancyremarker |
#!/usr/bin/env ruby | |
# Usage: ruby team-sync.rb aptible team | |
require 'octokit' | |
org_login = ARGV[0] | |
team_slug = ARGV[1] | |
print 'Username: ' | |
username = $stdin.gets.chomp |
#!/usr/bin/env ruby | |
# Usage: ruby huboard-cleanup.rb ORG_HANDLE | |
require 'octokit' | |
org_login = ARGV[0] | |
events = ARGV[1..-1] | |
print 'Username: ' | |
username = $stdin.gets.chomp |
#!/usr/bin/env ruby | |
# Run on http://www.dec.ny.gov/maps/hikingtrailslink.kmz | |
# Also: to get rid of waypoints, leaving only routes | |
# sed -i 's/<MultiGeometry><Point>.*/<MultiGeometry>/' OUTFILE | |
require 'openssl' | |
require 'geokit' | |
INPUT = ARGV[0] |
require 'aptible/auth' | |
require 'aptible/api' | |
HANDLE = 'your-app' | |
EMAIL = 'you@example.com' | |
PASSWORD = '' | |
token = Aptible::Auth::Token.create(email: EMAIL, password: PASSWORD) | |
app = Aptible::Api::App.all(token: token).find do |app| | |
app.handle == HANDLE |