Project Euler Problem Translator

Provides translations in Romanian, Russian, Korean and German for Project Euler problems

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

작성자
SoboLAN
일일 설치 수
0
총 설치 수
28
평점
0 0 0
버전
1.7
생성일
2014-09-07
갱신일
2016-09-24
크기
14.4KB
라이선스
해당 없음
적용 사이트

This script is intended for use only on ProjectEuler.net and it was build to be used together with Firefox's GreaseMonkey extension.

Repository is hosted here: https://github.com/SoboLAN/projecteuler-translation-script

It places 5 flags (British, Romanian, Russian, Korean and German) on top of every problem's page. By clicking on the flag, the corresponding translation of a problem is retrieved.

Obviously, not at all problems are available in the above mentioned languages. In this case, clicking on the flag will do nothing.

Notes about implementation:

  • The technique used for implementing this is JSONP (JSON with padding), since AJAX wouldn't work (see Same Origin Policy).
  • The processing function (only 2 - 3 lines of code) is found in the processtranslation.js file. That function will be executed when the response comes back.
  • The 5 flag images are stored inside the script in Base64 format, to avoid additional HTTP requests.

LIMITATIONS:

  • does not work on HTTPS version of ProjectEuler (Firefox 23+), unless you disable Mixed Active Content blocker
  • for some unknown reason, it needs at least Firefox 9+ to work.

The translations are parsed from the corresponding translations websites:

You can see a demo on how the script works in the video on this page: http://projecteuler.radumurzea.net/greasemonkey.php