Pirated games on store pages

Adds links to pirated games on multiple stores

< Rückmeldungen auf Pirated games on store pages

Rezension: Gut - Skript funktioniert

§
Veröffentlicht: 01.04.2023
Bearbeitet: 01.04.2023

Love this script, but it likes inputting the annoying symbols in searches, do you mind adding this to all your cases:

appName = appName.replace(/®|™/g, '');

For reference, it should look like this once you've added it:

switch (storePageResult) {
    case "GOG":
        appName = document.getElementsByClassName("productcard-basics__title")[0].textContent;
        appName = appName.replace(/®|™/g, '');
        pirateLinks.forEach((e) => {
            $("button.cart-button")[0].parentElement.parentElement.append(rigGOG(e.url + appName + e.urlSpecial, e.title))
        })
        break;
    // cases for other stores...
}

Keep up the great work, boss

Edit: Kinda like this icon: https://vectorified.com/images/pirate-bay-icon-28.png | Makes the script feel less bloated too.

Antwort schreiben

Anmelden um eine Antwort zu senden.