diff --git a/.env b/.env index 90033cb..9ece138 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ -APP_VERSION=8.2.47 +APP_VERSION=8.2.48 PAYPAL_URL=https://www.paypal.me/ArtemSolovev OPENCOLLECTIVE_URL=https://opencollective.com/artem-solovev diff --git a/README.md b/README.md index d635fbe..bb5eab9 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ ___ ## History ### Version: -- current: 8.2.47 ( 2021, 16 february ) +- current: 8.2.48 ( 2021, 15 april ) - initial: 2.0.1 ( 2017, 12 february ) I made this program in the Russian Army while I was on duty. I was coding as fast as i could ))) diff --git a/manifest.json b/manifest.json index 9ab5f1f..2ac6462 100644 --- a/manifest.json +++ b/manifest.json @@ -5,7 +5,7 @@ "short_name": "__MSG_shortName__", "author": "__MSG_author__", "description": "__MSG_description__", - "version": "8.2.47", + "version": "8.2.48", "browser_action": { "default_icon": "img/icon128.png", "default_popup": "index.html", diff --git a/package-lock.json b/package-lock.json index 860a410..8d313cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "gloc", - "version": "8.2.47", + "version": "8.2.48", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 12436ca..7a247d3 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,10 @@ { "name": "gloc", - "version": "8.2.47", - "description": "Extension counts the number of lines of code in GitHub pages.", - "author": "Artem Solovev", + "version": "8.2.48", + "description": "Browser extension - counts locs on GitHub pages", + "authors": [ + "Artem Vadimovich Solovev (https://github.com/artem-solovev)" + ], "license": "GPL-2.0", "bugs": { "url": "https://github.com/artem-solovev/gloc/issues" diff --git a/src/configs/parametersToMap.ts b/src/configs/parametersToMap.ts index 60348d7..3037ea1 100644 --- a/src/configs/parametersToMap.ts +++ b/src/configs/parametersToMap.ts @@ -21,7 +21,7 @@ export const parametersToMap: ParameterToMap[] = [ */ locationName: LOCATION.USER, selector: 'querySelectorAll', - pathToSelect: '.js-pinned-items-reorder-container ol li a.text-bold.flex-auto.min-width-0', + pathToSelect: 'ol li div div div a', pathToInsert: '.wb-break-all', existenceChecker: (entity: HTMLAnchorElement[]) => entity && entity.length > 0, wrapper: (entity) => Array.prototype.slice.call(entity), @@ -29,7 +29,7 @@ export const parametersToMap: ParameterToMap[] = [ { locationName: LOCATION.ORGANIZATION, selector: 'querySelectorAll', - pathToSelect: '.repo-list h3 a', + pathToSelect: '#org-repositories div ul div.flex-auto > h3 > a', existenceChecker: (entity: HTMLAnchorElement[]) => entity && entity.length > 0, wrapper: (entity) => Array.prototype.slice.call(entity), }, diff --git a/src/utils/scrapData.ts b/src/utils/scrapData.ts index 41346c2..de74686 100644 --- a/src/utils/scrapData.ts +++ b/src/utils/scrapData.ts @@ -28,6 +28,8 @@ export const scrapData = (parameters: ParameterToMap[]): InitialData | void => { const entityToInsert = document[selector](pathToInsert); if ((existenceChecker as ExistenceChecker)(entity)) { + console.log('scrapData.locationName', locationName); + console.log('scrapData.links', (wrapper as Wrapper)(entity)); return { location: locationName, links: (wrapper as Wrapper)(entity) as HTMLAnchorElement[],