AO3: TSV-Esque

Get assignments out to a tab-separated format.

10.08.2023 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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);