AdguardTeam / AdguardTeam/Scriptlets
Fix 'json-prune' — scriptlet does not work on Twitter
- 主要言語
- JavaScript
- スター
- 195
- フォーク
- 33
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Recently, Twitter has added ads to the section `Trends for you`:

After checking with the Chrome DevTools, I found these requests called on the Request URL: https://twitter.com/i/api/2/guide.json
P/s: I did not write the query string paramters because it was quite long.
And this is the position of advertising objects:

I wrote the scriptlet rule as follows to remove the index element `1`:
`twitter.com#%#//scriptlet('json-prune', 'timeline.instructions[1].addEntries.entries[1].content.timelineModule.items[1]')`
I wrote the scriptlet rule as follows to remove the `entryId` property:
`twitter.com#%#//scriptlet('json-prune', 'timeline.instructions[1].addEntries.entries[1].content.timelineModule.items[1]').entryId`
I wrote the scriptlet rule as follows to remove the `item` property:
`twitter.com#%#//scriptlet('json-prune', 'timeline.instructions[1].addEntries.entries[1].content.timelineModule.items[1]').item`
But all of them are not working, the console window does not have any stack trace even though the `Filtering log` is still displayed.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。