JSFiddle - React, Tailwind, and code Playground
full urls as link text_ifEndsWithXPI_v03a (use on mozilla addon prev versions page) - it needs to be pasted into the web console(ff)/console(chrome)
by dledle2
HTML
full urls as link text_ifEndsWithXPI_v03a (use on mozilla addon prev versions page) - it needs to be pasted into the web console(ff)/console(chrome)
JavaScript
javascript_:window.myVarStrResult='';(function() {
var i, c, x, h;
if (typeof String.prototype.myFunc_EndsWith !== 'function') {
String.prototype.myFunc_EndsWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;
};
}
/* if( window.top.location.hostname.toLowerCase().contains('mozilla.org') ){ */
/* alert('you must paste this manually into the console due to hardcoded content security policy for SCRIPT SRC'); */
/* } */
for (i = 0; x = document.links[i]; ++i) {
if (x.href.myFunc_EndsWith('xpi') || x.href.myFunc_EndsWith('xpi?src=version-history') ){
console.log('using a URL because it was not blacklisted: ' + x.href); window.myVarStrResult+= '\n' + x.href;
h = x.href;
x.title += " " + x.innerHTML;
c = x.firstChild ;
while (c == x.firstChild) x.removeChild(c);
x.appendChild(document.createTextNode(h));
}
} alert('Easier to drag and select text: \n\n\n\n' + 'here is a giant string of all the URLs on the page (window.myVarStrResult)' + window.myVarStrResult + '\n\n\n\n End of the listing.' );
})()void(0);