Skip to content

Commit 11d3fbe

Browse files
committed
Remove remaining amazon adsystem dead links
1 parent a97b832 commit 11d3fbe

7 files changed

+3
-26
lines changed

Diff for: _includes/layouts/common.liquid

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<head>
1212
<meta charset="utf-8">
1313
{% include JB/analytics.liquid %}
14-
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' 'unsafe-eval' *.google.com *.googleapis.com *.googlesyndication.com *.bootstrapcdn.com *.gstatic.com *.pinterest.com *.youtube.com *.amazon-adsystem.com *.twitter.com *.google-analytics.com *.facebook.net *.facebook.com *.googleadservices.com *.google.co.uk *.googletagservices.com; img-src * data:; font-src * 'unsafe-inline' data:;"> -->
14+
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' 'unsafe-eval' *.google.com *.googleapis.com *.googlesyndication.com *.bootstrapcdn.com *.gstatic.com *.pinterest.com *.youtube.com *.twitter.com *.google-analytics.com *.facebook.net *.facebook.com *.googleadservices.com *.google.co.uk *.googletagservices.com; img-src * data:; font-src * 'unsafe-inline' data:;"> -->
1515
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
1616
<meta name="google-site-verification" content="UOzBed7gLBf1xSDPmxw3r4UGsKv1KcTacRUpEwSLA9g" />
1717
<link rel="icon" href="/favicon.png" />

Diff for: content/2018/12/2018-12-13-made-in-my-lab-in-summer.md

-6
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ Also comparing distance sensor types:
2323
<iframe width="560" height="315" src="https://www.youtube.com/embed/eGYwbqp0w3w" frameborder="0" allowfullscreen="True"></iframe>
2424
</div>
2525

26-
(paid links)
27-
28-
<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=GB&source=ss&ref=as_ss_li_til&ad_type=product_link&tracking_id=orionrobots-21&language=en_GB&marketplace=amazon&region=GB&placement=B07DM2TKKL&asins=B07DM2TKKL&linkId=30013791f3cdd0f665c2fa20a1b52462&show_border=true&link_opens_in_new_window=true"></iframe>
29-
30-
<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=GB&source=ss&ref=as_ss_li_til&ad_type=product_link&tracking_id=orionrobots-21&language=en_GB&marketplace=amazon&region=GB&placement=B08W8GTLGQ&asins=B08W8GTLGQ&linkId=b58c1bbfe1668668ba1579f5beb123bf&show_border=true&link_opens_in_new_window=true"></iframe>
31-
3226
## USB Footswitch
3327

3428
I make lots of video and photos. There were many picture sequences made for the book, to help explain and demonstrate things. When doing shots of making/assembling parts, I kept finding I needed an extra hand to trigger the camera, or start/stop video recordings, while holding parts in place.

Diff for: content/2018/12/2018-12-26-merry-christmas-new-printer.md

-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,3 @@ So here is me unboxing the new printer, and showing my first moves with it - a F
1818

1919
I have already put it to use to start working on my PiWars 2019 robot!
2020
Merry Christmas, and a happy new year to all my readers and viewers!
21-
22-
(paid links)
23-
24-
<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=GB&source=ss&ref=as_ss_li_til&ad_type=product_link&tracking_id=orionrobots-21&language=en_GB&marketplace=amazon&region=GB&placement=B00ZBS86ZW&asins=B00ZBS86ZW&linkId=9ab6fa679217681fcc38f6eefd55862b&show_border=true&link_opens_in_new_window=true"></iframe>

Diff for: content/2019/02/2019-02-09-neat-leds-for-robot.md

