From bf3e7c68966d642c8108141e58fcba4a7d95742d Mon Sep 17 00:00:00 2001 From: Leober Ramos Date: Tue, 17 May 2022 23:09:20 -0400 Subject: [PATCH] feat: v1.0.1, back to life of Hackstore --- README.md | 6 ++---- package-lock.json | 1 + package.json | 4 ++-- src/js/utils/decrypt.js | 9 +-------- src/js/utils/tabs.js | 2 +- src/manifest.json | 4 ++-- src/popup.html | 2 +- 7 files changed, 10 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 8259193..5740e5c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -**Esta extensión ya no funciona por qué el sitio de Hackstore.net esta fuera del aire debido a una denuncia de Copyright**. -

Hackstoshort

-Esta es una extensión hecha para saltar los anuncios que se encuentran en los enlaces de descarga de [Hackstore.net](https://hackstore.net). +Esta es una extensión hecha para saltar los anuncios que se encuentran en los enlaces de descarga de [Hackstore](https://hackstore.ac). ## ¿Cómo usarlo? @@ -15,7 +13,7 @@ Solo debes de abrir un enlace de descarga en el que quieras saltar la publicidad ![Hackstore.net links](https://raw.githubusercontent.com/yonaikerlol/hackstoshort/master/docs/hackstore.net-links.png) -Esto te llevara a un sitio que tenga por dominio: `hackshort.me` y lucirá como este: +Esto te llevara a un sitio que tenga por dominio: `acortalink.me` o `hackshort.me` y lucirá como este: ![Hackshort.me](https://raw.githubusercontent.com/yonaikerlol/hackstoshort/master/docs/hackshort.me.png) diff --git a/package-lock.json b/package-lock.json index 919351b..728e41c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,6 +5,7 @@ "requires": true, "packages": { "": { + "name": "hackstoshort", "version": "1.0.0", "license": "MIT", "devDependencies": { diff --git a/package.json b/package.json index c2cd771..863ac84 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hackstoshort", - "version": "1.0.0", - "description": "Generar enlaces directos a las descargas de Hackstore.net", + "version": "1.0.1", + "description": "Generar enlaces directos a las descargas de Hackstore", "private": true, "repository": { "type": "git", diff --git a/src/js/utils/decrypt.js b/src/js/utils/decrypt.js index 8c88c9b..b348f1a 100644 --- a/src/js/utils/decrypt.js +++ b/src/js/utils/decrypt.js @@ -9,8 +9,7 @@ import GibberishAES from "../vendor/gibberish-aes/gibberish-aes-1.0.0.min"; */ export function decryptLink(link) { const KEY = "fee631d2cffda38a78b96ee6d2dfb43a"; // Key for AES decryption - const embedScriptRegexp = /link_out = "(\w+)";/; - const hackstoreOutRegexp = /https?:\/\/(f\.)?hackstore\.link\/\w+\/?/; + const embedScriptRegexp = /link_out = "(.*)";?/; // Verify if the passed argument is the embed script from the browser, otherwise choose the link passed const encodedLink = embedScriptRegexp.test(link) @@ -23,12 +22,6 @@ export function decryptLink(link) { // Decrypt the link using GibberishAES const decryptedLink = GibberishAES.dec(decodedLink, KEY); - // If Match the link with the pattern of hackstore out links - if (hackstoreOutRegexp.test(decryptedLink)) { - // Return it. - return decryptedLink.match(hackstoreOutRegexp)[0]; - } - // Otherwise return the decrypted link return decryptedLink; } diff --git a/src/js/utils/tabs.js b/src/js/utils/tabs.js index df8e78b..654ecdc 100644 --- a/src/js/utils/tabs.js +++ b/src/js/utils/tabs.js @@ -22,7 +22,7 @@ export async function getCurrentTab() { */ export async function currentTabIsValid() { const currentTab = await getCurrentTab(); - const regexp = /https?:\/\/hackshort.me/; + const regexp = /https?:\/\/(hackshort|acortalink).me|/; if (currentTab.url.match(regexp) !== null) { return true; diff --git a/src/manifest.json b/src/manifest.json index 3e090fe..1723b26 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,8 +2,8 @@ "manifest_version": 2, "name": "Hackstoshort", - "description": "Generar enlaces directos a las descargas de Hackstore.net", - "version": "1.0.0", + "description": "Generar enlaces directos a las descargas de Hackstore", + "version": "1.0.1", "author": "Leober Ramos", "homepage_url": "https://github.com/yonaikerlol/hackstoshort", diff --git a/src/popup.html b/src/popup.html index 4b75a9b..95c8cfa 100644 --- a/src/popup.html +++ b/src/popup.html @@ -40,7 +40,7 @@

- +