Skip to content

Instantly share code, notes, and snippets.

@NZDev0
NZDev0 / gist:c24050f929617e88a5047f0f8baac848
Created August 19, 2023 21:29
Game HTML list scrapers for GoG, Steam, Epic
// Not sure if Steam will give you multiple pages as my collection isn't large enough to warrant multiple pages
/*
* Run on the following page https://steamcommunity.com/id/USERNAME/games/?tab=all
*/
var game_list = document.querySelectorAll('[class^="gameslistitems_GameNameContainer_"] > a');
var games = Array.from(game_list, game => game.innerHTML).sort();
console.log(games);
// You will have to run on all game pages, pending how large your collection is
/*
@NZDev0
NZDev0 / gog-clear-forum-notifications.user.js
Last active June 27, 2023 23:31
Adds a clear notifcations button to the forums drop down menu
// ==UserScript==
// @name GOG Menu Dot
// @namespace https://gist.github.com/NZDev0/
// @author Dev0 NZ
// @description Clear Notifications button on the community drop down menu
// @updateURL https://gist.github.com/NZDev0/3c0986163492fd50603d1415ad80d367/raw/
// @downloadURL https://gist.github.com/NZDev0/3c0986163492fd50603d1415ad80d367/raw/
// @match https://www.gog.com/*
// @run-at document-start
// @version 1.2
@NZDev0
NZDev0 / gog-hide-games-homepage.user.js
Created February 2, 2023 19:01
Hide games on homepage of GoG
// ==UserScript==
// @name Hide
// @match https://www.gog.com/en
// @run-at document-end
// @version 1.0
// ==/UserScript==
/*
* Titles must be in quotes, seperated by a comma
* ie "Cyberpunk 2077", "Sleeping Dogs: Definitive Edition"
@NZDev0
NZDev0 / gog-bookmarklets.js
Last active August 30, 2023 15:40
GoG - Bookmarklets
//Bookmarklets for GoG, to install you have to create a bookmark and use the URLs as needed
//Removes tracker query params from embedded page urls
javascript:(function(){var links=document.querySelectorAll('a');links.forEach(link=>{if(link.href.includes("?source=news")){link.href=link.href.split('?')[0];}});})();
//Clears the purple dot notification
javascript:(function(){angular.element(document.body).injector().get('menuNotificationsRepository').deleteAllNotifications();})();
//Sorts wishlist by price, lowest to highest, highest to lowest etc
javascript:(function(){var%20elems=document.querySelectorAll('.list-inner');elems=elems[elems.length-1];var%20prices=Array.prototype.slice.call(document.querySelectorAll('.product-row-wrapper'),0);prices.sort(function(a,b){if(elems.classList.contains('sorted')){return%20parseFloat(b.querySelector('._price.product-state__price').textContent)-parseFloat(a.querySelector('._price.product-state__price').textContent);}return%20parseFloat(a.querySelector('._price.product-s
@NZDev0
NZDev0 / gog-hide-demos.user.js
Created January 10, 2023 08:31
GoG.com - Hide known Demos & Prologue Button
/* ==UserScript==
// @name GoG.com - Hide known Demos & Prologue Button
// @namespace https://gist.github.com/NZDev0/
// @author Dev0 NZ
// @description Adds a button to hide known Demos & Prologue
// @match https://www.gog.com/en/games*
// @run-at document-end
// @version 1.0.0
==/UserScript== */
@NZDev0
NZDev0 / gog-darkmode-port.user.js
Last active January 10, 2023 08:27
GoG.com - Dark Theme port to userStyle
/* ==UserStyle==
@name GoG.com - Dark Theme port to userStyle
@namespace https://gist.github.com/NZDev0/
@author Dev0 NZ
@description Adds dark mode to GoG.com
@include https://www.gog.com/*
@exclude https://www.gog.com/forum* *
@version 1.0.1
==/UserStyle== */
@NZDev0
NZDev0 / gog-gamepage-darkmode.user.js
Last active January 2, 2023 01:08
Adds dark mode on game pages for GoG.com
// ==UserScript==
// @name GoG game page dark mode
// @namespace https://gist.github.com/NZDev0/
// @author Dev0 NZ
// @description Adds dark mode on game pages
// @updateURL https://gist.github.com/NZDev0/00555bda2dca3ce00413edd4155b56d4/raw/
// @downloadURL https://gist.github.com/NZDev0/00555bda2dca3ce00413edd4155b56d4/raw/
// @match https://www.gog.com/*/game/*
// @match https://www.gog.com/game/*
// @run-at document-end
@NZDev0
NZDev0 / gog-site-adjustment.user.js
Last active November 14, 2023 20:19
Adds slight tweaks to GoG.com for better UI
// ==UserScript==
// @name Add GOG Site Adjustments
// @namespace https://gist.github.com/NZDev0/
// @author Dev0 NZ
// @description Items currently added: Button for sorting wishlists by price
// @updateURL https://gist.github.com/NZDev0/b5ad52cb35435625dd814cd18de9c0f7/raw/
// @downloadURL https://gist.github.com/NZDev0/b5ad52cb35435625dd814cd18de9c0f7/raw/
// @match https://www.gog.com/*
// @run-at document-end
// @version 1.3