photography

Jan
25
2023: Get Back in the Box

2023: Get Back in the Box

Today is Bell Let’s Talk Day, and like last year, I want to use it to help prepare myself for what is to come this year. I do that by coming up with a theme to follow for the year.
6 min read
Jan
21

New Year New Phone

After several years of watching people use large Android phones, Apple released their own larger phones this past October. Initially,
2 min read

Latest

New Year New Phone

After several years of watching people use large Android phones, Apple released their own larger phones this past October. Initially, I resisted diving in and buying one. I was rather content with the size and the camera of my two year-old iPhone 5, but then I started seeing the photographs

DigitalOcean Referral Badge

Social Links


Mastodon
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