Skip to content

Commit ee75a57

Browse files
fix: Remove translators from web-ext ignore (#639)
* Remove translators from web-ext ignore * Fix linter / translator imports by updating translators to a version without `attr` function declarations --------- Co-authored-by: Tobias Diez <code@tobiasdiez.de>
1 parent 260d560 commit ee75a57

4 files changed

Lines changed: 3 additions & 17 deletions

File tree

scripts/import_and_patch_translators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def append_exports(text: str) -> tuple[str, bool]:
234234

235235
def ensure_sandbox_import(text: str) -> tuple[str, bool]:
236236
import_re = re.compile(
237-
r"^\s*import\s*\{\s*([^}]*)\}\s*from\s*[\"']\.\./\.\./sources/sandbox\.js[\"'];?\s*$",
237+
r"^\s*import\s*\{\s*([^}]*)\}\s*from\s*[\"'].*sandbox\.js[\"'];?\s*$",
238238
re.MULTILINE,
239239
)
240240
match = import_re.search(text)

translators/manifest.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,19 +2518,6 @@
25182518
"minVersion": "3.0",
25192519
"maxVersion": ""
25202520
},
2521-
{
2522-
"path": "translators/zotero/Edinburgh University Press Journals.js",
2523-
"label": "Edinburgh University Press Journals",
2524-
"translatorID": "b7bd798d-e518-46d1-aa13-a69f2864fa91",
2525-
"target": "^https?://www\\.euppublishing\\.com/",
2526-
"browserSupport": "gcsibv",
2527-
"translatorType": 4,
2528-
"creator": "Sebastian Karcher",
2529-
"priority": 100,
2530-
"lastUpdated": "2016-09-13 21:55:09",
2531-
"minVersion": "3.0",
2532-
"maxVersion": ""
2533-
},
25342521
{
25352522
"path": "translators/zotero/Education Week.js",
25362523
"label": "Education Week",
@@ -7379,7 +7366,7 @@
73797366
"translatorType": 4,
73807367
"creator": "Michael Berkowitz and Aurimas Vinckevicius",
73817368
"priority": 100,
7382-
"lastUpdated": "2025-12-02 18:01:21",
7369+
"lastUpdated": "2026-03-19 20:29:30",
73837370
"minVersion": "3.0",
73847371
"maxVersion": ""
73857372
},

translators/zotero

Submodule zotero updated 713 files

web-ext-config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ export default {
33
"circle.yml",
44
"package-lock.json",
55
"install_linux.sh",
6-
"translators",
76
".idea",
87
"workspace.code-workspace",
98
"test.js",

0 commit comments

Comments
 (0)