Advertisement
Alpha2749

SG Remove Fanatical Sale Info

Jan 19th, 2023 (edited)
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 1.03 KB | Source Code | 0 0
  1. // ==UserScript==
  2. // @name         SG Remove Fanatical Sale Info
  3. // @namespace    http://tampermonkey.net/
  4. // @version      1.1
  5. // @description  Remove the Fanatical Sale Promotion from the SteamGifts giveaways page.
  6. // @author       Alpha2749
  7. // @match        https://www.steamgifts.com/
  8. // @match        https://www.steamgifts.com/giveaways/search*
  9. // @icon         https://i.imgur.com/ZiFij4j.png
  10. // @require      https://code.jquery.com/jquery-3.6.0.min.js
  11. // ==/UserScript==
  12.  
  13. (function() {
  14.     'use strict';
  15.     // Credit to refat17 on SG for the (much better) JQuery Implementation
  16.     $("div.block_header_link:contains('View Sale')").each(function() {
  17.         $(this).parents("div.widget-container").first().remove();
  18.     });
  19.  
  20.     $("div.block_header_link:contains('View Bundle')").each(function() {
  21.         $(this).parents("div.widget-container").first().remove();
  22.     });
  23.  
  24.     $("div.block_header_link:contains('View Deals')").each(function() {
  25.         $(this).parents("div.widget-container").first().remove();
  26.     });
  27. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement