Post-submit hook, launching browser automatically #7

Open
opened 2026-04-07 22:41:06 +02:00 by maleszka · 4 comments
Owner

Research needed.

  • config option to specify post-submit hook? used to e.g. launch firefox
  • hook cmd string can contain placeholders for url, contest_id, etc.?
  • session in satori expires after 24h and logging in a browser every time is very tedious; can we somehow import wbijs session tokens to firefox in post-submit hook?
  • how should it play with #4?
Research needed. - config option to specify post-submit hook? used to e.g. launch firefox - hook cmd string can contain placeholders for url, contest_id, etc.? - session in satori expires after 24h and logging in a browser every time is very tedious; can we somehow import wbijs session tokens to firefox in post-submit hook? - how should it play with #4?
kbity self-assigned this 2026-08-14 21:58:14 +02:00
Collaborator

going to work on a basic version of this along with #4; need to research third bullet point

going to work on a basic version of this along with #4; need to research third bullet point
Author
Owner

I implemented the submit hook basing on your changes in kbity/wbij@1f175289fb and kbity/wbij@534ff7716d.

I introduced my implementation in cfbe2f994c and 48db2e24db.

Third bullet point (regarding firefox session token) still needs research

I implemented the submit hook basing on your changes in https://repos.adamm.rocks/kbity/wbij/commit/1f175289fb847d1db0f0598f7c594972baf34bc8 and https://repos.adamm.rocks/kbity/wbij/commit/534ff7716d45d896fc2df23472375a46363ace27. I introduced my implementation in https://repos.adamm.rocks/maleszka/wbij/commit/cfbe2f994c52fa0b778c582d12cbdd5461f2401b and https://repos.adamm.rocks/maleszka/wbij/commit/48db2e24db1eed9e6ce70106a03af6324225c2cc. Third bullet point (regarding firefox session token) still needs research
Collaborator

a little something I found regarding importing tokens, since someone had a similar idea: https://unix.stackexchange.com/questions/422988/use-xdg-open-to-set-cookie-or-post-data. it may or may not be of use; i'm about to head out to campus so i'll elaborate a bit later if I find anything more of note

a little something I found regarding importing tokens, since someone had a similar idea: https://unix.stackexchange.com/questions/422988/use-xdg-open-to-set-cookie-or-post-data. it may or may not be of use; i'm about to head out to campus so i'll elaborate a bit later if I find anything more of note
Author
Owner

Two ideas that I've got after a quick search:

  • setting cookies from our own companion web extension (which we will like to ship with wbij for codeforces anyway)
  • communicate with firefox's devtools over Remote Debugging Protocol
Two ideas that I've got after a quick search: - setting cookies from our own companion web extension (which we will like to ship with wbij for codeforces anyway) - communicate with firefox's devtools over Remote Debugging Protocol
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
maleszka/wbij#7
No description provided.