Greasy Fork

Anilist: Activity-Feed Filter

Control the content displayed in your activity feeds

目前为 2023-12-13 提交的版本。查看 最新版本

作者
SeyTi01
评分
0 0 0
版本
1.8.2
创建于
2023-09-13
更新于
2023-12-13
大小
13.4 KB
许可证
MIT
适用于

Configuration

Customize the script's behavior by editing the config object at the top of the script file. Below are the configuration options with their valid values:

  • remove:
    • images (Default: false): Set to true to remove activities containing images. Set to false to keep them.
    • videos (Default: false): Set to true to remove activities containing videos. Set to false to keep them.
    • text (Default: false): Set to true to remove activities containing only text. Set to false to keep them.
    • uncommented (Default: false): Set to true to remove activities with no comments. Set to false to keep them.
    • unliked (Default: false): Set to true to remove activities with no likes. Set to false to keep them.
    • containsStrings (Default: []): Remove activities containing user-defined strings. For example, ['plans to watch', 'show-name']. Leave it as an empty array [] if you don't want to use this feature.
  • options:
    • targetLoadCount (Default: 2): Set a positive integer representing the minimum number of activities to display per click on the "Load More" button.
    • caseSensitive (Default: false): Set to true for case-sensitive string removal. Set to false for case-insensitive removal.
    • reverseConditions (Default: false): Set to true to only keep posts that would be removed by the conditions.
    • linkedConditions (Default: []): Groups of conditions to be checked together. Linked conditions are always considered 'true'.
  • runOn:
    • home (Default: true): Set to true to run the script on the home feed. Set to false to exclude the home feed from processing.
    • social (Default: true): Set to true to run the script on social feeds. Set to false to exclude social feeds from processing.
    • profile (Default: false): Set to true to run the script on user profile feeds. Set to false to exclude profile feeds from processing.
    • guestHome (Default: false): Set to true to run the script on the home feed for not logged-in users. Set to false to exclude the guest home feed from processing.

Additional Information

Both containsStrings and linkedConditions support regular arrays [] as well as two-dimensional arrays [[]]. When utilizing two-dimensional arrays, conditions/strings within the inner arrays are evaluated together:

  • ['A', 'B'] removes entries containing either 'A' or 'B'.
  • [['A', 'B']] removes entries containing both 'A' and 'B'.
  • [['A', 'B'], ['C', 'D']] removes entries containing either both 'A' and 'B' or both 'C' and 'D'.

Example Usages

  • options.linkedConditions: [['images', 'customStrings'], ['uncommented', 'unliked']]:
    • Remove activities containing either both images and specific strings, or neither comments nor likes.
  • options.reverseConditions = true, remove.images = true:
    • Remove all activities except those containing images.

Demonstration

Filter for: videos | text | show name