Wszystko Nowy

user:thomas Gisty stworzone przez użytkownika

title:mygist Gisty z podanym tytułem

description:sync gists with given description

filename:myfile.txt Gisty zawierające pliki z podanym tytułem

extension:yml Gisty zawierające pliki z podanym rozszerzeniem

language:go Gisty zawierające pliki z podanym językiem

topic:homelab gists with given topic

all:systemctl search all fields

Zaloguj się

Wszystko Nowy Zaloguj się

xeaf

Dołączono 9 months ago

Ostatnio utworzono
Najdawniej utworzono
Ostatnio zaktualizowano
Najdawniej zaktualizowano
Wszystkie Gisty 1

xeaf / Bookmarklet.js

0 polubień
0 forków
1 plików
Ostatnio aktywne 1 month ago
Bookmarklet utility to copy the shortest version of a link without using external services
1 javascript:(function(){var t,o,a=window.location.hostname,i=a.split(".").pop();a.includes("amazon")?(t=window.location.href.match(/https:\/\/(?:www\.)?([a-zA-Z0-9-]+)\.amazon\.[a-zA-Z]{2,}\/.*\/dp\/([A-Z0-9]{10})/))&&(o=`https://${t[1]||"www"}.amazon.${i}/dp/${t[2]}`):a.includes("ebay")?(t=window.location.href.match(/https:\/\/(?:www\.)?ebay\.[a-zA-Z]{2,}\/itm\/(\d+)/))&&(o=`https://www.ebay.${i}/itm/${t[1]}`):a.includes("cdiscount")&&(t=window.location.href.match(/https:\/\/(?:www\.)?cdiscount\.[a-zA-Z]{2,}\/.*\/f-(\d+)-([a-zA-Z0-9]+)\.html/))&&(o=`https://www.cdiscount.com/f-${t[1]}-${t[2]}.html`),o?navigator.clipboard.writeText(o).then((()=>{alert(`The following link has been copied into your clipboard:\n${o}`)})).catch((()=>{alert("Please click the document and then click the bookmarklet!")})):alert("This service is not yet supported on this domain: "+a)})();
Nowsze Starsze

Obsługiwane przez Opengist ⋅ Load: 39ms⋅

Polski
العربية Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 简体中文 繁體中文