Skip to content

Commit

Permalink
feat(remove-redirect): 适配推特(Twitter)新域名
Browse files Browse the repository at this point in the history
  • Loading branch information
maomao1996 committed May 18, 2024
1 parent 9fe53e0 commit 300c0db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilly-masks-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'remove-redirect': patch
---

适配推特(Twitter)新域名
4 changes: 3 additions & 1 deletion packages/remove-redirect/src/sites/twitter.com.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import { validateUrl } from '@femm/shared-utils'
** Twitter
** - https://twitter.com
** - https://twitter.com/vuejs
** - https://x.com
** - https://x.com/vuejs
******************************************************************************/
const sites: SiteModule = [
[
'推特(Twitter)',
'twitter.com',
/^(twitter|x)\.com$/,
{
transform: {
selector: 'a[href*="://t.co/"]',
Expand Down

0 comments on commit 300c0db

Please sign in to comment.