Echo JS 0.11.0


chris-l comments

chris-l 19 days ago. link 1 point
Too much negativity! It should be called:

"Top 25 Most Popular Passwords!"


Also, not JavaScript related.
chris-l 48 days ago. link 1 point
There would be no point in banning him. He would just create another account.

Now that requiring that every post on echojs to be approved by an admin before it appears on the site, that would actually work.

But it would also mean a lot of more work for the admin.
chris-l 88 days ago. link 1 point
"And when the night arrives, spammers come out of the sewer to share the same cryptocurrency crap."

This spammer has 60+ deleted news and keeps trying! Does anyone from echojs actually goes there and uses its stuff, to the point of keep trying every night?
chris-l 102 days ago. link 2 points

(But I don't think is good for beginners to include in the example "bgcolor". I know it's not an HTML/CSS tutorial, but still.)
chris-l 105 days ago. link 1 point
cool, and... did they find it using JavaScript???
chris-l 117 days ago. link 1 point
This goes against the rules:

* No link to summaries, only link to original content
* No link to newsletters, see previous rule
* No URL shortened links, only real links to pages
chris-l 137 days ago. link 1 point
The only problem I see is that the redirect.js script is directly assigning a value to location.href, instead of using location.replace

Assigning to .href is similar to clicking a link; the non-https page will be in the history.

That means if someone is using a letsencrypt compatible browser, and then enter the http site, will be redirected to https, with the http site on the history.

Now, whats going to happen if the user clicks on the back button?

It will return to the non-https version, and immediately will be returned to the https version again. Which means the back button would be broken.

This can be easily fixed if the script instead uses location.replace

It would look like this:

if (location.href.match(/^http:/i)) {
    location.replace(location.href.replace(/^http:/i, 'https:'));

In the end, is only an small detail, of course