From e47d8a2c53578f91c82bbad2bfde1094769b83d1 Mon Sep 17 00:00:00 2001 From: Marco Aigner Date: Fri, 9 Aug 2024 20:48:13 +0200 Subject: [PATCH] update the readme to fix sso --- README.MD | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.MD b/README.MD index 6bf5727..3e31318 100644 --- a/README.MD +++ b/README.MD @@ -49,12 +49,10 @@ This is done using `Firefox` Browser. Other browsers do not have `Copy All` feat 1. Login as usual to [https://learning.oreilly.com/](https://learning.oreilly.com/) 2. Open the developer tools with `F12` -3. Go to `Network` tab in the developer tools -4. Access the profile page in the browser: [https://learning.oreilly.com/profile/](https://learning.oreilly.com/) -5. In the `Network` tab, click on the request to `/profile/`. (should be the first few) -6. Click on the `Cookies` tab in the request information -7. Right-click on any values under `Request Cookies` text and choose `Copy All` -8. Paste this into any file. For this demo, we will assume you paste it into `cookie.json`. +3. Access the profile page in the browser: [https://learning.oreilly.com/profile/](https://learning.oreilly.com/) +4. Enter the command in the console: +`opy(JSON.stringify(document.cookie.split(';').map(c => c.split('=')).map(i => [i[0].trim(), i[1].trim()]).reduce((r, i) => {r[i[0]] = i[1]; return r;}, {})))` +5. Paste this into any file. For this demo, we will assume you paste it into `cookie.json`. Here is an example of how a `cookie.json` looks like. You do not need every field, this is just to show the syntax: