FA - Furarchiver integration

Provides furarchiver integration into FA profile pages

This script is marked as "broken" and is likely not working
Details: furarchiver now works differently
This script is marked as "external"
This script was commisioned by someone else, and I will not check if it works. If it breaks, contact me
Click here to install Browse More Scripts
// ==UserScript==
// @name         FA - Furarchiver integration
// @namespace    e4cded44bde185dc738747c342b7ac7ea82e8491
// @version      1.2
// @description  Provides furarchiver integration into FA profile pages
// @author       /u/AyrA_ch
// @include      https://www.furaffinity.net/*
// @include      http://www.furaffinity.net/*
// @include      https://furaffinity.net/*
// @include      http://furaffinity.net/*
// @include      https://furarchiver.net/*
// @include      https://www.furarchiver.net/*
// @external     true
// @expired      true
// @broken       furarchiver now works differently
// @run-at       document-end
// ==/UserScript==

//Changelog
//=========
//1.0 - Initial release
//1.1 - Better format for username
//1.2 - Adjust for new site design

(function ($, $$) {
	"use strict";
	var formatName = function (name) {
		return name.trim().toLowerCase().replace(/_/g, '');
	};
	$$("username").forEach(function (uname) {
		var name = uname.textContent.substr(1).trim();
		if (name.indexOf(' ') < 0) {
			var link = document.createElement("a");
			link.href = "https://furarchiver.net/#" + formatName(name.textContent.substr(1));
			link.textContent = "\uD83D\uDCBE";
			link.title = "Download this gallery on furarchiver";
			uname.appendChild(link);
		}
	});
	if (location.hostname.match(/^(?:www\.)?furaffinity\.net$/i)) {
		// addFALink();
		if (localStorage.getItem("FA.hint-shown") !== "y") {
			localStorage.setItem("FA.hint-shown", "y");
			alert(
				"This is the first time you use Furaffinity with the furarchiver script installed.\n" +
				"Visit the profile/gallery/scraps/favorites/journals of a user and click on the floppy icon next to the username to start the download of this user.\n" +
				"\n" +
				"This message will not appear again unless you or your browser clears the browser data");
		}
	} else if (location.hostname.match(/^(?:www\.)?furarchiver\.net$/i)) {
		var note = $("#extension");
		if (note) {
			note.style.display = "none";
		}
	}
})(document.querySelector.bind(document), document.querySelectorAll.bind(document));

/*
LICENSE:
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
The full license text can be found here: http://creativecommons.org/licenses/by-nc-sa/4.0/
The link has an easy to understand version of the license and the full license text.

DISCLAIMER:
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
*/

Copyright © 2018 by Kevin Gut 📧 | More services | Generated for 3.138.105.31