Alex4386 / Alex4386/turnoff-namuwiki

[Feature Request] Custom Redirecting Configuration (맞춤형 자동접속 설정)

Open
#92 2 comments 0 reactions 2 assignees Claimed by @hyperlapse122 View on GitHub
feature request
Dominant language
HTML
Stars
83
Forks
7
PR merge metrics
No merged PRs in 30d

Description

# ISSUE: Feature Request
## 추가를 원하는 기능이 무엇인가요? What kind of feature you are requesting?
- [ ] 논문 웹페이지 추가 지원 (more journal page support)
- [ ] 나무위키 제거 검색엔진 추가 (more search result filters for Search Engine)
- [ ] UX (사용자 경험) 개선 (User Experience Enhancements)
- [x] 그 외 (Others)

## 어떤 기능을 추가했으면 좋을까요? (What feature you are requesting?)
**정확하게 설명해 주세요** (Please explain it in detail)

As in a title, I wish to add to custom redirect configuration function.
제목처럼, 맞춤형 자동접속 설정 기능이 추가되었으면 좋겠습니다.

### Example:

#### When you set like this:

Table 1 (Which registered special words)
|keyword|category|correspond_word|
|------|---|-----|
|토키노 소라|hololive|ときのそら|
|로보코 씨|hololive|ロボ子さん|
|AZKi|hololive|AZKi|
|...|...|...|

Table 2 (Which registered custom redirect site)
|category|to_url|encode_as|
|---|-----|---|
|hololive|https://seesaawiki.jp/hololivetv/d/{}|EUC-JP|
|nijisanji|https://wikiwiki.jp/nijisanji/{}|UTF-8|
|774inc|https://wikiwiki.jp/774inc/{}|UTF-8|
|...|...|...|

#### So, what happen:

1. Enter "https://namu.wiki/w/%EC%8B%9C%EB%9D%BC%EC%B9%B4%EB%AF%B8%20%ED%9B%84%EB%B6%80%ED%82%A4"
2. Recognize entering "namu.wiki"
3. Extract a keyword with decoding URL (In this case, which is "시라카미 후부키", Shirakami Fubuki in Hangul.)
4. Search the keyword at Table 1 (In this case, this `category` section will be "hololive" and the `correspond_word` part is "白上フブキ")
5. Search the `category` of keyword at Table 2
6. Encode `correspond_word` with specified encode format. (e. g. UTF-8, EUC-KR, Shift_JIS, etc.) (In this case, the specified format is `EUC-JP`. so, it will got `%C7%F2%BE%E5%A5%D5%A5%D6%A5%AD`)
7. Make a URL which combined with the `to_url` and the encoded keyword. (In this case, `to_url` is `https://seesaawiki.jp/hololivetv/d/{}`, and `{}` is where the encoded keyword goes. So it goes "https://seesaawiki.jp/hololivetv/d/%C7%F2%BE%E5%A5%D5%A5%D6%A5%AD" )
8. And redirect to the URL

### 참고자료 (Reference)
* https://www.urlencoder.org/ - URL Decode and Encode (URL 디코딩, 인코딩 사이트)
* http://research.nii.ac.jp/~miyazawa/D/man/eng/encodings.html - List of encoding formats (인코딩 형식명 모음)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.