Greasy Fork

Greasy Fork is available in English.

Anilist: Hide Unwanted Activity

Customize activity feeds by removing unwanted entries

当前为 2023-11-14 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
SeyTi01
评分
0 0 0
版本
1.8
创建于
2023-09-13
更新于
2023-11-14
大小
12.0 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:
    • uncommented (Default: true): 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.
    • text (Default: false): Set to true to remove activities containing only text. Set to false to keep them.
    • 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.
    • 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.

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 by: videos | text | specific show