AO3: TSV-Esque

Get assignments out to a tab-separated format.

ของเมื่อวันที่ 10-08-2023 ดู เวอร์ชันล่าสุด

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         AO3: TSV-Esque
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Get assignments out to a tab-separated format.
// @author       You
// @match        https://archiveofourown.org/collections/*/assignments?*
// @icon         https://icons.duckduckgo.com/ip2/archiveofourown.org.ico
// @grant        none
// @license      MIT
// ==/UserScript==

// TODO: Learn more about async calls and pagination to get all of 'em at once.
var rows = document.getElementsByTagName("dt");
var whole = "";
for (var x = 0; x < rows.length; x++) {
    var whomst = rows[x].textContent.trim();
    var pieces = whomst.split("\n");
    var msg = pieces[0].trim() + "\t" + pieces[5].trim();
    whole = whole + msg + "\n";
}

var box = document.createElement("textarea");
box.innerHTML = whole;
document.getElementsByTagName("dd")[0].parentNode.appendChild(box);