GOG additional buttons and downloads v2

Add GOG DB and GOG Games links to the GOG store

目前为 2023-07-15 提交的版本。查看 最新版本

// ==UserScript==
// @name         GOG additional buttons and downloads v2
// @description Add GOG DB and GOG Games links to the GOG store
// @version 1.0.2
// @author Wizzergod
// @license MIT
// @namespace GOG additional buttons and downloads
// @icon  data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAA8FBMVEX////w7vb8+/35+PyHf7MoEnvk4O7x7/VOOY3n4PG7l9ju5va4q9Lc1eqcdMNwOK2FfamdhcAoD30/KIxMGZBnWJ/o3PNFD38lCHBaIZaNcrd6bKjPyd/c0OxaRY/r6fRSJJM6DYV5Q6HJwNs7GH09F4WhZciFQLiTSsB4XJ+JZbM0HItGLYdsOKKAV7k3EHqXesSmmsVRMJKkkMUgAHJkLqxkSJuSiLWUib+BdLVVRJW5o9EgAHqATqZrLp2SbLNxUqC2ntdVHJ/Ov+OMZ7+NVbtgO5indcyugtB/NLWxcs6hV8fQt+TIot5rTKqAW68+qlmfAAADh0lEQVRYhe2WjXOaSBTAl0VZUYwHQv0KggEavxI1iJpIbBuN1/Z65v//b+7tLmD4aHs3dzM308lvnMF9+n4uT3b3IfTGG78YRAAIIQIReQDTocDAPCIKMSSXjpVNKWbtUIW0SAKlhUTTHV9NULIKxdXOPDgYkZ6XjD2vSxB2TnYnYbdN54v9ZflMWCLICZOh63mDPRJV3bbPikchJZAq5bI2aVIgQ+sRpIBAY4GmBwIFka5u650byg4EV3JO0JOxCJiVWOAuCA0ICzsWXJk0IMofCgUlXn3B0CLB1OEfOneRQB/zeWP/7wi0AsHLPxLMvi9QCwTt/1yw/LeCgXuXCGw9V4NjvgbT3mazWWDBKEcC76PqA+pHOxIEQfeT728l5AdBRlCrtN3yEggJMbQZE9Dnh6EzgTB/CoInoLFH1eDpOS3A98s2fWrbAyIYMyqQj9QAwPOr6/B74jbg3OyRGgTPtZQAyb0+40EEgdaFe1VGK8oJXo/jPXzF+nS4pRzMIgGyLjlIGM1asPgQli5NgMZMmW0I4juTIeBq40tOkEBGLSb4Abh6ff0+LcByPUY5Fgtw7V2M+ftwmJmBZfAS9FerY8stFJDq8/P7iOFwmJmBVFnOGC3A1tUCgfD5yzVlyPkqZgRll9Jigsd6wY2nBX98S39qrc/7peoX5SPxW/XMn2bRV/5nREuSKZJk0adGrMm1iKigVk1OQhSczrf83ogzVmGZSP7h4jDmqOyc2V5cHA4XZ+bpbR35rYSTiYjaecULFHXf4CupEXNrpSewarlR/uB0ieqnJBsW407BaN7ZNeJ8dnlMC2qVVutu3GXALZhXnc7NeE65AsNWRGO9s3uZz0+Qyi+nvEA935V5sm2VV8mBOcAMxnAoQG1UXb+tI7yx9bzA9c91NY+6HZ2ekh0L6CZxDx6rWDBz168EK89exAIvFlhM8FLjguxiygq8jGAwuaeCyYQJJpOjlBY8fFcA2yIX9LjAkJig8mMBDGPBYDKhAu1ngjYc7yIHU0G5JLD3+5AJjJ/OAM6F5pQxqiMHtocZGzY16DNygnVOIBrtmGX/Esn9tusmLU6TCuC8YwKNz6CcEUCTtXwlwOspDGkytFhuD1KMMKSCXhhSQUkLpxkBVn6LoT2dRYdxj0c3qG2pRDs7BYbQsMFlnVmNsOuSuImk/waGURRgu6fIm0uSurzxxi/EX7IQngpylpe8AAAAAElFTkSuQmCC
// @icon:2 https://www.google.com/s2/favicons?sz=64&domain=www.gog.com
// @run-at document-end
// @match https://www.gog.com/*/game/*
// @match https://www.gog.com/game/*
// @match https://web.archive.org/web/*
// @grant unsafeWindow
// ==/UserScript==


