Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"There's a curious quirk on every official North Korean website. A piece of programming that must be included in each page's code.

Its function is straightforward but important. Whenever leader Kim Jong-un is mentioned, his name is automatically displayed ever so slightly bigger than the text around it. Not by much, but just enough to make it stand out."

http://mgakashim.com/405/kim-jong-un



That part of the article is misleading. It's not Javascript that does it, it's just CSS. North Korea do have a small few websites available to the outside world, so I've taken my example from one of them: http://www.kcna.kp

goHome.do (HTML)

   <nobr><span class='spanT'>Kim Jong Il</span></nobr>′s Whole Life Devoted...
kcna.css (CSS)

    .spanT {  font-size: 120%;}


The script automatically adds the span around the name saving you from manually adding it every time.


Yours might, but I couldn't find any such script on North Korean sites I sampled. The spans were hardcoded. Don't believe me, run the following from any Linux command line:

    curl http://www.kcna.kp/goHome.do?lang=eng | grep --colour 'Kim Jong Il'

So unless they have some server side parsing, this is not done in any programming language and most certainly not in Javascript on the client side.

Though lets be honest, if reporters get sent to special "revolutionisation" camps for so much as a typo (assuming that part of the article can be trusted), then you're damn well going to remember putting a span around ever instance of North Korea's leadership line. Plus (again assuming the CMS's doesn't handle this) reporters can just find/replace before uploading. I bet it becomes as much a habit as spell checking is for me.


Oh yeah, I'm aware they don't use any sort of JavaScript. Oh, now I know what you mean. The BBC article said each page contained a piece of programming which automatically made his name appear ever so slightly bigger. They do it manually. You're right.


So the Dear Leader always gets his own hardcoded span element. Hilarious.


One could make an user JavaScript out of this (I guess replacing «span.className= 'kju';» with «span.style.fontSize = '150%';» should be enough) and enjoy the correct typesetting all over the Internet!


Are you from NK or an admirer from the outside?


Just a bored student from the United Kingdom.


I was honestly curious as I didn't catch the sarcasm :/

And,.. I'm getting down-voted.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: