diff --git a/src/inject.js b/src/inject.js index 0ea4655a..e59a0652 100755 --- a/src/inject.js +++ b/src/inject.js @@ -207,6 +207,7 @@ var domUtils = { addFileSizeAndDownloadLink: function () { var links = document.querySelectorAll('tr.js-navigation-item > td.content a'); var ns = document.querySelectorAll('tr.js-navigation-item > td.age'); + var uptree = document.querySelectorAll('tr.up-tree > td'); if (ns.length && ns.length === links.length) { // verify length for showing in-sync apiUtils.getRepoContent(function (data) { @@ -215,6 +216,10 @@ var domUtils = { if (!data) { return; } utils.removePrevInstancesOf('.download'); // remove before adding new ones + + if (uptree && uptree[3]) { + uptree[3].insertAdjacentHTML('afterend', ''); + } for (var i = 0; i < ns.length; i++) { if (data[i].type === 'file') {