Skip to content

Instantly share code, notes, and snippets.

@MikeeI
MikeeI / PrintChromeStorageAPI.md
Created February 16, 2016 06:20
Print storage area of chrome.storage API

Print storage area of chrome.storage API

If you want to print out the the storage area of the chrome.storage APIs just type in the following code in the console or better make a Chrome JavaScript snippet and execute it.

// Print out local storage area
chrome.storage.local.get(null, function(all) {
  console.log(all)
});
@MikeeI
MikeeI / output.json
Created February 16, 2016 06:20 — forked from jeffgca/output.json
Get 10k extensions from the chrome web store.
[
"https://chrome.google.com/webstore/detail/ballloon-for-chrome/kbmligehjhghebleanjcmenomghmcohn",
"https://chrome.google.com/webstore/detail/shine-for-reddit/acoiihnnfofnpbnofdcgcapbjlcopifa",
"https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk",
"https://chrome.google.com/webstore/detail/highly-highlighter/hjpahjhcglfdopbholajmhpamgblhjhg",
"https://chrome.google.com/webstore/detail/screencastify-screen-vide/mmeijimgabbpbgpdklnllpncmdofkcpn",
"https://chrome.google.com/webstore/detail/sms-from-gmail-facebook-m/iffdacemhfpnchinokehhnppllonacfj",
"https://chrome.google.com/webstore/detail/wot-web-of-trust-website/bhmmomiinigofkjcapegjjndpbikblnp",
"https://chrome.google.com/webstore/detail/mega/bigefpfhnfcobdlfbedofhhaibnlghod",
"https://chrome.google.com/webstore/detail/time-is-money/ooppbnomdcjmoepangldchpmjhkeendl",
@MikeeI
MikeeI / output.json
Created February 16, 2016 06:20 — forked from jeffgca/output.json
Get 10k extensions from the chrome web store.
[
"https://chrome.google.com/webstore/detail/ballloon-for-chrome/kbmligehjhghebleanjcmenomghmcohn",
"https://chrome.google.com/webstore/detail/shine-for-reddit/acoiihnnfofnpbnofdcgcapbjlcopifa",
"https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk",
"https://chrome.google.com/webstore/detail/highly-highlighter/hjpahjhcglfdopbholajmhpamgblhjhg",
"https://chrome.google.com/webstore/detail/screencastify-screen-vide/mmeijimgabbpbgpdklnllpncmdofkcpn",
"https://chrome.google.com/webstore/detail/sms-from-gmail-facebook-m/iffdacemhfpnchinokehhnppllonacfj",
"https://chrome.google.com/webstore/detail/wot-web-of-trust-website/bhmmomiinigofkjcapegjjndpbikblnp",
"https://chrome.google.com/webstore/detail/mega/bigefpfhnfcobdlfbedofhhaibnlghod",
"https://chrome.google.com/webstore/detail/time-is-money/ooppbnomdcjmoepangldchpmjhkeendl",
@MikeeI
MikeeI / url_scrape.js
Created February 16, 2016 06:21 — forked from jeffgca/url_scrape.js
Just the script
// once you're done, the collected global should have the entire list
var start = $$('.a-d .a-u').length;
console.log('starting at', start);
var goal = 10000;
var collected;
var max = window.scrollMaxY;
window.scrollBy(0, window.scrollMaxY);
@MikeeI
MikeeI / gist:8da8191be204b53d6cb9
Created March 21, 2016 11:20 — forked from mohamedmansour/gist:803631
Get and Set localStorage from Content Script
// Content Script to save data.
chrome.extension.sendRequest({storage: 'foo', value: 'bar'});
// Content Script to get data.
chrome.extension.sendRequest({storage: 'foo'}, function(response) {
console.log('foo => ' + response.storage);
});
// Background Page
@MikeeI
MikeeI / manifest.json
Created March 21, 2016 11:20 — forked from IzumiSy/manifest.json
Chrome.storage.sync example
{
"name": "SyncExtension",
"version": "0.1",
"manifest_version": 2,
"description": "Storage Sync Extension",
"permissions": [ "storage" ],
"browser_action": {
@MikeeI
MikeeI / simple-chrome-storage.js
Created March 21, 2016 11:20 — forked from z-------------/simple-chrome-storage.js
A simple, localStorage-like way to interact with Chrome's Storage API.
var scs = {
set: function(key,value,type) {
var kvo = {};
kvo[key] = value;
var cs;
if (type == "local") {
cs = chrome.storage.local;
} else {
cs = chrome.storage.sync;
}
@MikeeI
MikeeI / .gitconfig
Created May 16, 2016 19:21 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
@MikeeI
MikeeI / propel.yaml
Created September 21, 2016 14:00 — forked from cristianoc72/propel.yaml
Propel sample configuration file
## Sample Propel configuration file ##
propel:
## General settings ##
general:
# The name of your project.
# This affects names of generated files, etc.
project:
version: 2.0.0-dev
@MikeeI
MikeeI / store-trap.html
Created March 19, 2017 15:07 — forked from DimitarChristoff/store-trap.html
chrome store abuse
<!-- view-source:http://cofinsa.info/helloworld.php?city=GB&clickid=wOG4PFS3EJJ786J0H5TOVOG4 -->
<!--<script>if(history.replaceState) history.replaceState({}, "", "/");</script>-->
<script>confirm('Add Extension to Leave');</script>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">