From 169e29ca2227eb730c3f348f4d1248c31c6b5c2f Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 25 Dec 2022 04:51:01 +0100 Subject: [PATCH] Add author, icon and license --- sn_translator/sn-translator.js | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/sn_translator/sn-translator.js b/sn_translator/sn-translator.js index d5548bb..9abfc85 100644 --- a/sn_translator/sn-translator.js +++ b/sn_translator/sn-translator.js @@ -3,13 +3,37 @@ // @namespace http://tampermonkey.net/ // @version 0.1 // @description Translate posts on SN -// @author You +// @author ekzyis // @match https://stacker.news/* -// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net +// @icon https://img.freepik.com/free-vector/lightning-bolt-coloured-outline_78370-517.jpg?w=826&t=st=1671940131~exp=1671940731~hmac=d04f3bd1468f1d362a864b4a25e367aef4d1941991161aa008684c5a4089cf0b // @grant GM_xmlhttpRequest // @grant GM_addStyle // ==/UserScript== +/** + MIT License + + Copyright (c) 2022 ekzyis + + 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. +*/ + const headers = { origin: 'https://libretranslate.com', accept: '*/*',