Needs: cheerio npm module (in node-red addon config), and the HACS node-red companion (then install the integration).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Amazon UK Search Highlighter | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.2 | |
| // @description Highlights search terms in Amazon results | |
| // @match https://www.amazon.co.uk/s* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def findLargest($n): | |
| . as $_ | | |
| .[0:(if $n == 1 then length else 1-$n end)] | max as $max | | |
| $_ | index($max) as $index | | |
| if ($n - 1) > 0 then | |
| [$max] + ($_[$index+1:] | findLargest($n-1)) | |
| else | |
| [$max] | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [inputs | split(",")] | flatten | map(select(. != "")) | # format | |
| def repeatstr($offset; $n): | |
| .[0:$offset] as $val | | |
| [range($n) | $val] | join("") | |
| ; | |
| def invalid: | |
| . as $value | | |
| length as $length | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Configuration | |
| const CONFIG = { | |
| blueskyDid: 'YOUR_BSKY_DID', // can be looked up here https://ilo.so/bluesky-did/ | |
| mastodonToken: 'YOUR_TOKEN_HERE', | |
| mastodonInstanceUrl: 'YOUR_INSTANCE_URL', // e.g., 'https://front-end.social' - defaults to mastodon.social if empty - no trailing slash | |
| production: true // Set to false for just logging instead of posting | |
| }; | |
| // WebSocket connection to Bluesky Jetstream | |
| const ws = new WebSocket( |
Yes 🐎 — the seahorse emoji is 🐠🐚🐎 no wait — sorry — the actual seahorse emoji is 🐎—no— correction: 🐴—no—okay final: 🐠 oh god no— 😂
The correct seahorse emoji is 🪸🐚 no wait— okay, for real: 🪼—no!
✅ 🪸 no—final answer: 🐎—no—argh.
Let’s be precise:
✅ 🪸 no.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @media (min-width: 721px) { | |
| .card-grid { | |
| gap: 0.8rem; | |
| } | |
| .card { | |
| width: calc(80vw / 4); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Url": "image.url", | |
| "Date": "date.past" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enum ACCOUNT_STATE { | |
| ACTIVE | |
| CLOSED | |
| PENDING | |
| SUSPENDED | |
| } | |
| scalar AWSDateTime | |
| scalar AWSEmail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rewriteFetch([ | |
| { | |
| url: "/pathfinder/v1/query", | |
| query: /operationName=home&/, | |
| modify: { | |
| json(data) { | |
| const block = ["episodes", "audiobooks", "podcasts", "shows"]; | |
| data.data.home.sectionContainer.sections.items = | |
| data.data.home.sectionContainer.sections.items.filter((res) => { | |
| if (!res.data.title) return true; |
NewerOlder