Skip to content

Commit

Permalink
feat: v1.0.1, back to life of Hackstore
Browse files Browse the repository at this point in the history
  • Loading branch information
leober-ramos33 committed May 18, 2022
1 parent f0ccad3 commit bf3e7c6
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 18 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
**Esta extensión ya no funciona por qué el sitio de Hackstore.net esta fuera del aire debido a una denuncia de Copyright**.

<p align="center">
<img
alt="Hackstoshort"
src="https://raw.githubusercontent.com/yonaikerlol/hackstoshort/master/docs/logo.png"
/>
</p>

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?

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)

Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
9 changes: 1 addition & 8 deletions src/js/utils/decrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
}
2 changes: 1 addition & 1 deletion src/js/utils/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Expand Down
2 changes: 1 addition & 1 deletion src/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<p></p>
</main>

<footer>&copy; 2021</footer>
<footer>&copy; 2022</footer>

<script src="js/popup.js"></script>
</body>
Expand Down

0 comments on commit bf3e7c6

Please sign in to comment.