diff --git a/package.json b/package.json index f302721..9615ccd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "reels-master", - "version": "1.1.0", + "version": "1.1.1", "description": "Chrome extension for Instagram Reels with volume control and download functionality", "main": "index.js", "scripts": { diff --git a/src/content/content.ts b/src/content/content.ts index 71453e1..008abb2 100644 --- a/src/content/content.ts +++ b/src/content/content.ts @@ -198,6 +198,26 @@ class ReelsMaster { 'svg[aria-label="Speichern"]', 'svg[aria-label="保存"]', ].join(','); + + private readonly FOLLOW_TEXTS = [ + 'Follow', + 'Подписаться', + 'Seguir', + 'Suivre', + 'Folgen', + 'Following', + 'Подписки', + 'Siguiendo', + 'Abonné(e)', + 'Gefolgt', + 'Requested', + 'Запрос отправлен', + 'Solicitado', + 'Demandé', + 'Anfrage gesendet', + 'フォローする', + '关注', + ]; private findAllActionContainers(): HTMLElement[] { const containers: HTMLElement[] = []; @@ -481,7 +501,8 @@ class ReelsMaster { const followButtons = document.querySelectorAll('[role="button"]'); for (const button of followButtons) { - if (button.textContent?.trim() === 'Follow') { + const text = button.textContent?.trim(); + if (text && this.FOLLOW_TEXTS.includes(text)) { let parent = button.parentElement; let depth = 0; const maxDepth = 15; diff --git a/src/manifest.json b/src/manifest.json index f2f5866..9caa102 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Reels Master", - "version": "1.1.0", + "version": "1.1.1", "description": "Enhance your Instagram experience with Reels Master - download reels, seek through videos, and more!", "background": { "service_worker": "background/background.js"