Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gu imageworks extension
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
joetsuihk
gu imageworks extension
Commits
ce52cc8b
Commit
ce52cc8b
authored
Nov 23, 2020
by
ronald
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'development' into 'master'
Update login password See merge request
!9
parents
c878c8ae
84cbc21f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
background.js
background.js
+4
-0
contentScript.js
contentScript.js
+5
-1
No files found.
background.js
View file @
ce52cc8b
...
...
@@ -27,6 +27,10 @@ chrome.extension.onMessage.addListener(function(request,sender,sendResponse){
}
console
.
log
(
"Current index : "
,
index
);
console
.
log
(
"Current noImages : "
,
noImages
);
if
(
index
>=
skus
.
length
-
1
)
{
console
.
log
(
"Last file was downloaded"
);
alert
(
noImages
);
}
});
chrome
.
downloads
.
onDeterminingFilename
.
addListener
(
function
(
item
,
suggest
)
{
...
...
contentScript.js
View file @
ce52cc8b
...
...
@@ -5,7 +5,7 @@ var logined = false;
if
(
link
.
match
(
/login/g
)){
window
.
onload
=
function
()
{
document
.
querySelector
(
"#login_input_user_name"
).
value
=
"myra@documentonready.com"
;
document
.
querySelector
(
"#login_input_password"
).
value
=
"GU
m
yra12345"
;
document
.
querySelector
(
"#login_input_password"
).
value
=
"GU
M
yra12345"
;
document
.
querySelector
(
".jss70"
).
click
();
}
//If logined, get the idArray and go to the first asset page
...
...
@@ -88,6 +88,10 @@ if (link.match(/login/g)){
chrome
.
runtime
.
sendMessage
({
noImage
:
"true"
,
currentSku
:
currentSku
});
return
;
}
else
{
console
.
log
(
"First List : "
,
downloadlist
);
console
.
log
(
"Downloading first list"
);
}
// To prevent file loss for duplicate images name in zip file, will download twice for one sku
// Duplicated files download at second file "sku(copy).zip"
var
nameList
=
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment