From b951f7b4c8251fc569426e3c398c687ef7c96bf7 Mon Sep 17 00:00:00 2001 From: samedamci Date: Mon, 11 May 2020 20:37:40 +0200 Subject: [PATCH] Add 'legitlink' script and remove unused 'rofi-keepassxc' --- .local/bin/scripts/legitlink | 16 ++++++++++++++++ .local/bin/scripts/rofi-keepassxc | 1 - 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 .local/bin/scripts/legitlink delete mode 120000 .local/bin/scripts/rofi-keepassxc diff --git a/.local/bin/scripts/legitlink b/.local/bin/scripts/legitlink new file mode 100755 index 0000000..8e1f83d --- /dev/null +++ b/.local/bin/scripts/legitlink @@ -0,0 +1,16 @@ +#!/usr/bin/env sh + +# Script to change links to sites into cursed links looks like this URL: +# 1337.verylegit.link/RkqaouwwADpPNkd653ip-stealer_.pdf.exe + +m() { rofi -dmenu -l 0 -width 50 "$@"; } + +url="$(m -p "Paste URL")" +[ ! "$url" ] && exit + +cursed_url="$(curl -s verylegit.link/sketchify -d long_url="$url")" + +[ "$cursed_url" ] && { + echo "$cursed_url" | xclip -sel clip + notify-send "Cursed URL copied to clipboard." +} || notify-send "Error! URL has not been copied to clipboard correctly!" diff --git a/.local/bin/scripts/rofi-keepassxc b/.local/bin/scripts/rofi-keepassxc deleted file mode 120000 index bbb0bd5..0000000 --- a/.local/bin/scripts/rofi-keepassxc +++ /dev/null @@ -1 +0,0 @@ -/home/samedamci/dev/rofi-keepassxc/rofi-keepassxc \ No newline at end of file