Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from OpenTermsArchive/add_instagram_community_g…
Browse files Browse the repository at this point in the history
…uidelines

Add Instagram Community Guidelines
  • Loading branch information
Ndpnt authored Mar 15, 2022
2 parents 4d81da7 + 87a5c31 commit 22de9e8
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
10 changes: 10 additions & 0 deletions declarations/Instagram.filters.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export function removeTrackingIDs(document) {
document.querySelectorAll("a").forEach((el) => {
const href = el.getAttribute("href");
const params = new URLSearchParams(href);
if (params.has("h")) {
params.set("h", "removed");
el.setAttribute("href", params.toString());
}
});
}
65 changes: 65 additions & 0 deletions declarations/Instagram.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,71 @@
"Terms of Service": {
"fetch": "https://help.instagram.com/581066165581870",
"select": [".bk"]
},
"Community Guidelines": {
"fetch": "https://help.instagram.com/477434105621119",
"select": [".bj", ".bl"]
},
"Community Guidelines - Self-harm": {
"fetch": "https://transparency.fb.com/fr-fr/policies/community-standards/suicide-self-injury/",
"select": ["._9nrm", "._9q49", "._9p7c"],
"remove": ["._9p72", "svg", "._9ooi", "._9q3_"]
},
"Community Guidelines - Hate Speech": {
"fetch": "https://transparency.fb.com/fr-fr/policies/community-standards/hate-speech/",
"select": ["._9nrm", "._9q49", "._9p7c"],
"remove": ["._9p72", "svg", "._9ooi", "._9q3_"]
},
"Community Guidelines - Child Sexual Exploitation": {
"fetch": "https://transparency.fb.com/fr-fr/policies/community-standards/child-sexual-exploitation-abuse-nudity/",
"select": ["._9nrm", "._9q49", "._9p7c"],
"remove": ["._9p72", "svg", "._9ooi", "._9q3_"]
},
"Community Guidelines - Violence Incitement": {
"fetch": "https://transparency.fb.com/fr-fr/policies/community-standards/violence-incitement/",
"select": ["._9nrm", "._9q49", "._9p7c"],
"remove": ["._9p72", "svg", "._9ooi", "._9q3_"]
},
"Community Guidelines - Violent Organizations": {
"fetch": "https://transparency.fb.com/fr-fr/policies/community-standards/dangerous-individuals-organizations/",
"select": ["._9nrm", "._9q49", "._9p7c"],
"remove": ["._9p72", "svg", "._9ooi", "._9q3_"]
},
"Community Guidelines - Spam": {
"fetch": "https://transparency.fb.com/fr-fr/policies/community-standards/spam/",
"select": ["._9nrm", "._9q49", "._9p7c"],
"remove": ["._9p72", "svg", "._9ooi", "._9q3_"]
},
"Community Guidelines - Regulated Goods": {
"fetch": "https://transparency.fb.com/fr-fr/policies/community-standards/regulated-goods/",
"select": ["._9nrm", "._9q49", "._9p7c"],
"remove": ["._9p72", "svg", "._9ooi", "._9q3_"]
},
"Community Guidelines - Harassment": {
"fetch": "https://transparency.fb.com/fr-fr/policies/community-standards/bullying-harassment/",
"select": ["._9nrm", "._9q49", "._9p7c"],
"remove": ["._9p72", "svg", "._9ooi", "._9q3_"]
},
"Community Guidelines - Intellectual Property": {
"fetch": "https://help.instagram.com/126382350847838",
"select": ["div[role=\"main\"]"],
"remove": [
"div[aria-label=\"Copier le lien\"]",
"[id='Articles connexes']",
"fieldset"
],
"filter": ["removeTrackingIDs"],
"executeClientScripts": true
},
"Community Guidelines - Adult Nudity": {
"fetch": "https://transparency.fb.com/fr-fr/policies/community-standards/adult-nudity-sexual-activity/",
"select": ["._9nrm", "._9q49", "._9p7c"],
"remove": ["._9p72", "svg", "._9ooi", "._9q3_"]
},
"Community Guidelines - Sexual Solicitation": {
"fetch": "https://transparency.fb.com/fr-fr/policies/community-standards/sexual-solicitation/",
"select": ["._9nrm", "._9q49", "._9p7c"],
"remove": ["._9p72", "svg", "._9ooi", "._9q3_"]
}
}
}

0 comments on commit 22de9e8

Please sign in to comment.