From 97a3e0e9a8f3aa8ab85da314d652383757ef79c7 Mon Sep 17 00:00:00 2001 From: Brett Donald Date: Mon, 12 Jun 2023 14:45:09 +1000 Subject: [PATCH] Better country support Relaxed the regular expresssion to allow it to find more Pinterest domains (from countries including Australia) --- pinback.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinback.js b/pinback.js index 6d90549..dd7caae 100644 --- a/pinback.js +++ b/pinback.js @@ -8,7 +8,7 @@ , username; // make sure user is on a profile page - if (match = location.href.match(/^https:\/\/www.pinterest.[a-z.]{2,5}\/([a-z0-9_]{1,30})/i)) { + if (match = location.href.match(/^https:\/\/www\.pinterest\..*?\/([a-z0-9_]{1,30})/i)) { username = match[1]; getResource('Boards', {username: username, field_set_key: 'detailed'}, start); } else {