Skip to content

Commit e076b58

Browse files
Update README to reflect new api token location
1 parent 648ba68 commit e076b58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ From what I can tell these last anywhere from a few days to indefinitely. Curren
408408

409409
It's easy! Open any signed in slack window, e.g. subdomain.slack.com/messages, right click anywhere > inspect element. Open the console and paste:
410410
```
411-
window.prompt("your api token is: ",/api_token: "(.*)"/.exec(document.body.innerHTML)[1])
411+
window.prompt("your api token is: ", window.boot_data.api_token)
412412
```
413413
You will be prompted with your api token!
414414

@@ -421,7 +421,7 @@ This is a similar process, but requires an extra step depending on your platform
421421

422422
With that done and slack open, open View > Developer > Toggle Webapp DevTools (shortcut `super+option+i`). This will give you a chromium inspector into which you can paste
423423
```
424-
console.log(/api_token: "(.*)"/.exec(document.body.innerHTML)[1])
424+
console.log(window.boot_data.api_token)
425425
```
426426

427427
### Rate limiting and you

0 commit comments

Comments
 (0)