# Gets the content owner for the current strain and sets the X-Owner header
sub hlx_owner {
set req.http.X-Trace = req.http.X-Trace + "; hlx_owner";
set req.http.X-Owner = table.lookup(strain_owners, req.http.X-Strain);
if (!req.http.X-Owner) {
set req.http.X-Owner = table.lookup(strain_owners, "default");
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// returns current tab | |
const getCurrentTab = async () => { | |
const [tab] = await chrome.tabs.query({ active: true, currentWindow: true }); | |
return tab; | |
} | |
// log to current page console | |
const log = async (...arguments) => { | |
const tab = await getCurrentTab(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: fetch(window.location.href, { method: 'PURGE'}); document.querySelectorAll('script, link[rel="stylesheet"]').forEach((t) => { fetch(t.src || t.href, { method: 'PURGE'});}); window.location.reload(); |
I hereby claim:
- I am kptdobe on github.
- I am acapt (https://keybase.io/acapt) on keybase.
- I have a public key ASDS00nMKjVbw4r-jy1iaSyb4M01HcD-gCOwAi1XRrP8RQo
To claim this, I am signing this object: