diff --git a/js/background.js b/js/background.js index c4f7b47..b1d2839 100755 --- a/js/background.js +++ b/js/background.js @@ -200,6 +200,14 @@ chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) { ` + + const Script = document.createElement('script'); + Script.setAttribute('type', 'text/javascript'); + Script.setAttribute('src', chrome.runtime.getURL('resources/registerTooltips.js')); + Script.addEventListener('load', function () { + Script.remove(); + }); + document.body.appendChild(Script); } else { document.getElementById('p+greatdivide_stats').innerHTML = "
This user hasn't participated in The Great Divide.
" } diff --git a/the-great-divide.js b/the-great-divide.js index c87f118..920b4da 100644 --- a/the-great-divide.js +++ b/the-great-divide.js @@ -91,6 +91,5 @@ action: "greatdivide_stats", userID: document.querySelector('.dropdown-item.text-danger[href^="/report"]').getAttribute('href').split('?')[0].split('/')[3] }); - Utilities.InjectResource("registerTooltips") } })(); \ No newline at end of file