OrphanWilde comments on The Web Browser is Not Your Client (But You Don't Need To Know That) - Less Wrong
You are viewing a comment permalink. View the original post to see all comments and the full post content.
You are viewing a comment permalink. View the original post to see all comments and the full post content.
Comments (47)
In addition to Brotherzed's solution to this:
It would require a relatively simple XPath/XSLT-based browser extension. I had the XPath expression written, but removed it because it could be used for evil. (I feel mentioning the possibility is safe because the expression is sufficiently ugly that only those who would already think of it, or those who are sufficiently devoted that they will solve the problem anyways regardless of the solution they take, are going to be able to write it.)
I'm having trouble parsing your purpose. What's the objective here? Are we looking at ways to include non-LW content in LW?
Do an HTTP Get, run some simple XSLT on the response. For Slate Star Codex, <xsl:variable name="posts" select="//div[contains(@class, ' post ')]"> <xsl:for-each select="$post"><xsl:variable name="title" select="h2[@class='pjgm-posttitle']/a" /><xsl:variable name="body" select="div[@class='pjgm-postcontent'] />, then do whatever it is you want to do in the for-each.
(I expect my XSLT will get mauled, so edits may be required.)