From ecd983a83f753195688461856c5fd6437d8f53e7 Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Thu, 18 Feb 2021 23:50:06 +0200 Subject: URL Actions, part 1 of N --- actions.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 actions.js (limited to 'actions.js') diff --git a/actions.js b/actions.js new file mode 100644 index 0000000..776e7ad --- /dev/null +++ b/actions.js @@ -0,0 +1,18 @@ + +// Patterns in the URL: +// $fileanme - filename +// $content_urlencoded - file contents, urlencoded +// $content_base64 - file contents, base64'd + +const actions = [ + { + "extension": ".txt", + "text": "Google search filename", + "url": "https://www.google.com/search?q=$filename" + }, + { + "extension": ".txt", + "text": "Google search contents", + "url": "https://www.google.com/search?q=$filename" + } +]; -- cgit v1.2.3