Commit e5893816 authored by Tobias Zeumer's avatar Tobias Zeumer
Browse files

Andere Farben TUB-Tore_-_Authority-Links.user

parent 35f60e06
// ==UserScript==
// @name TUB TORE: Autoren-Authority anpassen
// @namespace https://collaborating.tuhh.de/tobias.zeumer/Tampermonkey/
// @version 1.0.4
// @version 1.0.5
// @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
......@@ -68,10 +68,10 @@
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '\
.fa-user.staff {color: #00CCCC;} \
.fa-user.exstaff {color: #FFDD00;} \
.fa-user.externalstaff {color: #A49CCC;} \
.fa-user.undefinedstaff {color: gray;} \
.fa-user.staff {color: #2DC6C6;;} \
.fa-user.exstaff {color: #2EDCDC;} \
.fa-user.externalstaff {color: #999999;} \
.fa-user.undefinedstaff {color: #AFAFAF;} \
.fa-user.staff-unlisted {color: #4065CC;} \
';
document.getElementsByTagName('head')[0].appendChild(style);
......
// ==UserScript==
// @name Twitter: Highlight promoted tweets
// @namespace https://collaborating.tuhh.de/tobias.zeumer/Tampermonkey/
// @version 0.0.1
// @updateURL https://collaborating.tuhh.de/tobias.zeumer/Tampermonkey/raw/master/Twitter_-_Highlight_Promoted_Tweets.user.js xxx
// @description Promoted tweets are far to similar to regular tweets. Make them red!
// @author Tobias Zeumer
// @match https://*twitter.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var twitterTag = 'span';
var twitterTxt = 'Promoted';
var filter = Array.prototype.filter,
result = document.querySelectorAll(twitterTag),
filtered = filter.call( result, function( node ) {
return RegExp(twitterTxt).test(node.textContent);
});
console.log('Found "Promoted" Tweets: ' + filtered.length.toString());
filtered.forEach(function(element) {
element.closest('article').style.backgroundColor = 'red';
});
})();
\ No newline at end of file
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