NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Link Corrrecter Client
// @namespace http://tampermonkey.net/
// @version 0.1
// @license MIT
//@homepageURL none
//@supportURL none
//@contributionURL none
// @description Display the correct Stuart Back Office internal links
// @downloadURL https://openuserjs.org/install/Ayanokoji111/Link_Corrrecter_Client.user.js
// @updateURL https://openuserjs.org/meta/Ayanokoji111/Link_Corrrecter_Client.meta.js
// @copyright 2020, Ayanokoji111 (https://openuserjs.org/users/Ayanokoji111)
// @author Ayanokoji111
// @match https://app.intercom.com/*
// @require http://code.jquery.com/jquery-3.4.1.min.js
// @grant GM_getResourceText
// @grant GM_addStyle
// ==/UserScript==
!function(){"use strict";var t=15;function e(){!function(){var t=$('a[href*="http://backoffice"]').eq(0).attr("href");alert(t);var e=t.replace(".internal","");$('a[href*="http://backoffice"]').eq(0).attr("href",e),$('a[href*="http://backoffice"]').eq(0).html(e)}()}$(document).on("ready",()=>{setTimeout(function(){!function e(n,a){$('a[href*="http://backoffice"]').length&&$(n).length>0&&t>0?(t-=1,a()):setTimeout(function(){e(".nav__link__text__inbox-name",a)},50)}(".nav__link__text__inbox-name",e)},50)}),alert(window)}();