From 82738a4ffb3773d8b62bf89812677a0fb63d7be8 Mon Sep 17 00:00:00 2001 From: GrahamSH <64214252+GrahamSH-LLK@users.noreply.github.com> Date: Tue, 27 Oct 2020 14:03:07 -0400 Subject: [PATCH 1/8] Update head.html --- site/_includes/head.html | 46 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/site/_includes/head.html b/site/_includes/head.html index fa7afaa..4ae901d 100644 --- a/site/_includes/head.html +++ b/site/_includes/head.html @@ -35,6 +35,48 @@ {% unless page.no-analytics %} - - + + {% endunless %} From 1245a0b537716fd91f96f542eca2e740e0872f46 Mon Sep 17 00:00:00 2001 From: GrahamSH <64214252+GrahamSH-LLK@users.noreply.github.com> Date: Tue, 27 Oct 2020 14:06:01 -0400 Subject: [PATCH 2/8] Update head.html --- site/_includes/head.html | 47 ++-------------------------------------- 1 file changed, 2 insertions(+), 45 deletions(-) diff --git a/site/_includes/head.html b/site/_includes/head.html index 4ae901d..e818342 100644 --- a/site/_includes/head.html +++ b/site/_includes/head.html @@ -33,50 +33,7 @@ - {% unless page.no-analytics %} - - + {% endunless %} + From 3eaf0ccdadc42303ede0c61039655fd1bcb1228b Mon Sep 17 00:00:00 2001 From: GrahamSH <64214252+GrahamSH-LLK@users.noreply.github.com> Date: Tue, 27 Oct 2020 14:07:38 -0400 Subject: [PATCH 3/8] Update footer.html --- site/_includes/footer.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/_includes/footer.html b/site/_includes/footer.html index 62b850d..2717441 100644 --- a/site/_includes/footer.html +++ b/site/_includes/footer.html @@ -14,6 +14,7 @@

Pages

FAQ Send Feedback Contributors + Privacy Policy

Discuss

@@ -27,4 +28,4 @@

Resources

