Commit 699a536b authored by Tobias Zeumer's avatar Tobias Zeumer
Browse files

Title instead of data-original-title (hoover)

parent 31b54b5f
// ==UserScript==
// @name TUB TORE: Autoren-Authority anpassen
// @namespace https://collaborating.tuhh.de/tobias.zeumer/Tampermonkey/
// @version 1.0.1
// @version 1.0.2
// @updateURL https://collaborating.tuhh.de/tobias.zeumer/Tampermonkey/raw/master/TUB-Tore_-_Authority-Links.user.js
// @description Icons für Autoren, die sich selbst in der Personensuche ausgeblendete haben und Anpassung der Farben.
// @author Tobias Zeumer
......@@ -41,7 +41,7 @@
// Link mit neuer Class 'staff-unlisted'
function getAuthorityLink(authorLink) {
let authorityID = authorLink.href.toString().match(/rp\d*/gi)[0];
let authorityLink = htmlToElement('<a href="/cris/rp/'+authorityID+'" class="authority"> <span data-toggle="tooltip" data-placement="top" title="" class="fa fa-user staff-unlisted" data-original-title="TUHH MitarbeiterIn (ungelistet)"></span></a>');
let authorityLink = htmlToElement('<a href="/cris/rp/'+authorityID+'" class="authority"> <span data-toggle="tooltip" data-placement="top" title="" class="fa fa-user staff-unlisted" title="TUHH MitarbeiterIn (ungelistet)"></span></a>');
return authorityLink;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment