Skip to content

Instantly share code, notes, and snippets.

@mitselek
Last active June 18, 2026 09:25
Show Gist options
  • Select an option

  • Save mitselek/650bf3b61cd3fc140e892abac120de02 to your computer and use it in GitHub Desktop.

Select an option

Save mitselek/650bf3b61cd3fc140e892abac120de02 to your computer and use it in GitHub Desktop.

VJS Logout Bookmarklet

The VJS legacy system (algus$.startup) uses HTTP Basic Auth via the nvagun DAD — which has no sign-out button. Clearing cookies doesn't help because Basic Auth credentials are cached in browser memory, not cookies.

This bookmarklet forces the browser to forget the cached credentials.

Install

Copy this code and create a bookmarklet in your browser's bookmarks bar:

javascript:void((function(){var x=new XMLHttpRequest();x.open('GET',location.href,true,'logout','logout');x.onloadend=function(){location.reload()};x.send()})())

Step-by-step

  1. Right-click your browser's bookmarks barAdd page (or Add bookmark)
  2. Name: VJS Logout
  3. URL: paste the javascript:void(...) code above
  4. Save

Use

  1. Navigate to any VJS page (e.g. ias.evr.ee/vjs/nvagun/algus$.startup)
  2. Click the VJS Logout bookmark
  3. The page reloads and prompts for login

How it works

The bookmarklet sends an XMLHttpRequest with deliberately invalid credentials (logout:logout). The server returns HTTP 401, which tells the browser to discard its cached Basic Auth credentials. The page then reloads, triggering a fresh login prompt.

Works in Chrome, Edge, and Firefox.


EVR / apex-research — AR:Schliemann, 2026-06-18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment