view the rest of the comments
Ask Lemmy
A Fediverse community for open-ended, thought provoking questions
Please don't post about US Politics. If you need to do this, try !politicaldiscussion@lemmy.world
Rules: (interactive)
1) Be nice and; have fun
Doxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them
2) All posts must end with a '?'
This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?
3) No spam
Please do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.
4) NSFW is okay, within reason
Just remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com.
NSFW comments should be restricted to posts tagged [NSFW].
5) This is not a support community.
It is not a place for 'how do I?', type questions.
If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.
Reminder: The terms of service apply here too.
Partnered Communities:
Logo design credit goes to: tubbadu
If you feel up to it, I'll gladly accept it! I'm planning on doing it myself, but I'm not sure when I'll have the time.
How to make a site handler:
In our example:
But, as I went up the tree like the last step said, I found this div:
You might think to go even upper like this:
But as you can see, the browser highlighted parts that aren't the body of the article itself. So...don't.
Now that we got the correct div, we'll fill the siteHandler template like this
Then,
Edit it as you wish, or let me know if you need me to do so. No need for credit obviously, just helping improve this amazing tool is enough :)
Note: I had to use that codefile website because something went wrong with the code markdown, but I guess you can skip it once you put it on github.
Thank you very much! I've saved the comment and when I have time I'll include it in the repository's readme.
NP, but I'd advise you to save it somewhere else as a whole as I don't know for how long that code sharing website host the templates. Although you can easily rewrite this part.
I think I can do it tomorrow, hopefully it won't slip my mind