Skip to content

Instantly share code, notes, and snippets.

@niikoo
Last active June 28, 2021 17:02
Show Gist options
  • Save niikoo/78f4ea602d9e596745dc929aebfec399 to your computer and use it in GitHub Desktop.
Save niikoo/78f4ea602d9e596745dc929aebfec399 to your computer and use it in GitHub Desktop.
// ==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);
})();
@niikoo
Copy link
Author

niikoo commented May 31, 2021

Tested with Tampermonkey on Google Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment