Skip to content

Instantly share code, notes, and snippets.

@BigBlueHat
Last active November 9, 2017 20:23
Show Gist options
  • Save BigBlueHat/89dd904cb2647e27c47048fc0954dcc3 to your computer and use it in GitHub Desktop.
Save BigBlueHat/89dd904cb2647e27c47048fc0954dcc3 to your computer and use it in GitHub Desktop.
List instead of Multi Selector
{
"scope": "https://textbook.example.org/",
"type": "List",
"items": [
{
"source": "https://textbook.example.org/section2.html",
"selector": {
"type": "CssSelector",
"value": "body>section:nth-of-type(3)"
}
},
{
"source": "https://textbook.example.org/section4.html",
"selector": {
"type": "CssSelector",
"value": "body>section:nth-of-type(6)"
}
},
{
"source": "https://textbook.example.org/section7.html",
"selector": {
"type": "CssSelector",
"value": "body>section:nth-of-type(8)"
}
}
]
}
{
"source": "https://textbook.example.org/",
"selector": {
"type": "MultiSelector",
"selectors": [{
"type" : "EmbeddedResourceSelector",
"value": "https://textbook.example.org/section2.html",
"refinedBy": {
"type": "CssSelector",
"value": "body>section:nth-of-type(3)"
}
},{
"type": "EmbeddedResourceSelector",
"value": "https://textbook.example.org/section4.html",
"refinedBy": {
"type": "CssSelector",
"value": "body>section:nth-of-type(6)"
}
},{
"type": "EmbeddedResourceSelector",
"value": "https://textbook.example.org/section7.html",
"refinedBy": {
"type": "CssSelector",
"value": "body>section:nth-of-type(8)"
}
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment