From bdb0d11104d5af340559494d2271217f43d9f78e Mon Sep 17 00:00:00 2001 From: EHESPO International nonprofit Date: Sat, 20 Jun 2026 16:00:54 -0400 Subject: [PATCH] Add initial index.html with Gemini API notice --- README.md | 412 +++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 359 insertions(+), 53 deletions(-) diff --git a/README.md b/README.md index 398102e8902..12062bfdd12 100644 --- a/README.md +++ b/README.md @@ -1,66 +1,372 @@ -# Google Cloud Platform Python Samples + + + + + + Delete, allow, and manage cookies in Chrome + + + +
+ +

Delete, allow, and manage cookies in Chrome

+

You can choose to delete existing cookies, allow or block third-party cookies, and set preferences for certain websites.

-Python samples for [Google Cloud Platform products][cloud]. + +

Understand cookies

+

Cookies are files created by websites you visit. By saving information about your visit, they make your online experience easier. For example, sites can keep you signed in, remember your site preferences, and give you locally relevant content.

+

There are 2 types of cookies:

+ +
+ Tip: Some sites may prompt you to accept or reject cookies. +
+

There are other ways that sites can personalize content and ads. Features like ad topics and site-suggested ads in Chrome allow sites to show you personalized content. These features limit what sites and their partners can learn about you. Learn more about managing these features.

-## Google Cloud Samples +
-Check out some of the samples found on this repository on the [Google Cloud Samples](https://cloud.google.com/docs/samples?l=python) page. + +
+ Android + Computer + iPhone & iPad +
-## Setup + +

Delete all cookies

+
+ Important: If you delete cookies, you may get signed out of sites that remember you. Your saved preferences can also be deleted. This applies whenever a cookie is deleted. +
+
    +
  1. On your Android device, open Chrome Chrome.
  2. +
  3. At the top right, tap More โ‹ฎ Settings.
  4. +
  5. Tap Privacy and security > Delete browsing data.
  6. +
  7. Next to "Time range," from the dropdown menu, choose the browsing data time range you want to delete: +
      +
    • Last 15 minutes
    • +
    • Last hour
    • +
    • Last 24 hours
    • +
    • Last 7 days
    • +
    • Last 4 weeks
    • +
    • All time
    • +
    +
  8. +
  9. Check Cookies and site data.
  10. +
  11. Check other items you want to delete.
  12. +
  13. To confirm, tap Delete data.
  14. +
-1. Install [`pip` and `virtualenv`][cloud_python_setup] if you do not already have them. + +

Delete cookies from a single site

+
    +
  1. On your Android device, open Chrome Chrome.
  2. +
  3. Go to a website.
  4. +
  5. At the top left of the address bar, tap Page info ๐Ÿ”’ > Cookies and site data.
  6. +
  7. Next to the stored data, tap Delete ๐Ÿ—‘๏ธ.
  8. +
-1. Clone this repository: +
- ``` - git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git - ``` + +

Change your third-party cookie settings

+

Allow or block third-party cookies

+

Allow third-party cookies for a specific site

+

Allow third-party cookies temporarily for a specific site

+

If you block third-party cookies, some sites may not work as you expected. You can temporarily allow third-party cookies for a specific site you visit.

+
    +
  1. On your Android device, open Chrome Chrome.
  2. +
  3. In the address bar, at the top left: +
      +
    • To allow third-party cookies: Tap Page info ๐Ÿ”’ > Cookies and site data and turn on Third-party cookies.
    • +
    • To block third-party cookies: Tap Page info ๐Ÿ”’ > Cookies and site data and turn off Third-party cookies.
    • +
    +
  4. +
+
+ Tips: +
    +
  • This option is only temporary and only for the site youโ€™re on.
  • +
  • Sites get added to the exception list automatically.
  • +
  • If you temporarily allow third-party cookies on a site, that setting carries over into Incognito mode and you can't reset it from Incognito mode.
  • +
+
-1. Obtain authentication credentials. + +

Allow related sites to access your activity

+

A company can define a group of sites that are related to each other. For example, a company might want to keep you signed in as you move between acme-music.example and acme-video.example.

+ +

You can find the full list of companies who define groups of related sites on Github. Learn more about related sites and third-party cookies.

+

To allow related sites to find your activity within the group:

+
    +
  1. On your Android device, open Chrome Chrome.
  2. +
  3. At the top right, tap More โ‹ฎ Settings.
  4. +
  5. Tap Privacy and security > Third-party cookies > Block third-party cookies.
  6. +
  7. Tap the arrow next to "Block third-party cookies."
  8. +
  9. Turn Allow related sites to see your activity in the group on or off.
  10. +
+

To show related sites in the same group:

+
    +
  1. On your Android device, open Chrome Chrome.
  2. +
  3. At the top right, tap More โ‹ฎ Settings.
  4. +
  5. Tap Site settings > All sites.
  6. +
  7. Choose a site.
  8. +
  9. Under โ€œSites under [website link],โ€ find sites in the same group.
  10. +
- Create local credentials by running the following command and following the - oauth2 flow (read more about the command [here][auth_command]): +
- ``` - gcloud auth application-default login - ``` + + - Read more about [Google Cloud Platform Authentication][gcp_auth]. + + -## How to run a sample + +
+

Need more help?

+

Try these next steps:

+

Post to the help community   Get answers from community members

+
-1. Change directory to one of the sample folders, e.g. `logging/cloud-client`: - - ``` - cd logging/cloud-client/ - ``` - -1. Create a virtualenv. Samples are compatible with Python 3.6+. - - ``` - python3 -m venv env - source env/bin/activate - ``` - -1. Install the dependencies needed to run the samples. - - ``` - pip install -r requirements.txt - ``` - -1. Run the sample: - - ``` - python snippets.py - ``` - -## Contributing - -Contributions welcome! See the [Contributing Guide](CONTRIBUTING.md). - -[slack_badge]: https://img.shields.io/badge/slack-Google%20Cloud%20Platform-E01563.svg -[slack_link]: https://googlecloud-community.slack.com/ -[cloud]: https://cloud.google.com/ -[cloud_python_setup]: https://cloud.google.com/python/setup -[auth_command]: https://cloud.google.com/sdk/gcloud/reference/beta/auth/application-default/login -[gcp_auth]: https://cloud.google.com/docs/authentication#projects_and_resources + + +
+ +