diff --git a/src/assets/images/pinterest-icon.svg b/src/assets/images/pinterest-icon.svg new file mode 100644 index 0000000..87dd204 --- /dev/null +++ b/src/assets/images/pinterest-icon.svg @@ -0,0 +1,42 @@ + + + + + + diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 4621e48..19a2142 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -574,6 +574,12 @@ function redirect(url, type, initiator, forceRedirection) { } } } + case "binternet": { + console.log("binternet", url.href) + if (url.hostname == "i.pinimg.com") return `${randomInstance}/image_proxy.php?url=${url.href}` + if (url.href.endsWith("pinterest.com/")) return randomInstance + return null + } default: { return `${randomInstance}${url.pathname}${url.search}` } @@ -712,7 +718,8 @@ const defaultInstances = { "tent": ['https://tent.sny.sh'], "wolfreeAlpha": ['https://gqq.gitlab.io', 'https://uqq.gitlab.io'], "libreSpeed": ['https://librespeed.org'], - 'jitsi': ['https://meet.jit.si', 'https://8x8.vc'] + 'jitsi': ['https://meet.jit.si', 'https://8x8.vc'], + 'binternet': ['https://binternet.ahwx.org'] } function initDefaults() { diff --git a/src/config.json b/src/config.json index 90b55f9..cd5dc5f 100644 --- a/src/config.json +++ b/src/config.json @@ -347,6 +347,30 @@ "embeddable": false, "url": "https://fandom.com" }, + "pinterest": { + "name": "Pinterest", + "frontends": { + "binternet": { + "name": "Binternet", + "instanceList": true, + "url": "https://github.com/Ahwxorg/Binternet", + "embeddable": true + } + }, + "targets": [ + "^https?:\\/{2}i\\.pinimg\\.com", + "^https?:\\/{2}(www\\.)?pinterest\\.com" + ], + "options": { + "enabled": false, + "unsupportedUrls": "bypass", + "redirectType": "main_frame", + "frontend": "binternet" + }, + "imageType": "svg", + "embeddable": true, + "url": "https://pinterest.com" + }, "lbry": { "frontends": { "lbryDesktop": { diff --git a/src/pages/stylesheets/styles.css b/src/pages/stylesheets/styles.css index 02ef9b4..875763d 100644 --- a/src/pages/stylesheets/styles.css +++ b/src/pages/stylesheets/styles.css @@ -128,7 +128,7 @@ section.links { flex-wrap: wrap; flex-direction: column; width: 300px; - max-height: 750px; + max-height: 800px; } section.links div {