From 50f93e4a5cc7c80d47bf85cd40de436aa3eb9619 Mon Sep 17 00:00:00 2001 From: "Tania R. Zúñiga" Date: Wed, 15 Sep 2021 00:07:55 -0500 Subject: 🚀 Add Pipefy Recipe (#711) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- all.json | 9 +++ recipes/pipefy/LICENSE | 21 ++++++ recipes/pipefy/darkmode.css | 154 ++++++++++++++++++++++++++++++++++++++++++++ recipes/pipefy/icon.svg | 12 ++++ recipes/pipefy/index.js | 6 ++ recipes/pipefy/package.json | 12 ++++ recipes/pipefy/service.css | 1 + recipes/pipefy/webview.js | 18 ++++++ 8 files changed, 233 insertions(+) create mode 100644 recipes/pipefy/LICENSE create mode 100644 recipes/pipefy/darkmode.css create mode 100644 recipes/pipefy/icon.svg create mode 100644 recipes/pipefy/index.js create mode 100644 recipes/pipefy/package.json create mode 100644 recipes/pipefy/service.css create mode 100644 recipes/pipefy/webview.js diff --git a/all.json b/all.json index 578889a..6ab91f7 100644 --- a/all.json +++ b/all.json @@ -1166,6 +1166,15 @@ "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/pinterest/icon.svg" } }, + { + "featured": false, + "id": "pipefy", + "name": "Pipefy", + "version": "1.0.0", + "icons": { + "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/pipefy/icon.svg" + } + }, { "featured": false, "id": "pivotal-tracker", diff --git a/recipes/pipefy/LICENSE b/recipes/pipefy/LICENSE new file mode 100644 index 0000000..65aff37 --- /dev/null +++ b/recipes/pipefy/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Tania R. Zúñiga + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/recipes/pipefy/darkmode.css b/recipes/pipefy/darkmode.css new file mode 100644 index 0000000..1af908b --- /dev/null +++ b/recipes/pipefy/darkmode.css @@ -0,0 +1,154 @@ +html { +-webkit-filter:invert(90%) hue-rotate(180deg)!important; +filter:invert(85%) hue-rotate(180deg)!important; +background:#191919!important; +} + +.CflnFb { +background-color:#7b96c1!important; +filter:invert(100%) hue-rotate(180deg) brightness(1.1) saturate(140%) contrast(105%)!important; +color:#FFF!important; +} + +.h5t3Nc .GrK4Mb,.h5t3Nc .hVDHke,.h5t3Nc .l7VQxb,.h5t3Nc .zP0T0b,.h5t3Nc .qNixLe { +background-color:#c9c9c9; +border-color:#FFF; +} + +.lq96Td { +background-color:#003e3a!important; +color:#FFF!important; +filter:invert(100%) hue-rotate(180deg) brightness(1.1) saturate(140%) contrast(105%)!important; +} + +.GooADb { +color:#9dceff!important; +text-shadow:0 0 #404040!important; +} + +.bJZIjf.qs41qe { +opacity:0.3; +} + +#gb a.gb_ja,#gb a.gb_ja:visited,#gb a.gb_ja:active,#gb a.gb_ka,#gb a.gb_ka:visited { +color:rgba(255,255,255,0.87)!important; +text-decoration:none!important; +background-color:#000!important; +} + +.M6tHv { +background-color:#444!important; +} + +.gb_ea.gb_6f { +background-color:#e8e8e8!important; +} + +.gb_yc svg,.gb_kc svg { +color:#000!important; +opacity:.54!important; +} + +.HkPXyb { +background-color:#f9f9f9; +} + +.EfQccc.F262Ye.EiZ8Dd::after { +border-color:#000; +} + +.uHMk6b.fsHoPb { +border:7px solid #000!important; +} + +.g3VIld.GFhhge.Up8vH.hFEqNb.J9Nfi.iWO5td { +filter:invert(100%) hue-rotate(180deg) brightness(1.1) saturate(140%) contrast(105%)!important; +background:#191919!important; +color:#FFF!important; +} + +.g3dbUc .jKgTF,.QGRmIf,.lcPUt { +filter:invert(100%) hue-rotate(180deg) brightness(1.1) saturate(140%) contrast(105%)!important; +font-weight:700!important; +mix-blend-mode:darken; +} + +.g3dbUc.UflSff { +filter:invert(100%) hue-rotate(180deg) saturate(140%) contrast(105%) opacity(40%)!important; +color:#404040!important; +} + +.NlL62b.EfQccc.elYzab-cXXICe-Hjleke.EiZ8Dd.UflSff.jKgTF { +filter:invert(100%) hue-rotate(180deg) saturate(140%) contrast(50%) brightness(140%) opacity(90%)!important; +} + +.NlL62b.EfQccc.elYzab-cXXICe-Hjleke.EiZ8Dd.UflSff { +filter:opacity(80%)!important; +} + +.NlL62b.EfQccc.elYzab-cXXICe-Hjleke.EiZ8Dd.jKgTF { +filter:invert(100%) hue-rotate(180deg) brightness(1.1) saturate(140%) contrast(105%)!important; +font-weight:700!important; +} + +.W0m3G { +font-weight:500!important; +} + +.g3dbUc { +font-weight:900!important; +color:#000!important; +} + +.g3dbUc.smECzc { +color:#666!important; +} + +.FAxxKc { +font-weight:600!important; +color:#000!important; +} + +.rq8Mwb { +filter:invert(100%)!important; +} + +.WpDZC,.zHQkBf { +color:#c1c1c1!important; +} + +.XHsn7e,.YqtBEc,.xuBVOe,.Mh0NNb,.ck4bY,.asor.asor_i0,.gsoi.gsoi_w,.gsoi.gsoi_c.asor_v,.gsoi.gsoi_9.asor_v,.gsoi.gsoi_7.asor_v,#vqd3vxfo4jpl,#pnsketfj08m,.st-wc,.NlL62b.EfQccc.elYzab-cXXICe-Hjleke.EiZ8Dd,.a63c9c.ztKZ3d,.a63c9c,.Oxm52e,.kImhzd,.hsrazb,.Tnsqdc,.kw5sif,.kXIDId,.sIyjR,.ghXZpb,.whsOnd.zHQkBf { +filter:invert(100%) hue-rotate(180deg) brightness(1.1) saturate(140%) contrast(105%)!important; +} + +.gb_3,#rAECCd,.jPtXgd { +font-weight:600!important; +} + +#I0_1513527137275,.gb_W,:not([data-date]):before,img,svg,.jPtXgd,.gb_Wa.gb_Fe,.fFW7wc-OEVmcd { +filter:invert(100%) hue-rotate(180deg) brightness(1.1) contrast(105%)!important; +} + +.Wbs5sd,.rF3YF.wmyjXb,.A6wOnd,.VgueE,.Jmftzc.gVNoLb.EiZ8Dd,.Jmftzc.K9QN7e.EiZ8Dd.UflSff,.Jmftzc.K9QN7e.EiZ8Dd,.i5a7ie,.gb_Eb { +color:#000!important; +} + +.EfQccc.Hrn1mc.EiZ8Dd::after,.EfQccc.MmaWIb.KKjvXb.EiZ8Dd::after { +border:1px solid #000; +} + +.XBkKC.WSvIUd,.logo-plus-button-lockup-text { +color:#FFF; +} + +.IP9Hyd .O0WRkf:first-child,.gb_je.gb_ee { +color:#fff; +} + +.Jmftzc.gVNoLb.LKeQwe,.Jmftzc.EiZ8Dd { +color:#000; +} + +.gb_fa.gb_ng,.gb_Z { +font-weight:bolder!important; +} diff --git a/recipes/pipefy/icon.svg b/recipes/pipefy/icon.svg new file mode 100644 index 0000000..e9d7769 --- /dev/null +++ b/recipes/pipefy/icon.svg @@ -0,0 +1,12 @@ + + icon + + + + + + + \ No newline at end of file diff --git a/recipes/pipefy/index.js b/recipes/pipefy/index.js new file mode 100644 index 0000000..9e105e9 --- /dev/null +++ b/recipes/pipefy/index.js @@ -0,0 +1,6 @@ +module.exports = (Ferdi) => + class Pipefy extends Ferdi { + overrideUserAgent() { + return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; + } + }; diff --git a/recipes/pipefy/package.json b/recipes/pipefy/package.json new file mode 100644 index 0000000..42cb92b --- /dev/null +++ b/recipes/pipefy/package.json @@ -0,0 +1,12 @@ +{ + "id": "pipefy", + "name": "Pipefy", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://app.pipefy.com/", + "hasCustomUrl": true, + "hasHostedOption": true, + "hasIndirectMessages": true + } +} diff --git a/recipes/pipefy/service.css b/recipes/pipefy/service.css new file mode 100644 index 0000000..38dcab0 --- /dev/null +++ b/recipes/pipefy/service.css @@ -0,0 +1 @@ +/* Insert custom styles you want to insert here */ \ No newline at end of file diff --git a/recipes/pipefy/webview.js b/recipes/pipefy/webview.js new file mode 100644 index 0000000..a3564c0 --- /dev/null +++ b/recipes/pipefy/webview.js @@ -0,0 +1,18 @@ +var _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; +} + +module.exports = Ferdi => { + const getMessages = function getMessages() { + const getNotificationButton = document.querySelector( + '#notifications_button', + ); + let hasNotification = getNotificationButton.classList.contains('pp-active'); + Ferdi.setBadge(0, hasNotification ? 1 : 0); + }; + Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-54-g00ecf