Giter VIP home page Giter VIP logo

aheui.user.js's Introduction

aheui.user.js

이게 뭡니까?

제오백칠십오돌 한글날 겸 아희반포 제십칠돌을 기념하여 새벽에 이유없이 만든 유저스크립트입니다. Puzzlet Chung이 개발한 jsaheui 구현체를 그냥 가져오기만 해서 모든 사이트의 자바스크립트 콘솔에서 사용할 수 있도록 하였습니다. 물론 디버그 콘솔과 단계별 실행과 같은 고급 기능은 제공하지 않습니다.

어떻게 쓰나요?

자바스크립트 콘솔에서 다음과 같은 구문을 사용합니다.

아희(코드, 입력 버퍼, 줄바꿈 기다림 여부, 숫자 버퍼);

코드는 LF(\n)으로 구분된 String이여야 하며, 입력 버퍼는 String, 줄바꿈 기다림 여부는 Boolean, 숫자 버퍼는 숫자들의 Array 또는 공백으로 구분된 문자열(aheui.github.io#12 참조)로 입력이 가능합니다.

줄바꿈 기다림 여부에 true가 입력될 경우, LF(\n)이 올 때까지 버퍼에 쌓아뒀다가 LF(\n) 지점에서 한번에 출력하거나 코드가 종료할 때 일괄적으로 출력합니다. 예시는 다음과 같습니다.

> 아희(`밤밣따빠밣밟따뿌
빠맣파빨받밤뚜뭏
돋밬탕빠맣붏두붇
볻뫃박발뚷투뭏붖
뫃도뫃희멓뭏뭏붘
뫃봌토범더벌뿌뚜
뽑뽀멓멓더벓뻐뚠
뽀덩벐멓뻐덕더벅`, "", false);
H
e
l
l
o
...

도저히 봐줄 수가 없습니다.

> 아희(`밤밣따빠밣밟따뿌
빠맣파빨받밤뚜뭏
돋밬탕빠맣붏두붇
볻뫃박발뚷투뭏붖
뫃도뫃희멓뭏뭏붘
뫃봌토범더벌뿌뚜
뽑뽀멓멓더벓뻐뚠
뽀덩벐멓뻐덕더벅`, "", true);
Hello, world!

훨씬 낫군요.

왜 쓰나요?

어떤 문자의 유니코드 코드를 구하고 싶을때 습관적으로 자바스크립트 콘솔을 이용해서 찾고는 합니다.

"뷁".charCodeAt(0);

그런데 말입니다. 혹시 너무 길어서 불편하다는 생각은 해보시지 않으셨습니까? UTF-8 코드를 구하는데는 밯망희보다 우수한 코드는 없다는 사실이 증명되었다고 합니다.#

이에 밯망희 깎던 노인의 마음을 자바스크립트 콘솔에 부여할 수는 없나 고민하던 차, 아래와 같은 코드를 고안하였습니다.

아희("밯망희","뷁");

비록 자바스크립트 문법과 매개변수로 인하여 밯망희 깎던 노인의 마음을 그대로 전하지는 못하였으나, 전자는 18자, 후자는 14자로서 무려 4자의 감량 효과가 있었습니다. 어째 후자가 바이트수가 더 길다고요? 기분 탓입니다. 무시하십시오.

어떻게 설치하나요?

  1. Greasemonkey 호환 유저스크립트 매니저를 설치합니다. (Chrome 기준 Tampermonkey 등)
  2. 이 링크에 접속하여 설치합니다.

aheui.user.js's People

Contributors

ldmsys avatar puzzlet avatar dittos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.