Skip to content

Commit

Permalink
fix modal
Browse files Browse the repository at this point in the history
  • Loading branch information
izidorio committed Dec 23, 2021
1 parent a32b7cc commit 2329cde
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Uma extensão para o navegador Chrome que baixa em .csv ou copia para a área de

### Para instalar a extensão

1. Baixe o arquivo [addon-zappul.zip clicando aqui neste link](https://github.com/izidorio/addon-zappull/releases/download/0.5.4/addon-zappull.zip)
1. Baixe o arquivo [addon-zappul.zip clicando aqui neste link](https://github.com/izidorio/addon-zappull/releases/download/0.5.6/addon-zappull.zip)

2. Descompacte o arquivo baixado.

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "ZapPull",
"version": "0.5.4",
"version": "0.5.6",
"description": "Extensão que baixa em .csv ou copia para a área de transferência os participantes dos Grupos do WhatsApp. https://github.com/izidorio/addon-zappull",
"author": "Izidorio Bento <[email protected]>",
"icons": {
Expand Down
22 changes: 14 additions & 8 deletions src/js/models/scraping.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,21 @@ export function nameGroup() {
export function dateCreatedGroup() {
try {
// span com a data de criação do grupo
const span_date_group = document.querySelector('._37Hn4._1AJnI._29Iga');
return span_date_group.textContent;
const span_name_group = document.querySelector('._3Bg5b.VWPRY._1lF7t').firstChild;
return span_name_group.textContent;
} catch (error) {
return 'error-data-grupo'
}
}


export function getTotalMembers() {
try {
// span com a data de criação do grupo
const span_name_group = document.querySelector('._3Bg5b.VWPRY._1lF7t').firstChild;
return span_name_group.textContent;
} catch (error) {
return 'error-data-grupo'
}
}

export async function readGroup() {
Expand All @@ -34,16 +42,14 @@ export async function readGroup() {

setTimeout( () => {
// div que envolve o avatar e os dados dos participantes do grupo
// let elements = document.querySelectorAll('._2nY6U._3A-iD');
let elements = document.querySelectorAll('._2nY6U');
console.log({elements});
const box = document.querySelector('.nBIOd.tm2tP')
let elements = box.querySelectorAll('._2nY6U');


let contacts = [];

for (let item of elements){
// wrappers: avatar e conteúdo
console.log({item});
const [div_wrapper_avatar, div_wrapper_content] = item.childNodes;

// wrapper image < flex < div_wrapper_avatar
Expand Down Expand Up @@ -111,4 +117,4 @@ export function readListParticipants(){
}


// _2nY6U
// i5tg98hk f9ovudaz przvwfww gx1rr48f shdiholb phqmzxqs gtscxtjd ajgl1lbb thr4l2wc cc8mgx9x eta5aym1 d9802myq e4xiuwjv
3 changes: 2 additions & 1 deletion src/js/models/setButtons.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2329cde

Please sign in to comment.