Last active
June 28, 2021 17:02
-
-
Save niikoo/78f4ea602d9e596745dc929aebfec399 to your computer and use it in GitHub Desktop.
This file contains 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 Trello fix "Redirecting" | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1.2 | |
// @description Fix the annoying "Redirecting" box that trello puts up if the url needs auth. | |
// @author niikoo | |
// @match https://trello.com/c/* | |
// @updateURL https://gist.github.com/niikoo/78f4ea602d9e596745dc929aebfec399/raw/trello-description-redirectingBox-fix.user.js | |
// @downloadURL https://gist.github.com/niikoo/78f4ea602d9e596745dc929aebfec399/raw/trello-description-redirectingBox-fix.user.js | |
// @icon https://www.google.com/s2/favicons?domain=trello.com | |
// @grant none | |
// ==/UserScript== | |
let intervalIdentifier = null; | |
(function () { | |
intervalIdentifier = setInterval(function() { | |
document.querySelectorAll('a[data-testid="inline-card-resolved-view"]').forEach(el => { | |
const fullHref = el.href; | |
el.querySelectorAll('span').forEach(subSpan => { | |
if(subSpan != null && subSpan.innerText == 'Redirecting') { | |
subSpan.innerText = fullHref; | |
} | |
}); | |
}); | |
}, 500); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested with Tampermonkey on Google Chrome.