Move to stppriv: userscript at priv.<site>, CI stops deploying
Test and publish / test (push) Successful in 16s
Test and publish / publish (push) Successful in 16s

The tracker now runs on stppriv behind Cloudflare Access. The userscript
points at priv.adam-french.co.uk and migrates a saved www base, since www
only 301s now (which drops a POST). CI publishes the image but no longer
rolls stpvm's stack; stppriv is deployed by hand.

Merge only at cutover, once priv.adam-french.co.uk/jobs/ is live.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-26 13:34:20 +00:00
co-authored by Claude Opus 5.5
parent 179463795b
commit 12f253a300
3 changed files with 20 additions and 47 deletions
+11 -5
View File
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Job tracker capture
// @namespace https://www.adam-french.co.uk/
// @version 2.1.0
// @version 2.2.0
// @description Add the job posting you are looking at to the tracker at /jobs/.
// @match *://*/*
// @noframes
@@ -10,11 +10,12 @@
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_registerMenuCommand
// @connect priv.adam-french.co.uk
// @connect www.adam-french.co.uk
// @connect adam-french.co.uk
// @connect localhost
// @downloadURL https://www.adam-french.co.uk/jobs/job-capture.user.js
// @updateURL https://www.adam-french.co.uk/jobs/job-capture.user.js
// @downloadURL https://priv.adam-french.co.uk/jobs/job-capture.user.js
// @updateURL https://priv.adam-french.co.uk/jobs/job-capture.user.js
// ==/UserScript==
/*
@@ -49,7 +50,7 @@
(function () {
"use strict";
const DEFAULT_BASE = "https://www.adam-french.co.uk/jobs/api";
const DEFAULT_BASE = "https://priv.adam-french.co.uk/jobs/api";
// Hosts where the button appears unprompted. Add an ATS here when one turns
// up; nothing else needs to change, because the fields are read by Claude
@@ -124,8 +125,13 @@
// with routes under /jobs/capture. It is now its own app at <site>/jobs/api
// with routes under /capture, so a base saved by an older version is moved
// across rather than left pointing at routes that no longer exist.
// From 2.2.0 the tracker is on its own host, priv.<site>, so a saved
// www/apex base is moved there too (www now only 301s, which drops a POST).
function migrateBase(base) {
return base.replace(/\/api$/, "/jobs/api").replace(/\/jobs\/jobs\/api$/, "/jobs/api");
return base
.replace(/\/api$/, "/jobs/api")
.replace(/\/jobs\/jobs\/api$/, "/jobs/api")
.replace(/^https:\/\/(www\.)?adam-french\.co\.uk\/jobs\/api$/, DEFAULT_BASE);
}
const config = {