Skip to content

Commit

Permalink
First and last commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfd committed Nov 5, 2014
0 parents commit 1d578e9
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
this is terrible
----------------
but it got me a Nexus 6 after awhile
15 changes: 15 additions & 0 deletions insertion.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Stolen from Teresa Krause
var head = document.head || document.documentElement;

//The url where this chrome extension's files live
var ext_url = chrome.extension.getURL('');

//Allow the embedded js access to our directory
var script2 = document.createElement('script');
script2.textContent = 'var ext_url = "' + ext_url + '";';
head.appendChild(script2);

//Insert js to overwrite variables
var script1 = document.createElement('script');
script1.src = ext_url + 'iwantnexus.js';
head.appendChild(script1);
24 changes: 24 additions & 0 deletions iwantnexus.js

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "I want nexus",
"description": "I want nexus",
"version": "0.0.1",
"content_scripts": [
{
"matches": ["https://play.google.com/store/devices/*"],
"js": ["insertion.js"]
}
],
"web_accessible_resources": [
"iwantnexus.js"
],
"manifest_version": 2
}

0 comments on commit 1d578e9

Please sign in to comment.