Skip to content

Instantly share code, notes, and snippets.

View netcookies's full-sized avatar
I may be slow to respond.

Isulew netcookies

I may be slow to respond.
View GitHub Profile
netcookies / background.js
Created April 7, 2017 07:27 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
netcookies /
Last active June 3, 2016 15:08 — forked from darrenpmeyer/
Autobuild script for OpenConnect 7 (Ubuntu 14/15 trusty/vivid)
#!/usr/bin/env bash
echo "Autobuild OpenConnect $oc_ver"
echo " "
echo "This script uses apt-get and make install via sudo rights"
echo "To simplify this, we're going to use sudo -v to pre-authenticate you"
sudo -k
sudo -v