뉴스 사이트 기사 페이지에 접속하면 뉴스 본문외의 정보를 전부 제거한 뒤 페이지를 재구성하는 스크립트입니다.
프로젝트를 만든 사람이 구글 크롬 브라우저를 사용하기 때문에 크롬을 최우선으로 지원합니다.
릴리즈 기준은 크롬 브라우저에서 전부 잘 동작하는가이므로 업데이트가 있을 경우 크롬 외 브라우저에서는 잘 동작하지 않을 수 있습니다.
jews는 뉴스 기사 페이지에서 작동되는 스크립트이며, 자동으로 실행되기 위해서는 UserScript 플러그인의 도움이 필요합니다.
필요한 UserScript 플러그인은 사용중인 브라우저마다 다르며, 각각의 플러그인은 다음의 링크로 들어가 설치하실 수 있습니다:
UserScript 플러그인이 설치됐다면 다음의 링크 중 하나를 클릭하여 스크립트 설치 다이얼로그를 띄웁니다:
jews는 github issue tracker를 사용합니다. 이슈는 https://github.com/disjukr/jews/issues 로 제보해주시기 바랍니다.
- 구현하고 싶은 뉴스 사이트를 정합니다.
- 뉴스 사이트가 하단의 지원 사이트 목록에 체크되어있지 않은지 확인합니다.
- 목록에 사이트가 없으면 추가합니다.
- jews.user.js에 구현합니다.
- 상단의 UserScript 주석에 뉴스 페이지 주소를 추가합니다.
where
함수에 뉴스사를 구분할 수 있는 문자열을 추가합니다.jews.title
,jews.subtitle
,jews.content
,jews.timestamp
,jews.reporters
를 각각 구현합니다.
- 지원 사이트 목록에 구현한 항목을 체크하고 Pull Request를 보냅니다.
- 특정 환경에서만 발생하는 버그는 제보시에 특정 환경(브라우저/OS 등)을 명시해주세요.
- 특정 뉴스사이트나 기사 페이지에서만 발생하는 버그 역시 제보시에 링크를 명시해주세요.
- 지원 사이트 목록은 알파벳, 가나다순 정렬을 유지하도록 합니다.
jews
객체 구현 시에 아래에 정의된 타입을 따르도록 합니다.- 뉴스 페이지에서 해당하는 정보가 없을 경우
undefined
값을 채워 넣습니다. - 유사 jQuery 함수를 만들어서 사용합니다.
- 실제 jQuery와 기능이 다르게 동작할 경우 버그로 간주합니다만, 그 기능을 사용할 때만 adhoc하게 고치도록 합니다.
아래 타입 정의 스키마는 makise의 문법을 따릅니다.
this is jews
jews is {
title: string,
subtitle: string,
content: html_fragment,
timestamp: {
created: Date,
lastModified: Date
},
reporters: [reporter, ...],
cleanup: Function
}
reporter is {
name: string,
mail: mail_address
}
html_fragment is string
mail_address is string
몇몇 뉴스 사이트들은 사이트 재구성 뒤에도 광고가 남아있을 수 있습니다.
재구성을 했는데도 남는 광고들은 jews.cleanup
를 사용하여 털어내도록 합시다.
jews.cleanup
함수는 사이트 재구성이 일어난 뒤, 1초 주기로 매 번 호출됩니다.
- ITWORLD
- JTBC
- KBS
- KBS World
- MBC
- MBN
- OSEN
- SBS
- YTN
- 경향비즈
- 경향신문
- 국민일보
- 나우뉴스
- 노컷뉴스
- 뉴데일리
- 뉴데일리경제
- 뉴시스
- 데일리시큐
- 데일리안
- 데일리한국
- 동아일보
- 디지털타임스
- 로이터
- 마이데일리
- 매일경제
- 머니투데이
- 문화일보
- 미디어오늘
- 민중의소리
- 블로터닷넷
- 서울경제
- 서울신문
- 세계일보
- 스포츠동아
- 스포츠서울
- 스포츠조선
- 스포탈코리아
- 시사IN Live
- 아시아경제
- 아시아투데이
- 아이뉴스24
- 연합뉴스
- 오마이뉴스
- 월스트리트저널
- 이데일리
- 일간스포츠
- 전자신문
- 조선비즈
- 조선일보
- 중앙데일리
- 중앙일보
- 지디넷코리아
- 지지통신
- 코리아타임스
- 코리아헤럴드
- 파이낸셜뉴스
- 프레시안
- 한겨레
- 한국경제
- 한국경제TV
- 한국일보
- 허핑턴포스트
- 헤럴드경제