I noticed it while writing a small userscript for Imgur, so the code I quote assumes an image album open (imgur.com/a/*, imgur.com/gallery/*) and is run in Greasemonkey.
Code: Select all
var Hash = document.location.pathname.match(/(gallery|a)\/(\w+)/)[2];
var Link = `${document.location.origin}/ajaxalbums/getimages/$Hash/hit.json`;
fetch(Link).then((Data)=>(Data.text())).then((Data)=>{
console.log("Log",Data.length);
});
Code: Select all
fetch(Link).then((Data)=>{
Data.text().then((Data)=>{
console.log("Log",Data.length);
})
});
There might be some stupid mistake from me, but the inconsistency makes me think this is a thing with NoScript (including the partial blocking of code pasted into page console, but it might be a different topic).
Win 7 x64, FF 55.0.3 x64, NoScript 5.0.9, Greasemonkey 3.11.