Commit 8666ad97 authored by ianzren's avatar ianzren

Changes price box for each cake

parent 11f9b51c
var priceBox = document.getElementsByClassName('prices___1JkR4');
for(var i = 0; i < priceBox.length; i++){
priceBox[i].style.backgroundColor = "lightblue";
}
\ No newline at end of file
......@@ -2,9 +2,7 @@
"name": "Clickerance",
"description": "Makes shopping with food requirements easier",
"version": "1.0",
// Specifies version of the extension
"manifest_version" : 2,
// Specifies the version of the manifest file format your package uses
"browser_action": {
"default_icon": "images/example-icon.png",
......@@ -15,16 +13,12 @@
"background": {
"scripts": ["background.js"],
"persistent": false
}
// "content_scripts": [
// {
// "matches": [
// "https://www.waitrose.com/*", "http://www.waitrose.com/*"
// ],
// }
// ]
},
"content_scripts": [{
"css": ["style.css"],
"js": ["content.js"],
"matches": ["https://www.waitrose.com/ecom/shop/browse/groceries/*"]
}]
}
......@@ -6,7 +6,7 @@
<link type="text/css" rel="stylesheet" href="style.css"/>
<script src="mycode.js"></script>
<body>
<div class="Title"
<div class="Title"></div>
<h1> Clickerance </h1>
</body>
</html>
......@@ -6,3 +6,7 @@
background-color: #47BD95;
padding: 28px
}
.prices___1JkR4 {
background-color: #ffffff;
}
.prices___1JkR4 {
background-color: #ffffff;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment