Skip to content

Commit 8e2dfa7

Browse files
authored
Merge pull request #2674 from mneunomne/letter-notification
Add Letter notification
2 parents 3263998 + a28b18f commit 8e2dfa7

File tree

5 files changed

+371
-336
lines changed

5 files changed

+371
-336
lines changed

src/_locales/en/adnauseam.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,14 @@
539539
"message": "Apply changes on current page",
540540
"description": "English: refresh page from menu notification"
541541
},
542+
"adnOpenLetterNotification": {
543+
"message": "AdNauseam needs your support!",
544+
"description": "English: notification to open letter"
545+
},
546+
"adnOpenLetterButton": {
547+
"message": "OPEN LETTER",
548+
"description": "English: button to open letter"
549+
},
542550
"supportS6P3S1": {
543551
"message": "Make sure this issue is <b>AdNauseam-specific</b>.",
544552
"description": "A paragraph in the filter issue reporter section"

src/dashboard.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,13 @@
8282
<span data-i18n="adnNotificationShowAdsDebug"></span>
8383
<!-- newer version available -->
8484
<span data-i18n="adnNewerVersionAvailableNotification"></span>
85+
<!-- open letter -->
86+
<span data-i18n="adnOpenLetterNotification"></span>
8587
<!-- buttons -->
8688
<span data-i18n="adnNotificationDisable"></span>
8789
<span data-i18n="adnNotificationReactivate"></span>
8890
<span data-i18n="adnUpdateButton"></span>
91+
<span data-i18n="adnOpenLetterButton"></span>
8992
</div>
9093
<script src="lib/hsluv/hsluv-0.1.0.min.js"></script>
9194
<script src="js/vapi.js"></script>

src/js/adn/core.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ import {
7171
BlockingDisabled,
7272
ClickingDisabled,
7373
HidingDisabled,
74-
NewerVersionAvailable
74+
NewerVersionAvailable,
75+
OpenLetter
7576
} from './notifications.js';
7677

7778
import {
@@ -1690,6 +1691,8 @@ const adnauseam = (function () {
16901691
verifyLists();
16911692
verifyVersion();
16921693

1694+
addNotification(notifications, OpenLetter);
1695+
16931696
dnt.updateFilters();
16941697

16951698
if (firstRun) {

0 commit comments

Comments
 (0)