Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hypertensiune authored Dec 30, 2022
1 parent 8114a3c commit ae0d0e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion content_scripts/ContentScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ContentScript{
.then(res => res.text())
.then(html => {
this.html.insertAdjacentHTML("afterbegin", html);
document.querySelector("#MovieBookmark-selector img").src = chrome.runtime.getURL("img/img1.png");
document.querySelector("#MovieBookmark-selector img").src = chrome.runtime.getURL("img/img2.png");
this.setColorTheme();
});

Expand Down
7 changes: 1 addition & 6 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"manifest_version": 3,
"key": "",
"oauth2": {
"client_id": "",
"scopes":["https://www.googleapis.com/auth/drive.file"]
},
"name": "Movies Watchlist",
"description": "Keep a list of movies you like, want to see and group them by your preferences.",
"version": "1.0",
Expand All @@ -31,7 +26,7 @@
"host_permissions": ["https://www.imdb.com/*"],
"web_accessible_resources":[
{
"resources": ["google_buttons.html", "img/img1.png"],
"resources": ["quickActionsGoogle.html", "img/img2.png"],
"matches": ["https://www.google.com/*"]
}
],
Expand Down
1 change: 0 additions & 1 deletion movies.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,5 @@
<script src="scripts/DataManager.js"></script>
<script src="scripts/UI.js"></script>
<script src="scripts/movies.js"></script>
<script src="scripts/cloudbackup.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions scripts/UI.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class UI{
* Add a title to a list
*/
static addTitleToList(title, list){
$(`#wrapper div.list[data-list=${list}] div.container`).append(UI.cardComponent(
$(`#wrapper div.list[data-list='${list}'] div.container`).append(UI.cardComponent(
title,
DATA.all[title]["poster"],
DATA.all[title]["release_date"],
Expand All @@ -36,7 +36,7 @@ class UI{
));

let n = parseInt($(`#wrapper div.list[data-list='${list}'] h2 span.size`).text()) + 1;
$(`#wrapper div.list[data-list=${list}] h2 span.size`).text(n);
$(`#wrapper div.list[data-list='${list}'] h2 span.size`).text(n);

$(".btn, div.image, div.card").unbind();
addListeners();
Expand Down

0 comments on commit ae0d0e3

Please # to comment.