Skip to content
This repository has been archived by the owner on Mar 29, 2018. It is now read-only.

Commit

Permalink
Fixed jquery selector for "add to cart" button.
Browse files Browse the repository at this point in the history
Version bump.
  • Loading branch information
Daniel Cormier committed Dec 10, 2014
1 parent b30e58a commit ba29ab1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iwantnexus.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$(function() {
var device_url = window.location.href;
var device_title = document.title;
var add_to_cart = $('#body-content > div.details-wrapper.devices.id-track-partial-impression.vs-enabled > div.details-info-wrapper > div > div.info-container > div.details-actions > span.buy-button-container > button');
var add_to_cart = $('button.buy');

if (add_to_cart.is(':enabled')) {
add_to_cart.click();
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "I want nexus",
"description": "I want nexus",
"version": "0.0.9",
"version": "0.0.10",
"content_scripts": [
{
"matches": [
Expand Down

0 comments on commit ba29ab1

Please sign in to comment.