In the absence of long-awaited functionality of searching the activity log, as well its availability through the API, I finally got around to creating a userscript that's intended to fill some of the gaps.
The userscript has three features:
Please let me know if there's anything in the script you'd like to be added and/or improved!
Installation link: https://github.com/f2404/torn-userscripts/raw/master/activity_log_filter_export.user.js
1) Export logs from Log page
Since version 0.3, it's possible to export logs from the recently introduced Log page.
This works in a way that all log entries that are in the page (including both visible and those hidden under "similar") will be exported. This means that you still need to scroll down the page; and whatever filters you have applied, the same filters will be applied to exported logs.
[image: i.imgur.com]
2) Filtering
Filtering is configured through the "visibleCategories" list in the script. If the list is empty, all categories will be visible (default).
There's a full list of categories below.
[image: i.imgur.com]
3) Export
There is an "Export" button in the Tampermonkey menu under the script name. When clicked, a standard open/save file dialog will be displayed.
Remember to open the activity log before clicking the button!
[image: i.imgur.com]
The userscript has three features:
- Exporting logs from the Log page (since version 0.3).
- Filtering the activity log by one or multiple of 49 (!) categories - 49 is how many I was able to find in my logs for the past month. Please let me know if any category is missing, thanks!
- Exporting the log as a CSV file (that can be imported into Excel or Google sheets or some other spreadsheet app). Unfortunately, it's only possible to export those log entries that are visible to the user (since non-API automatic requests are not permitted), so make sure to scroll the list down as far as you need before clicking "Export".
- It's possible to export all log messages or only the ones that are filtered - this is controlled by the "exportAll" variable value: "true" for all messages, "false" for filtered messages only.
Please let me know if there's anything in the script you'd like to be added and/or improved!
Installation link: https://github.com/f2404/torn-userscripts/raw/master/activity_log_filter_export.user.js
1) Export logs from Log page
Since version 0.3, it's possible to export logs from the recently introduced Log page.
This works in a way that all log entries that are in the page (including both visible and those hidden under "similar") will be exported. This means that you still need to scroll down the page; and whatever filters you have applied, the same filters will be applied to exported logs.
[image: i.imgur.com]
2) Filtering
Filtering is configured through the "visibleCategories" list in the script. If the list is empty, all categories will be visible (default).
There's a full list of categories below.
[image: i.imgur.com]
3) Export
There is an "Export" button in the Tampermonkey menu under the script name. When clicked, a standard open/save file dialog will be displayed.
Remember to open the activity log before clicking the button!
[image: i.imgur.com]