Pirate Games Links for Steam Store(Updated)

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.)

当前为 2022-01-18 提交的版本,查看 最新版本

/*
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
// ==/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(' <a target="_blank" href="'+iggSearchBaseUrl+appName+'" style="margin-left: 10px; padding-right: 10px;">IGG</a> ');
$(".game_purchase_action_bg:first").append(' <a target="_blank" href="'+gloadSearchBaseUrl+appName+'" style="margin-left: 10px; padding-right: 10px;">GLOAD</a> ');
$(".game_purchase_action_bg:first").append(' <a target="_blank" href="'+ovaSearchBaseUrl+appName+'" style="margin-left: 10px; padding-right: 10px;">OVAGames</a> ');
$(".game_purchase_action_bg:first").append(' <a target="_blank" href="'+steamRipSearchBaseUrl+appName+'" style="margin-left: 10px; padding-right: 10px;">SteamRip</a> ');