Created
January 16, 2020 20:12
-
-
Save parzibyte/637919db3379279a67285d52a5832da3 to your computer and use it in GitHub Desktop.
This file contains 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
const obtenerLink = () => { | |
const valor = decodeURIComponent($quicklink.value); | |
if (!valor) return ""; | |
const busqueda = "?s="; | |
const indice = valor.indexOf(busqueda); | |
if (indice === -1) return ""; | |
return valor.substring(indice+busqueda.length, valor.length); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment