Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Install Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "24"

- name: Install pnpm
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
with:
version: latest
run_install: true
cache: true

- name: Install Node.js
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: "24"
cache: pnpm
- name: Audit dependencies
run: pnpm audit --prod --audit-level=high

- name: Run linter
- name: Run linters
run: pnpm run lint:all

- name: Run build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Generate Changelog
id: release_notes
Expand All @@ -18,7 +18,7 @@ jobs:
version: ${{ github.ref }}

- name: Create GitHub Release
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2
with:
tag_name: ${{ github.ref_name }}
body: ${{ steps.release_notes.outputs.release_notes }}
6 changes: 6 additions & 0 deletions .ncurc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
enginesNode: true
format: repo
reject:
- pnpm
- typescript
- eslint # https://github.com/neostandard/neostandard/issues/350
4 changes: 4 additions & 0 deletions .versionrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ module.exports = {
{ filename: "tg-ad-filter.user.js", updater: "src/meta-updater.js" },
{ filename: "src/meta.txt", updater: "src/meta-updater.js" }
],
scripts: {
prerelease: "npm run lint:all",
postbump: "npm run build"
},
writerOpts: {
finalizeContext(context) {
if (!context.commitGroups?.length) {
Expand Down
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,20 @@

All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.

## 1.4.2 (2025-12-06)
## 1.5.1 (2026-07-23)

### Bug Fixes

* **popup:** fix version ([922bd86](https://github.com/VChet/telegram-ad-filter/commit/922bd869eb1d394a238d4c616b4a27008f327fe0))

## 1.5.0 (2026-07-23)

### Features

* **DOM:** hide official sponsored messages ([f052f8d](https://github.com/VChet/telegram-ad-filter/commit/f052f8d9d8c921336802d79f66dbcbfbfb229d51))
* **filters:** update ([122fbf6](https://github.com/VChet/telegram-ad-filter/commit/122fbf6cd503661f1eac3535d28c100317dc2ce5))
* **popup:** add subtitle, update styles ([5ba6283](https://github.com/VChet/telegram-ad-filter/commit/5ba6283cb5c4bf513e83e862734386a20e1d02b3))

## 1.4.2 (2025-12-06)

* No significant changes
25 changes: 23 additions & 2 deletions blacklist.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
[
"#advertisement", "#promo", "#paid", "#sponsor", "#collab",
"#邪泻褑懈褟", "#胁蟹邪懈屑芯锌懈邪褉", "#锌邪褉褌薪械褉褋泻懈泄", "#锌褉芯屑芯", "#锌褉芯写胁懈卸械薪懈械", "#褉械泻谢邪屑", "#褋锌芯薪褋芯褉"
"#ad",
"#affiliate",
"#collab",
"#paid",
"#partnership",
"#promo",
"#sponsor",

"#邪泻褑懈褟",
"#胁蟹邪懈屑芯锌懈邪褉",
"#懈薪褌械谐褉邪褑懈褟",
"#锌邪褉褌薪械褉褋泻懈泄",
"#锌褉芯写胁懈卸械薪懈械",
"#锌褉芯屑芯",
"#褉械泻谢邪屑",
"#褋锌芯薪褋芯褉",

"#鍏嶈垂绾㈠寘",
"#鍟嗗姟鍚堜綔",
"#濂藉崱鎺ㄨ崘",
"#骞垮憡",
"#鎺ㄥ箍",
"#璧炲姪"
]
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "telegram-ad-filter",
"version": "1.4.2",
"version": "1.5.1",
"description": "Userscript that minimizes messages containing words from the list",
"author": "VChet",
"license": "MIT",
"packageManager": "pnpm@10.34.5",
"type": "module",
"homepage": "https://github.com/VChet/telegram-ad-filter#readme",
"repository": {
Expand All @@ -14,24 +15,23 @@
"url": "https://github.com/VChet/telegram-ad-filter/issues"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"dev": "tsdown --watch",
"build": "tsdown",
"lint:ts": "tsc --noEmit",
"lint:ts": "tsc",
"lint:js": "eslint .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:all": "npm run lint:ts && npm run lint:js",
"release": "npm run lint:all && commit-and-tag-version"
"release": "commit-and-tag-version"
},
"devDependencies": {
"@types/node": "^24.10.1",
"@types/node": "^26.1.1",
"@types/tampermonkey": "^5.0.5",
"commit-and-tag-version": "^12.6.1",
"eslint": "^9.39.1",
"commit-and-tag-version": "^13.1.0",
"eslint": "^9.39.5",
"eslint-plugin-userscripts": "^0.5.6",
"neostandard": "^0.12.2",
"tsdown": "^0.17.0",
"typescript": "^5.9.3"
"neostandard": "^0.13.0",
"tsdown": "^0.22.13",
"typescript": "^6.0.3"
},
"pnpm": {
"overrides": {
Expand All @@ -43,10 +43,13 @@
"es-iterator-helpers": "npm:@nolyfill/es-iterator-helpers@^1",
"hasown": "npm:@nolyfill/hasown@^1",
"is-core-module": "npm:@nolyfill/is-core-module@^1",
"isarray": "npm:@nolyfill/isarray@^1",
"object-keys": "npm:@nolyfill/object-keys@^1",
"object.assign": "npm:@nolyfill/object.assign@^1",
"object.entries": "npm:@nolyfill/object.entries@^1",
"object.fromentries": "npm:@nolyfill/object.fromentries@^1",
"object.values": "npm:@nolyfill/object.values@^1",
"safe-buffer": "npm:@nolyfill/safe-buffer@^1",
"string.prototype.matchall": "npm:@nolyfill/string.prototype.matchall@^1",
"string.prototype.repeat": "npm:@nolyfill/string.prototype.repeat@^1"
}
Expand Down
Loading