Skip to content

Instantly share code, notes, and snippets.

@seia-soto
Last active May 20, 2022 12:16
Show Gist options
  • Save seia-soto/f3e22dbf893701e548a1f5ec5691ac97 to your computer and use it in GitHub Desktop.
Save seia-soto/f3e22dbf893701e548a1f5ec5691ac97 to your computer and use it in GitHub Desktop.
Adcrap content scrapper for lay users. (20220520-1)
(() => {
try {
const el = document.querySelector('p[id][style="display: none;"]')
const inline = (' ' + el.innerHTML).slice(1)
const content = decodeURIComponent(escape((window.atob(inline))))
console.log(content)
navigator.clipboard.writeText(content)
} catch (error) {
console.error(error)
console.error(`
// Version: 20220520-1
// Thanks to 2022 List-KR contributors.
// This is copyleft content, you may improve and suggest your version on List-KR!
[List-KR] Unknown error encountered!
>>>>
DON'T PANIC!
We noticed that you encountered the error during the execution!
If you follow the content under this section, we'll try to find the solution to update the script.
<<<<
#1 Do CTRL+SHIFT+U or OPTION+CMD+U and copy all of the content shown.
- GitHub Gist: https://gist.github.com
- Mozilla Pastebin: https://pastebin.mozilla.org/
<GitHub Gist>
1. Login to your gist
2. Set filename ending with '.html'
3. Create *PUBLIC* gist
4. Copy the link and paste to the issue on List-KR.
<Mozilla Pastebin>
1. Choose expiration option to 'Expire in one week'
2. Choose language to Html (optional)
3. Paste the content and click the button on top right.
4. Copy the link and paste to the issue on List-KR.
#2 Copy the following content and paste the link with the HTML above in section 1.
>>>>
${error.toString()}
<<<<
#3 Paste all links on List-KR issue thread.
Thank you for your contribution to List-KR.
Make sure that you need to leave the device and browser information too!
Otherwise, you may check newer version on the link.
> https://gist.github.com/seia-soto/f3e22dbf893701e548a1f5ec5691ac97
<Latest issue thread URLs>
- https://github.com/List-KR/List-KR/issues/277
`)
return
}
console.log(`
// Thanks to 2022 List-KR contributors.
// This is copyleft content, you may improve and suggest your version on List-KR!
[List-KR] We've copied the advertisement script into your clipboard!
Please upload your script via GitHub Gists or Mozilla Pastebin and paste the link to the issue thread.
Thank you for your contribution to List-KR.
If you see the advertisement script content did not copy into your clipboard, follow the below.
- GitHub Gist: https://gist.github.com
- Mozilla Pastebin: https://pastebin.mozilla.org/
<GitHub Gist>
1. Login to your gist
2. Set filename ending with '.js'
3. Create *PUBLIC* gist
4. Copy the link and paste to the issue on List-KR.
<Mozilla Pastebin>
1. Choose expiration option to 'Expire in one week'
2. Choose language to JavaScript (optional)
3. Paste the content and click the button on top right.
4. Copy the link and paste to the issue on List-KR.
Otherwise, you may check newer version on the link.
> https://gist.github.com/seia-soto/f3e22dbf893701e548a1f5ec5691ac97
<Latest issue thread URLs>
- https://github.com/List-KR/List-KR/issues/277
`)
})()
(() => {
try {
const el = document.querySelector('p[id][style="display: none;"]')
const inline = (' ' + el.innerHTML).slice(1)
const content = decodeURIComponent(escape((window.atob(inline))))
console.log(content)
navigator.clipboard.writeText(content)
} catch (error) {
console.error(error)
console.error(`
// Version: 20220520-1
// Thanks to 2022 List-KR contributors.
// This is copyleft content, you may improve and suggest your version on List-KR!
[List-KR] 알 수 없는 오류가 발생했습니다!
>>>>
당황하지 마세요!
저희는 실행 중에 오류를 마주쳤다는 것을 발견했습니다!
만약 당신이 아래 섹션에 있는 내용을 따라 주신다면 저희는 스크립트를 업데이트하기 위해 해결책을 찾아볼 것입니다.
<<<<
#1 CTRL+SHIFT+U 또는 OPTION+CMD+U를 누르고 보여진 내용을 모두 복사하세요.
- GitHub Gist: https://gist.github.com
- Mozilla Pastebin: https://pastebin.mozilla.org/
<GitHub Gist>
1. Gist에 로그인하세요
2. '.html'로 끝나는 임의의 파일명을 설정하세요
3. *공개* Gist를 생성하세요
4. 링크를 복사하고 List-KR의 이슈에 남겨주세요
<Mozilla Pastebin>
1. 만료일을 'Expire in one week'로 설정해주세요
2. 언어를 Html로 선택해주세요 (선택)
3. 내용을 붙여넣고 우측 상단의 버튼을 누릅니다
4. 링크를 복사하고 List-KR의 이슈에 남겨주세요
#2 아래 내용을 복사하고 위 섹션의 링크와 함께 복사하여 올려주세요.
>>>>
${error.toString()}
<<<<
#3 List-KR 이슈 스레드에 모든 링크를 붙여넣어주세요.
List-KR에 기여해주셔서 감사합니다.
간단한 기기와 브라우저 정보도 남겨주시는 것 잊지 마세요!
혹은 다음 URL에서 스크립트의 최신 버전을 확인해주세요
> https://gist.github.com/seia-soto/f3e22dbf893701e548a1f5ec5691ac97
<최신 이슈 스레드 URL>
- https://github.com/List-KR/List-KR/issues/277
`)
return
}
console.log(`
// Version: 20220520-1
// Thanks to 2022 List-KR contributors.
// This is copyleft content, you may improve and suggest your version on List-KR!
[List-KR] 저희는 방금 광고 스크립트를 클립보드에 붙여넣었습니다!
GitHub Gists나 Mozilla Pastebin에 스크립트를 업로드하고 그 링크를 붙여주세요.
List-KR에 기여해주셔서 감사합니다.
광고 스크립트가 정상적으로 복사되지 않았다고 생각되시면 다음 내용을 따라주세요.
- GitHub Gist: https://gist.github.com
- Mozilla Pastebin: https://pastebin.mozilla.org/
<GitHub Gist>
1. Gist에 로그인하세요
2. '.js'로 끝나는 임의의 파일명을 설정하세요
3. *공개* Gist를 생성하세요
4. 링크를 복사하고 List-KR의 이슈에 남겨주세요
<Mozilla Pastebin>
1. 만료일을 'Expire in one week'로 설정해주세요
2. 언어를 JavaScript로 선택해주세요 (선택)
3. 내용을 붙여넣고 우측 상단의 버튼을 누릅니다
4. 링크를 복사하고 List-KR의 이슈에 남겨주세요
혹은 다음 URL에서 스크립트의 최신 버전을 확인해주세요
> https://gist.github.com/seia-soto/f3e22dbf893701e548a1f5ec5691ac97
<최신 이슈 스레드 URL>
- https://github.com/List-KR/List-KR/issues/277
`)
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment