Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Luddite articles aren't readerable #864

Open
cmkm opened this issue Apr 29, 2024 · 1 comment
Open

The Luddite articles aren't readerable #864

cmkm opened this issue Apr 29, 2024 · 1 comment

Comments

@cmkm
Copy link

cmkm commented Apr 29, 2024

Original report on Bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1893849

Steps to reproduce:

Go to https://theluddite.org/#!post/google-ads

Actual results:

No Reader Mode.

Expected results:

Reader Mode should work, since this is an article.

@inhumantsar
Copy link
Contributor

this site fails because the article content is replaced by a script at load time:

var state = state || {};
...
function locationHasChanged(){
var newPage = window.location.hash.substring(1);
newPage = newPage.split('?')[0];  //removes query string
newPage = newPage.split('/')[0]; // only care about top level URL here
if (!newPage){
  newPage = "home"
}
else {
  newPage = newPage.slice(1,) // remove "!"
}
state.page = newPage;
renderPage(newPage);

...

function renderPage(page){
$('#body').html(ejs.render(
  state.templates[page],
  {'state': state},
));
}
<div id="body">
    It seems your Javascript is turned off. Maybe you'd prefer the <a target="_blank" href="/feed.rss">RSS</a> feed?
</div>

not sure there's anything that can be done for sites built this way.

bit of a personal note: reading this site's source took me on a nostalgia trip to the mid/late 2000s. good times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants