Last active
March 28, 2023 23:39
-
-
Save adelton/378469f38db2873c8a4bf32af17f96cf to your computer and use it in GitHub Desktop.
Violentmonkey scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Set bugzilla favicon | |
// @namespace Adelton Violentmonkey Scripts | |
// @include https://bugzilla.redhat.com/* | |
// @grant none | |
// ==/UserScript== | |
var link = document.querySelector("link[rel = 'shortcut icon']"); | |
if (!link) { | |
link = document.createElement('link'); | |
link.rel = 'icon'; | |
document.getElementsByTagName('head')[0].appendChild(link); | |
} | |
link.href = 'data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8%2F9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A%2FwD%2FoL2nkwAAAcRJREFUOMuNkrFrFFEQxn%2BzysI9zq3OSiwCaTYqXLQSJIX9dbYSCAhpzz8gWIiCrWAjSI40QQIiCWKTLhAIuexxxGyKQCDB6tkkyFtuNzgWvl03OaN%2BMLxh3sw38817AFpabIx%2BENF90G3QLdA5EY2Nqc56LqDiAwDMiTCvyoYIE8AN%2FXW1IcIDH3%2BqVTqxMQTUMO8v3zYarPrCAJhRJQImfFGJ1DkkNkbvZ9k5ksj734Ef3i87vRHhXW2KK5%2BK4tlD4A6wLcJrYzg6O%2BNEhFtAUVvSNeBEhCNj%2BFYUAMgWaAA0gVSEVWCz0SB1rtpJUJsE4KsIh16qxMboiyzjpirNUptP2PWSgj9IaQKvRBD%2FJDzJMma8tpLolMsR%2BH1Ur3B9cZHP3S7HIpz64sgnXrQIOBZhs5SQOkc%2FSbg9NcX75WU%2BrqwQra3RuaR7qT91Duknie4NhzyenWU0GhGGITuDAS8XFgBoT05WhYODA76sr5M695tNPay1aq3Vi%2BgnifaTpPLr3xnQqyVRq9UaGzXPc%2B5NT%2FO82%2BVuu83ecAjAo05nfIJ%2FwVqrgC71eufi%2F02w1OtVUuoQ1drH%2FgvyPCcMw7H4T%2FUHUxIutOREAAAAAElFTkSuQmCC'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Google Calendar color tasks, not dots | |
// @namespace adelton | |
// @description New 2018 Google Calendar, color the tasks instead of the colored dots | |
// @include https://www.google.com/calendar/* | |
// @include https://calendar.google.com/* | |
// @version 1.1 | |
// @grant none | |
// ==/UserScript== | |
document.addEventListener('DOMNodeInserted', function() { | |
var i; | |
var cal_items = document.querySelectorAll('span.yzifAd'); | |
for (i of cal_items) { | |
if (i.parentNode.parentNode.firstChild.style.display !== "none") { | |
if (i.parentNode.parentNode.firstChild.className == "QNFxAc") { | |
i.style.color = i.parentNode.parentNode.firstChild.firstChild.style.borderColor; | |
i.parentNode.parentNode.firstChild.style.display = "none"; | |
} | |
} | |
} | |
var agenda_dot_items = document.querySelectorAll('div.Oxm52e'); | |
for (i of agenda_dot_items) { | |
if (i.parentNode.parentNode.style.display !== "none") { | |
if (i.parentNode.parentNode.previousSibling.classList.contains("EmMre")) { | |
i.parentNode.parentNode.previousSibling.style.color = i.style.borderColor; | |
i.parentNode.parentNode.style.display = "none"; | |
} | |
} | |
} | |
}, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Make right panel of Jira item narrower | |
// @namespace Violentmonkey Scripts | |
// @include https://issues.redhat.com/browse/* | |
// @author Jan Pazdziora | |
// ==/UserScript== | |
side = document.getElementById('viewissuesidebar'); | |
if (side) { | |
side.style = "width: 20%;"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment