Every fall, Pacific salmon go up the Fraser River and then the Thompson River to reach the BC Interior. Adams River is one of the furthest points they run to, off of Shuswap Lake.
5 min read
Apr
03
An Afternoon in Fintry BC
> Serene He stands among the flowers
And only marks life’s sunny hours
For him dark days do not
Every fall, Pacific salmon go up the Fraser River and then the Thompson River to reach the BC Interior. Adams River is one of the furthest points they run to, off of Shuswap Lake.
> Serene He stands among the flowers
And only marks life’s sunny hours
For him dark days do not exist
The brazen-faced old Optimist
— George Allison1
In preparation for the coming summer season, I have been taking some time to
explore the Okanagan more. Partially to satisfy my own
document.addEventListener('DOMContentLoaded', function() {
// Get all links in the document
const links = document.getElementsByTagName('a');
const currentDomain = 'foursides.ca';
const amazonAffiliateTag = 'four0b-20'; // Replace with your Amazon affiliate tag
// Process each link
Array.from(links).forEach(link => {
const href = link.getAttribute('href');
// Skip if link is null, empty, or just a hash
if (!href || href === '' || href.startsWith('#')) {
return;
}
try {
const url = new URL(href);
// Handle Amazon links
if (url.hostname.includes('amazon.')) {
// Remove any existing tag
url.searchParams.delete('tag');
// Add your affiliate tag
url.searchParams.set('tag', amazonAffiliateTag);
// Update the link attributes
link.setAttribute('href', url.toString());
link.setAttribute('target', '_blank');
link.setAttribute('rel', 'nofollow noopener noreferrer');
}
// Handle other external links (not Amazon and not internal)
else if (!url.hostname.includes(currentDomain)) {
// Add referrer parameter
url.searchParams.set('ref', 'foursides.ca');
// Update the link attributes
link.setAttribute('href', url.toString());
link.setAttribute('target', '_blank');
link.setAttribute('rel', 'nofollow noopener noreferrer');
}
} catch (e) {
// If URL parsing fails, it's likely a relative URL (internal link)
// Do nothing for internal links
console.debug('Skipping internal link:', href);
}
});
});T