-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,3 @@ These particular types are the Sparkfun LuMini. With 3 sizes of ring and a matri
3434
* In my book [Learn Robotics Programming](https://www.packtpub.com/hardware-and-creative/learn-robotics-programming), a chapter covers using addressable LED's like this to provide debug for the code running on the robot.
3535

3636
Enjoy!
37-
38-
(paid links)
39-
40-
<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=GB&source=ss&ref=as_ss_li_til&ad_type=product_link&tracking_id=orionrobots-21&language=en_GB&marketplace=amazon&region=GB&placement=B00KLBTT1E&asins=B00KLBTT1E&linkId=a3c6e229219c0496ef3238dcaad4c0a3&show_border=true&link_opens_in_new_window=true"></iframe>

Diff for: content/2019/02/2019-02-13-piwars-cad-files.md

-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,3 @@ This lead me to getting my Calipers out, and modelling it. All of it. Now I foun
2323
[Fusion 360 Model of T200 Main Chassis](https://a360.co/2IbgbKn)
2424

2525
I've been busy modelling out more parts, and I am not going to try covering it all in one post. So expect more models from the library as I make them available. I will happily accept contributions to improve them.
26-
27-
(paid links)
28-
29-
<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=GB&source=ss&ref=as_ss_li_til&ad_type=product_link&tracking_id=orionrobots-21&language=en_GB&marketplace=amazon&region=GB&placement=B08CRPBR83&asins=B08CRPBR83&linkId=079cb1de3e797f7457f86f9a17e406be&show_border=true&link_opens_in_new_window=true"></iframe>

Diff for: content/2019/02/2019-02-15-3d-printed-holder-for-the-piwars-usb-battery.md

-5
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@ I resolved to get these problems fixed. Sure, there were code bugs, but I could
2727

2828
(paid links)
2929

30-
<div class="media">
31-
<div class="media-left"><a href="https://www.amazon.co.uk/Learn-Robotics-Programming-autonomous-Raspberry/dp/1789340748/ref=as_li_ss_il?ref_=nav_ya_signin&_encoding=UTF8&&linkCode=li1&tag=orionrobots-21&linkId=20d971f8cbb0b0f1890b9a399efab4a2&language=en_GB" target="_blank"><img border="0" src="//ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=1789340748&Format=_SL110_&ID=AsinImage&MarketPlace=GB&ServiceVersion=20070822&WS=1&tag=orionrobots-21&language=en_GB" ><img src="https://ir-uk.amazon-adsystem.com/e/ir?t=orionrobots-21&language=en_GB&l=li1&o=2&a=1789340748" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></a></div>
32-
<div class="media-body">
3330
Last year, after Piwars I wrote the book [Learn Robotics Programming](https://amzn.to/2IqrMFA), and in this I recommended a strategy using two sets of batteries. This meant that power for the Raspberry Pi, logic and sensors came from one battery pack, and power for the motors and LED's from another.
34-
</div>
35-
</div>
3631

3732
For this I used a USB power supply (portable phone charger) for the Pi, it's already a nice regulated 5v, it's rechargeable from a USB mains adaptor with built-in safety circuits. These are quite easy to use with the Raspberry Pi and make a lot of sense. Very convenient.
3833

Diff for: src/thumbnails.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async function thumbnail_for_post(post) {
4040
return "";
4141
}
4242
const imageSrc = stripLeadingSlash(thumbnailUrl);
43-
if ( imageSrc.includes("amazon-adsystem") || !fs.existsSync(imageSrc)) {
43+
if ( !fs.existsSync(imageSrc)) {
4444
return "";
4545
} else {
4646
// console.log("Generating thumbnail for " + imageSrc);
@@ -58,7 +58,7 @@ async function thumbnail_for_post(post) {
5858

5959
async function thumbnail_from_path(thumbnail_path) {
6060
const imageSrc = stripLeadingSlash(thumbnail_path);
61-
if ( imageSrc.includes("amazon-adsystem") || !fs.existsSync(imageSrc)) {
61+
if ( !fs.existsSync(imageSrc)) {
6262
return "";
6363
} else {
6464
// console.log("Generating thumbnail URL for " + imageSrc);

0 commit comments

Comments
 (0)