Documentation
- \ No newline at end of file + From 4783c4e1ab90756a25a95d239c248c03efe7e951 Mon Sep 17 00:00:00 2001 From: GrahamSH <64214252+GrahamSH-LLK@users.noreply.github.com> Date: Tue, 27 Oct 2020 14:08:28 -0400 Subject: [PATCH 4/8] Update nav.html --- site/_includes/nav.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/site/_includes/nav.html b/site/_includes/nav.html index b92c9f1..af645f4 100644 --- a/site/_includes/nav.html +++ b/site/_includes/nav.html @@ -22,4 +22,12 @@ - \ No newline at end of file + + From 9d5ee934686a42ed6166e5032be8b61d05a80f22 Mon Sep 17 00:00:00 2001 From: GrahamSH <64214252+GrahamSH-LLK@users.noreply.github.com> Date: Tue, 27 Oct 2020 14:10:05 -0400 Subject: [PATCH 5/8] Update website-base.js --- site/assets/js/website-base.js | 36 +++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/site/assets/js/website-base.js b/site/assets/js/website-base.js index 5bbbcb5..fdca70a 100644 --- a/site/assets/js/website-base.js +++ b/site/assets/js/website-base.js @@ -80,6 +80,40 @@ window.addEventListener('load', () => { }) +/* ============================================================= + COOKIE CONSENT +============================================================= */ + +var cookiesBanner = new CookiesEuBanner(function () { + window.dataLayer = window.dataLayer || []; function gtag() {dataLayer.push(arguments)}; gtag("js", new Date); gtag("config", "UA-144464383-2") + let s = document.createElement("script") + s.src ="https://www.googletagmanager.com/gtag/js?id=UA-144464383-2"; + document.head.appendChild(s) + // this.deleteCookie(this.cookieName) + // window.location.reload() +}, false) + +// cookiesBanner.deleteCookie(cookiesBanner.cookieName); +// console.log(cookiesBanner.hasConsent()) + +// function updateCookiesEuState() { +// var hasConsent = cookiesBanner.hasConsent() +// var state = '❔ Nor accepted nor rejected'; + +// if (hasConsent === true) { +// state = '✅ Accepted'; +// } else if (hasConsent === false) { +// state = '❌ Rejected'; +// cookiesBanner.deleteCookie(cookiesBanner.cookieName) +// cookiesBanner.setConsent(false); +// } + +// console.log(state) +// } + +// updateCookiesEuState(); +// setInterval(updateCookiesEuState, 100); + /* ============================================================= DARK THEME ============================================================= */ @@ -199,4 +233,4 @@ We thank you for visiting the website, and enjoy using the extension if you do! "font-size: 1.5rem; font-weight: 500", "", "font-style: italic; font-size: 0.75rem") -}) \ No newline at end of file +}) From 890ab05d15d6c843054092bd1100481012c52f5b Mon Sep 17 00:00:00 2001 From: GrahamSH <64214252+GrahamSH-LLK@users.noreply.github.com> Date: Tue, 27 Oct 2020 14:12:18 -0400 Subject: [PATCH 6/8] Create privacy.md --- site/privacy.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 site/privacy.md diff --git a/site/privacy.md b/site/privacy.md new file mode 100644 index 0000000..034af9b --- /dev/null +++ b/site/privacy.md @@ -0,0 +1,41 @@ +--- +layout: markdown +title: Privacy Policy +description: This Privacy Policy describes how we collect, use, and safeguard the information you give us. +--- + +*Effective date: 30 September 2020* + +This Privacy Policy describes how we collect, use, and safeguard the information you give us. In this agreement, website refers to the Scratch Addons website (). Extension refers to our browser extension, which you can download from or + +When we talk about the service, we mean any service provided by us, such as the website or our services used in addons. The terms "we," "us," and "our" refer to the leaders of the Scratch Addons open source project (). When you use our services, you agree to this privacy policy. + +## Information we collect + +We collect a few different kinds of information about you, like what part of the world you are in, what pages you come to our website from, and what device and software you use. We also collect information about how you use our website. We might collect your Scratch username. + +### Information collected via Technology + +When you load our website, your browser automatically sends us some information about you. That information includes what page you were on before you came to our website, what kind of device you use, and your IP address. This information does not let us know who you are, but it can help us make decisions about how to make our website better. We may use cookies or other local storage to collect information about you, but not who you are, and remember your settings. For example, Scratch Addons may use cookies to remember if you want to use dark mode. + +Scratch Addons may use both persistent and session storage. Persistent storage stays on your computer after you close your browser until you delete it, and your browser deletes session storage when you close it. We use Google Analytics to collect data. For information about how Google may use your data, see and . + +### How we use your information + +We will never sell, rent, or share your data, except as needed to operate the service. We do share your information with companies whose services we use, like the company that hosts the servers collecting form responses or the one hosting our website. In general, we use the personal information you give to us to help us communicate with you. For example, we might use personal information to contact you in response to questions or provide technical support. If law enforcement asks for data about a user, we will give it to them. + +### How we protect information + +We are generally quite careful with your data, using security measures like HTTPS and avoiding the use of insecure code that could allow XSS. However, we ensure that hackers won't. When you use our service, you accept that small have access to your information if we get hacked. + +## Links to other websites + +As part of the service, we may provide links to or compatibility with other websites or apps. We aren't responsible for the content on those sites or how they might use your data. This Privacy Policy is only about our service. + +## Changes to our privacy policy + +We might change this policy at any time, but if we do, we will tell you. If we make substantial changes, they will take effect 30 days after we tell you. Small changes or clarifications will take effect immediately. You should periodically check the website and this page for updates. + +## How to contact us + +If you have any questions, please contact us through our feedback page at This page was last updated on 30 September 2020. From 5bd5488d25f8bda0198c6f85085be89f65b5d082 Mon Sep 17 00:00:00 2001 From: GrahamSH <64214252+GrahamSH-LLK@users.noreply.github.com> Date: Tue, 27 Oct 2020 14:15:55 -0400 Subject: [PATCH 7/8] Update base.scss --- site/assets/css/base.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/site/assets/css/base.scss b/site/assets/css/base.scss index 556f8c3..189995d 100644 --- a/site/assets/css/base.scss +++ b/site/assets/css/base.scss @@ -366,3 +366,10 @@ body.dark.extension-styled { body:not([data-theme-loaded=true]) { display: none; } +body.extension-styled { + + #cookies-eu-banner { + background: #2a2a2a + } + +} From 837c33e1a6388623314aa77108b8e7de2649f302 Mon Sep 17 00:00:00 2001 From: GrahamSH <64214252+GrahamSH-LLK@users.noreply.github.com> Date: Wed, 28 Oct 2020 11:23:50 -0400 Subject: [PATCH 8/8] Update footer.html --- site/_includes/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/_includes/footer.html b/site/_includes/footer.html index 2717441..b49fcef 100644 --- a/site/_includes/footer.html +++ b/site/_includes/footer.html @@ -14,7 +14,7 @@

Pages

FAQ Send Feedback Contributors - Privacy Policy + Privacy Policy

Discuss