Put "Download CSV" Button in AO3 Prompt Memes

Puts a "Download as CSV" button on the Prompts page of AO3 Prompt Memes.

作者
JaneBuzJane
今日安裝
0
安裝總數
18
評價
0 0 0
版本
0.1
建立日期
2022-01-03
更新日期
2022-01-03
授權條款
MIT
腳本執行於

Description

I was browsing AO3's Jira for fixes/enhancements for prompt memes and found this funky little tidbit:

Screenshot of a conversation. Person A requests an Export CSV button for Prompt Memes on Archive of Our Own dot org. Person B indicates that the code already exists, but there is no button.

So I added a button for Prompt Meme administrators to download a CSV of the requests.

Caveats

  1. The CSV is really terrible. It uses AO3's existing framework, which for some reason lumps the ship tags into the "Additional Tags" column, and has unescaped HTML everywhere. I can't change this without making a pull request on Git and editing the code myself, which I am not qualified for lol. If you would like to do that, there are a ton of collection maintainers everywhere who'll be in your debt!

  2. If you aren't an administrator of the collection, you won't be allowed to download the CSV, though the button will appear. You'll get an error message (see photo 2).