elmeri100

GOG NSFW filter

Jul 31st, 2024 (edited)
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. // ==UserScript==
  2. // @name GOG NSFW filter
  3. // @version 2024-07-31
  4. // @description Hides NSFW games on GOG
  5. // @match https://www.gog.com/*
  6. // @exclude https://www.gog.com/*NSFW*
  7. // @run-at document-start
  8. // ==/UserScript==
  9.  
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. let oldUrl = window.location.pathname;
  15. let newUrl;
  16. let joiner = oldUrl.includes("?") ? "&" : "?";
  17.  
  18. newUrl = oldUrl + joiner + "excludeTags=NSFW";
  19. window.location.replace (newUrl);
  20. })();
Advertisement
Add Comment
Please, Sign In to add comment