(function() {
  var productcardData = unsafeWindow.productcardData;
  var product_id = productcardData.cardProductId;
  var product_slug = productcardData.cardProductSlug;
  var product_title = productcardData.cardProduct.title;

    'use strict';

    // Создаем новый блок Free Games Downloads
    var newBlock = document.createElement('div');
    newBlock.innerHTML = `


        <div class="title title--no-margin">
            <div class="title__underline-text">
                Free Games Downloads
            </div>
            <div class="title__additional-options"></div>
        </div>


  <div class="why-gog__item" style="background-color: #33333312; margin: 0; box-sizing: border-box;">
  <i>These links lead to the search feature on specified websites, and remember piracy is bad if you downloaded, played and liked the game, then buy it, so you will thank the developers!</i>
  </div>


  <div class="table__row details__rating details__row details__row--first" style="background-color: #1ee83a12;">
  <div class="details__category table__row-label">Torrent: Gog</div><div class="details__content table__row-content">
  <a href="https://gog-games.to/search/${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>Gog-games.to<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #1ee83a12;">
  <div class="details__category table__row-label">Torrent: Gog</div><div class="details__content table__row-content">
  <a href="https://gogunlocked.com/?s=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>GoGUnlocked.com<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #1ee83a12;">
  <div class="details__category table__row-label">Torrent: Gog</div><div class="details__content table__row-content">
  <a href="https://freegogpcgames.com/?s=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>FreeGogPcGames.com<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>


  <div class="table__row details__rating details__row details__row--first" style="background-color: #1e7ee812;">
  <div class="details__category table__row-label">Torrent</div><div class="details__content table__row-content">
  <a href="https://www.torrentdownloads.pro/search/?search=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>torrentdownloads.pro<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #1e7ee812;">
  <div class="details__category table__row-label">Torrent</div><div class="details__content table__row-content">
  <a href="https://www.torrentdownload.info/search?q=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>torrentdownload.info<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #1e7ee812;">
  <div class="details__category table__row-label">Torrent</div><div class="details__content table__row-content">
  <a href="https://s1.thelastgame.club/?do=search&subaction=search&story=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>thelastgame.club<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #1e7ee812;">
  <div class="details__category table__row-label">Torrent</div><div class="details__content table__row-content">
  <a href="https://www.limetorrents.lol/search/games/${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>limetorrents.lol<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #1e7ee812;">
  <div class="details__category table__row-label">Torrent</div><div class="details__content table__row-content">
  <a href="https://thepiratebay.org/search.php?cat=401&q=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>thepiratebay.org<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #1e7ee812;">
  <div class="details__category table__row-label">Torrent</div><div class="details__content table__row-content">
  <a href="https://thelastgame.org/?do=search&subaction=search&story=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>thelastgame.org<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #1e7ee812;">
  <div class="details__category table__row-label">Torrent</div><div class="details__content table__row-content">
  <a href="https://thelastgame.ru/?s=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>thelastgame.ru<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #1e7ee812;">
  <div class="details__category table__row-label">Torrent</div><div class="details__content table__row-content">
  <a href="https://catorrent.org/index.php?do=search&story=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>catorrent.org<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #1e7ee812;">
  <div class="details__category table__row-label">Torrent</div><div class="details__content table__row-content">
  <a href="https://rutracker.org/forum/tracker.php?nm=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>rutracker.org<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #1e7ee812;">
  <div class="details__category table__row-label">Torrent</div><div class="details__content table__row-content">
  <a href="https://igrovaya.org/?do=search&story=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>igrovaya.org<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #1e7ee812;">
  <div class="details__category table__row-label">Torrent</div><div class="details__content table__row-content">
  <a href="https://nnmclub.to/forum/tracker.php?nm=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>nnmclub.to<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #1e7ee812;">
  <div class="details__category table__row-label">Torrent</div><div class="details__content table__row-content">
  <a href="https://byrut.org/?do=search&subaction=search&story=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>byrut<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #1e7ee812;">
  <div class="details__category table__row-label">Torrent</div><div class="details__content table__row-content">
  <a href="https://1337x.to/search//1/?search=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>1337x.to<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>


  <div class="table__row details__rating details__row details__row--first" style="background-color: #d3e81e12;">
  <div class="details__category table__row-label">View on forum</div><div class="details__content table__row-content">
  <a href="https://cs.rin.ru/forum//search.php?st=0&sk=t&sd=d&sr=topics&terms=any&sf=titleonly&keywords=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>cs.rin<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #d3e81e12;">
  <div class="details__category table__row-label">View on forum</div><div class="details__content table__row-content">
  <a href="https://f95zone.to/search/search?keywords=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>f95zone<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>


  <div class="table__row details__rating details__row details__row--first" style="background-color: #e8591e12;">
  <div class="details__category table__row-label">View on</div><div class="details__content table__row-content">
  <a href="https://www.gogdb.org/products?search=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>GOGDB<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

  <div class="table__row details__rating details__row details__row--first" style="background-color: #e8591e12;">
  <div class="details__category table__row-label">View on</div><div class="details__content table__row-content">
  <a href="https://steamdb.info/search/?a=app&q=${encodeURIComponent(product_title)}" class="details__feature ng-scope">
  <svg class="details__feature-icon details__feature-icon--download" style="width: 16px;"><use xlink:href="#download">
  </use></svg>SteamDB<svg class="details__feature-chevron-icon"><use xlink:href="#chevron-right"></use></svg></a></div></div>

    `;

    // Находим блок "productDetails"
    var productDetailsBlock = document.querySelector('.content-summary-section[content-summary-section-id="productDetails"]');
    if (productDetailsBlock) {
        // Вставляем новый блок внутрь "productDetails" в качестве первого элемента
        productDetailsBlock.insertBefore(newBlock, productDetailsBlock.firstChild);
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址