▲ 707 ▼ The original Lemmy shitpost (thelemmy.club) submitted 5 months ago by bootleg@sh.itjust.works to c/lemmyshitpost@lemmy.world 99 comments fedilink hide all child comments The post got deleted later on, and sadly the Wayback machine was unable to capture all the comments: https://web.archive.org/web/20230629152756/https://lemmy.world/post/440073
[–] SlurpingPus@lemmy.world 30 points 5 months ago (2 children) How is the instance of that community located on web.archive.org? Anyway, the answer the OOP was looking for is sugar. permalink fedilink source hideshow 4 child comments replies: [–] kif@lemmy.nz 10 points 5 months ago (2 children) Not certain, but I'm guessing it's something to do with how archive.org archives. I'd say it probably captured some JavaScript which uses window.location.host, which would resolve to the original (say lemmy.nz) on the original page but web.archive.org on the snapshot. permalink fedilink source parent hideshow 4 child comments replies: [–] SlurpingPus@lemmy.world 2 points 5 months ago* (last edited 5 months ago) Update: you seem to be at least partially correct about JS being involved: the webpage source as downloaded from archive.org has a shitton of data in JS structures, while the actual final HTML of that element is nowhere to be found. Meaning the DOM is assembled from the JS data on the fly. Now, the page url, as I predicted, doesn't seem to figure in this, because the data itself contains numerous instances of 'web.archive.org' in it. I'm guessing that Archive's algorithm replaced the site domain to be prefixed with Archive's domain and went a bit overboard about it, which seems then to have confused Lemmy's JS into using the web.archive.org domain as the instance domain when rendering the page. For better or worse, I don't use stimulants harder than tea, and amn't so young anymore as to reverse-engineer this thing further. permalink fedilink source parent [–] SlurpingPus@lemmy.world 1 point 5 months ago That's very doubtful, seeing as since the post might belong to any of the multitude of instances, the api must send the instance name in the response to the client. The client's host doesn't figure in that. Additionally, the screenshot looks like the default UI, whatever it's called (at least default for lemmy.world), and it doesn't show the instance domain for communities on the same instance (at least doesn't show currently). But I'll look into the JS hypothesis later. Weird shit is afoot there. permalink fedilink source parent [–] UnderpantsWeevil@lemmy.world 1 point 5 months ago (1 child) Going to be hell on your teeth. permalink fedilink source parent hideshow 2 child comments replies: [–] SlurpingPus@lemmy.world 1 point 5 months ago In three days? Pffft. permalink fedilink source parent
[–] kif@lemmy.nz 10 points 5 months ago (2 children) Not certain, but I'm guessing it's something to do with how archive.org archives. I'd say it probably captured some JavaScript which uses window.location.host, which would resolve to the original (say lemmy.nz) on the original page but web.archive.org on the snapshot. permalink fedilink source parent hideshow 4 child comments replies: [–] SlurpingPus@lemmy.world 2 points 5 months ago* (last edited 5 months ago) Update: you seem to be at least partially correct about JS being involved: the webpage source as downloaded from archive.org has a shitton of data in JS structures, while the actual final HTML of that element is nowhere to be found. Meaning the DOM is assembled from the JS data on the fly. Now, the page url, as I predicted, doesn't seem to figure in this, because the data itself contains numerous instances of 'web.archive.org' in it. I'm guessing that Archive's algorithm replaced the site domain to be prefixed with Archive's domain and went a bit overboard about it, which seems then to have confused Lemmy's JS into using the web.archive.org domain as the instance domain when rendering the page. For better or worse, I don't use stimulants harder than tea, and amn't so young anymore as to reverse-engineer this thing further. permalink fedilink source parent [–] SlurpingPus@lemmy.world 1 point 5 months ago That's very doubtful, seeing as since the post might belong to any of the multitude of instances, the api must send the instance name in the response to the client. The client's host doesn't figure in that. Additionally, the screenshot looks like the default UI, whatever it's called (at least default for lemmy.world), and it doesn't show the instance domain for communities on the same instance (at least doesn't show currently). But I'll look into the JS hypothesis later. Weird shit is afoot there. permalink fedilink source parent
[–] SlurpingPus@lemmy.world 2 points 5 months ago* (last edited 5 months ago) Update: you seem to be at least partially correct about JS being involved: the webpage source as downloaded from archive.org has a shitton of data in JS structures, while the actual final HTML of that element is nowhere to be found. Meaning the DOM is assembled from the JS data on the fly. Now, the page url, as I predicted, doesn't seem to figure in this, because the data itself contains numerous instances of 'web.archive.org' in it. I'm guessing that Archive's algorithm replaced the site domain to be prefixed with Archive's domain and went a bit overboard about it, which seems then to have confused Lemmy's JS into using the web.archive.org domain as the instance domain when rendering the page. For better or worse, I don't use stimulants harder than tea, and amn't so young anymore as to reverse-engineer this thing further. permalink fedilink source parent
[–] SlurpingPus@lemmy.world 1 point 5 months ago That's very doubtful, seeing as since the post might belong to any of the multitude of instances, the api must send the instance name in the response to the client. The client's host doesn't figure in that. Additionally, the screenshot looks like the default UI, whatever it's called (at least default for lemmy.world), and it doesn't show the instance domain for communities on the same instance (at least doesn't show currently). But I'll look into the JS hypothesis later. Weird shit is afoot there. permalink fedilink source parent
[–] UnderpantsWeevil@lemmy.world 1 point 5 months ago (1 child) Going to be hell on your teeth. permalink fedilink source parent hideshow 2 child comments replies: [–] SlurpingPus@lemmy.world 1 point 5 months ago In three days? Pffft. permalink fedilink source parent
[–] SlurpingPus@lemmy.world 1 point 5 months ago In three days? Pffft. permalink fedilink source parent