/*
All Credit for this userscript goes to NotNeo. I simply fixed a small bug that stopped this script from working on Steam in 2019. And now I'm adding buttos for other sites
*/
// ==UserScript==
// @name Pirate Games Links for Steam Store(Updated)
// @namespace Kozinc
// @author Kozinc
// @version 0.1.2
// @description Simply adds an IGG-Games link to all games on the steam store (Fixed for Steam's update to 100% SSL/HTTPS. Would not work otherwise.)
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @match https://store.steampowered.com/app/*
// @grant none
// @license MIT
// @downloadURL none
// ==/UserScript==
var appName = document.getElementsByClassName("apphub_AppName")[0].textContent;
var iggSearchBaseUrl = "http://igg-games.com/?s=";
var gloadSearchBaseUrl = "https://gload.to/?s=";
var ovaSearchBaseUrl = "https://www.ovagames.com/?s=";
var steamRipSearchBaseUrl = "https://steamrip.com/?s=";
$(".game_purchase_action_bg:first").append(' IGG ');
$(".game_purchase_action_bg:first").append(' GLOAD ');
$(".game_purchase_action_bg:first").append(' OVAGames ');
$(".game_purchase_action_bg:first").append(' SteamRip ');