From 989c6e28a8c33a4216e754fc5e6a9144c530dd15 Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Wed, 27 Nov 2019 02:04:26 +0700 Subject: Add instagram recipe with minor css fixes --- all.json | 11 +++++++++++ instagram.tar.gz | Bin 0 -> 144252 bytes uncompressed/instagram/README.md | 3 +++ uncompressed/instagram/icon.png | Bin 0 -> 143607 bytes uncompressed/instagram/icon.svg | 1 + uncompressed/instagram/index.js | 7 +++++++ uncompressed/instagram/package.json | 15 +++++++++++++++ uncompressed/instagram/service.css | 7 +++++++ uncompressed/instagram/webview.js | 7 +++++++ 9 files changed, 51 insertions(+) create mode 100644 instagram.tar.gz create mode 100644 uncompressed/instagram/README.md create mode 100644 uncompressed/instagram/icon.png create mode 100644 uncompressed/instagram/icon.svg create mode 100644 uncompressed/instagram/index.js create mode 100644 uncompressed/instagram/package.json create mode 100644 uncompressed/instagram/service.css create mode 100644 uncompressed/instagram/webview.js diff --git a/all.json b/all.json index 00f02da..1d7ab11 100644 --- a/all.json +++ b/all.json @@ -823,5 +823,16 @@ "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/hackmd/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/hackmd/icon.svg" } + }, + { + "author": "Amine Mouafik ", + "featured": false, + "id": "instagram", + "name": "Instagram", + "version": "1.0.0", + "icons": { + "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/instagram/icon.png", + "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/instagram/icon.svg" + } } ] diff --git a/instagram.tar.gz b/instagram.tar.gz new file mode 100644 index 0000000..0778229 Binary files /dev/null and b/instagram.tar.gz differ diff --git a/uncompressed/instagram/README.md b/uncompressed/instagram/README.md new file mode 100644 index 0000000..b8d10f8 --- /dev/null +++ b/uncompressed/instagram/README.md @@ -0,0 +1,3 @@ +# Franz Instagram recipe + +A Franz recipe for Instagram service. diff --git a/uncompressed/instagram/icon.png b/uncompressed/instagram/icon.png new file mode 100644 index 0000000..ef63e48 Binary files /dev/null and b/uncompressed/instagram/icon.png differ diff --git a/uncompressed/instagram/icon.svg b/uncompressed/instagram/icon.svg new file mode 100644 index 0000000..3b2777d --- /dev/null +++ b/uncompressed/instagram/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/uncompressed/instagram/index.js b/uncompressed/instagram/index.js new file mode 100644 index 0000000..b64a3e4 --- /dev/null +++ b/uncompressed/instagram/index.js @@ -0,0 +1,7 @@ +'use strict' + +module.exports = Franz => class Instagram extends Franz { + overrideUserAgent() { + return 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B137 Safari/601.1' + } +} \ No newline at end of file diff --git a/uncompressed/instagram/package.json b/uncompressed/instagram/package.json new file mode 100644 index 0000000..639afdb --- /dev/null +++ b/uncompressed/instagram/package.json @@ -0,0 +1,15 @@ +{ + "id": "instagram", + "name": "Instagram", + "version": "1.0.0", + "description": "Instagram", + "main": "index.js", + "author": "Amine Mouafik ", + "license": "MIT", + "repository": "https://github.com/getferdi/recipes", + "config": { + "hasNotificationSound": false, + "hasIndirectMessages": true, + "serviceURL": "https://www.instagram.com/direct/inbox/" + } +} diff --git a/uncompressed/instagram/service.css b/uncompressed/instagram/service.css new file mode 100644 index 0000000..e9167fc --- /dev/null +++ b/uncompressed/instagram/service.css @@ -0,0 +1,7 @@ +._8_yLp { + max-width: inherit !important; +} + +.e9_tN { + max-width: 80% !important; +} diff --git a/uncompressed/instagram/webview.js b/uncompressed/instagram/webview.js new file mode 100644 index 0000000..aede5a5 --- /dev/null +++ b/uncompressed/instagram/webview.js @@ -0,0 +1,7 @@ +const path = require("path"); + +module.exports = Franz => { + // Apply fixes suggested in + // https://github.com/getferdi/recipes/issues/1 + Franz.injectCSS(path.join(__dirname, "service.css")); +}; -- cgit v1.2.3-70-g09d2 From 77700828f78eaae6eab3a401351438337b8dddc3 Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Thu, 28 Nov 2019 12:12:12 +0700 Subject: Remove suggested CSS changes for now --- uncompressed/instagram/service.css | 6 ------ 1 file changed, 6 deletions(-) diff --git a/uncompressed/instagram/service.css b/uncompressed/instagram/service.css index e9167fc..8b13789 100644 --- a/uncompressed/instagram/service.css +++ b/uncompressed/instagram/service.css @@ -1,7 +1 @@ -._8_yLp { - max-width: inherit !important; -} -.e9_tN { - max-width: 80% !important; -} -- cgit v1.2.3-70-g09d2 From bca3c619a1b6288b535568c7a2d439d332eb8143 Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Thu, 28 Nov 2019 17:14:05 +0700 Subject: Update packaged version of instagram recipe --- instagram.tar.gz | Bin 144252 -> 144191 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/instagram.tar.gz b/instagram.tar.gz index 0778229..d86fd80 100644 Binary files a/instagram.tar.gz and b/instagram.tar.gz differ -- cgit v1.2.3-70-g09d2