GOG additional buttons and downloads

Add GOG DB and GOG Games links to the GOG store

安装此脚本?
作者推荐脚本

您可能也喜欢FreeGOGPcGames Timer Bypass

安装此脚本
  1. // ==UserScript==
  2. // @name GOG additional buttons and downloads
  3. // @homepageURL https://gog-games.com/
  4. // @description Add GOG DB and GOG Games links to the GOG store
  5. // @version 4.1.1
  6. // @author Wizzergod
  7. // @license MIT
  8. // @namespace GOG additional buttons and downloads
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=www.gog.com
  10. // @run-at document-end
  11. // @match https://www.gog.com/*/game/*
  12. // @match https://www.gog.com/game/*
  13. // @match https://web.archive.org/web/*
  14. // @grant unsafeWindow
  15. // ==/UserScript==
  16.  
  17.  
  18. (function() {
  19. var productcardData = unsafeWindow.productcardData;
  20. var product_id = productcardData.cardProductId;
  21. var product_slug = productcardData.cardProductSlug;
  22. var product_title = productcardData.cardProduct.title;
  23.  
  24. var separator_element = document.createTextNode(" ");
  25.  
  26. function addLink(text, href, className, targetElement) {
  27. var link_element = document.createElement("a");
  28. link_element.textContent = text;
  29. link_element.setAttribute("href", href);
  30. link_element.className = className;
  31. link_element.setAttribute("target", "_blank");
  32. link_element.style = "margin: 5px 0 5px 0 !important; padding: 5px 10px 5px 10px;";
  33.  
  34. targetElement.parentNode.insertBefore(separator_element.cloneNode(true), targetElement.nextSibling);
  35. targetElement.parentNode.insertBefore(link_element, targetElement.nextSibling);
  36. }
  37.  
  38. var mainButtonDeciderElement = document.querySelector("div[main-button-decider].ng-scope");
  39. if (mainButtonDeciderElement) {
  40.  
  41. //Forums
  42. addLink("View on SteamDB", "https://steamdb.info/search/?a=app&q=" + product_title, "button button--big go-to-library-button", mainButtonDeciderElement);
  43. addLink("View on forum - f95zone", "https://f95zone.to/search/search?keywords=" + product_title, "button button--big install-button ng-scope", mainButtonDeciderElement);
  44. addLink("View on forum - cs.rin.ru", "https://cs.rin.ru/forum//search.php?st=0&sk=t&sd=d&sr=topics&terms=any&sf=titleonly&keywords=" + product_title, "button button--big install-button ng-scope", mainButtonDeciderElement);
  45.  
  46. //Another
  47. addLink("Download Free from - 1337x.to", "https://1337x.to/search//1/?search=" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  48. addLink("Download Free from - nnmclub.to", "https://nnmclub.to/forum/tracker.php?nm=" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  49. addLink("Download Free from - igrovaya.org", "https://igrovaya.org/?do=search&story=" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  50. addLink("Download Free from - rutracker.org", "https://rutracker.org/forum/tracker.php?nm=" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  51. addLink("Download Free from - catorrent.org", "https://catorrent.org/index.php?do=search&story=" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  52. addLink("Download Free from - thelastgame.ru", "https://thelastgame.ru/?s=" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  53. addLink("Download Free from - thelastgame.org", "https://thelastgame.org/?do=search&subaction=search&story=" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  54. addLink("Download Free from - thepiratebay.org", "https://thepiratebay.org/search.php?cat=401&q=" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  55. addLink("Download Free from - limetorrents.lol", "https://www.limetorrents.lol/search/games/" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  56. addLink("Download Free from - thelastgame.club", "https://s1.thelastgame.club/?do=search&subaction=search&story=" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  57. addLink("Download Free from - torrentdownload.info", "https://www.torrentdownload.info/search?q=" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  58. addLink("Download Free from - torrentdownloads.pro", "https://www.torrentdownloads.pro/search/?search=" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  59. //Gog
  60. addLink("Download Free from - FreeGogPcGames", "https://freegogpcgames.com/?s=" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  61. addLink("Download Free from - GoGUnlocked", "https://gogunlocked.com/?s=" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  62. addLink("Download Free from - Gog-Games", "https://gog-games.to/search/" + product_title, "button button--big cart-button ng-scope", mainButtonDeciderElement);
  63. addLink("View on GOGDB", "https://www.gogdb.org/product/" + product_id, "button button--big go-to-library-button", mainButtonDeciderElement);
  64. }
  65.  
  66.  
  67. element.style = "margin: 5px 0 5px 0 !important; padding: 5px 10px 5px 10px;";
  68.  
  69. })();