Skip to content

Commit

Permalink
Update BBC Declarations (#3475)
Browse files Browse the repository at this point in the history
* Update BBC Declarations

* Improve selectors

---------

Co-authored-by: Clément Biron <[email protected]>
  • Loading branch information
afisher3578 and clementbiron authored Oct 23, 2024
1 parent 764d9b5 commit 93b2808
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
12 changes: 11 additions & 1 deletion declarations/BBC.history.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@
"fetch": "https://www.bbc.co.uk/usingthebbc/privacy-policy/",
"select": "body",
"validUntil": "2020-12-08T16:00:00.000Z"
},
{
"fetch": "https://www.bbc.co.uk/usingthebbc/privacy-policy/",
"select": ".gel-layout__item:nth-child(5)",
"validUntil": "2023-10-18T14:59:00Z"
}
],
"Terms of Service": [
{
"fetch": "https://www.bbc.co.uk/usingthebbc/terms-of-use/",
"select": "body",
"validUntil": "2020-12-08T16:00:00.000Z"
},
{
"fetch": "https://www.bbc.co.uk/usingthebbc/terms-of-use/",
"select": ".gel-layout__item:nth-child(5)",
"validUntil": "2023-10-18T14:59:03Z"
}
]
}
}
20 changes: 18 additions & 2 deletions declarations/BBC.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,27 @@
"documents": {
"Privacy Policy": {
"fetch": "https://www.bbc.co.uk/usingthebbc/privacy-policy/",
"select": ".gel-layout__item:nth-child(5)"
"select": [
".ipagesHero-title",
"main"
],
"remove": [
".stickysidenav",
"a[href$=\"#top\"]",
".languageList"
]
},
"Terms of Service": {
"fetch": "https://www.bbc.co.uk/usingthebbc/terms-of-use/",
"select": ".gel-layout__item:nth-child(5)"
"select": [
".ipagesHero-title",
"main"
],
"remove": [
".stickysidenav",
"a[href$=\"#top\"]",
".languageList"
]
}
}
}

0 comments on commit 93b2808

Please sign in to comment.