Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Git Book Detect #6

Open
fish-404 opened this issue Jul 16, 2022 · 1 comment
Open

Git Book Detect #6

fish-404 opened this issue Jul 16, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@fish-404
Copy link
Owner

fish-404 commented Jul 16, 2022

Seems Git Book allow users use their custom domain to publish Git Book.
The dark style can't easily use stylus domain match / regex match rule to apply.

@fish-404 fish-404 self-assigned this Jul 16, 2022
@fish-404 fish-404 added the enhancement New feature or request label Jul 16, 2022
@fish-404
Copy link
Owner Author

fish-404 commented Sep 2, 2022

Inspired by this post1, maybe I can use DNS lookup API like Google JSON API 2 (type para reference3) to check if there is a record called hosting.gitbook.com, then use Tampermonkey scripts to apply style.

Footnotes

  1. Use DNS TXT lookup to gain quick insights which services companies are using - AllAgora

  2. JSON API for DNS over HTTPS(DoH) | Public DNS | Google Developers

  3. Domain Name System (DNS) Parameters

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant