Bump version to 1.1.2 and add support for multiple avatar selectors in content script
All checks were successful
Build and Release Extension / build (push) Successful in 18s

This commit is contained in:
Илья Глазунов 2026-01-22 23:01:33 +03:00
parent 74a50ab8f6
commit 2361df7da9
3 changed files with 14 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "reels-master",
"version": "1.1.1",
"version": "1.1.2",
"description": "Chrome extension for Instagram Reels with volume control and download functionality",
"main": "index.js",
"scripts": {

View File

@ -218,6 +218,17 @@ class ReelsMaster {
'フォローする',
'关注',
];
private readonly AVATAR_SELECTORS = [
'img[alt*="profile picture"]',
'img[alt*="Фото профиля"]',
'img[alt*="фото профиля"]',
'img[alt*="Foto de perfil"]',
'img[alt*="Photo de profil"]',
'img[alt*="Profilbild"]',
'img[alt*="プロフィール写真"]',
'img[alt*="头像"]',
].join(',');
private findAllActionContainers(): HTMLElement[] {
const containers: HTMLElement[] = [];
@ -508,7 +519,7 @@ class ReelsMaster {
const maxDepth = 15;
while (parent && depth < maxDepth) {
const hasAvatar = parent.querySelector('img[alt*="profile picture"]');
const hasAvatar = parent.querySelector(this.AVATAR_SELECTORS);
const hasFollow = parent.querySelector('[role="button"]');
if (hasAvatar && hasFollow && parent.children.length >= 2) {

View File

@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Reels Master",
"version": "1.1.1",
"version": "1.1.2",
"description": "Enhance your Instagram experience with Reels Master - download reels, seek through videos, and more!",
"background": {
"service_worker": "background/background.js"