Skip to content

Instantly share code, notes, and snippets.

@abjugard
Last active May 6, 2025 17:34
Show Gist options
  • Select an option

  • Save abjugard/62b7b4337d2e77f8a3abbfc3efcc65b9 to your computer and use it in GitHub Desktop.

Select an option

Save abjugard/62b7b4337d2e77f8a3abbfc3efcc65b9 to your computer and use it in GitHub Desktop.

Revisions

  1. abjugard revised this gist May 6, 2025. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.15
    // @version 1.16
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
    @@ -17,6 +17,7 @@ const unwantedRes = [
    /deal(s|):/i,
    /discount(s|)/i,
    /offer(s|)/i,
    /% off/i,
    /black friday/i,
    /back to school/i,
    /lowest price/i,
  2. abjugard revised this gist Apr 28, 2025. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.14
    // @version 1.15
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
    @@ -16,6 +16,7 @@ const unwantedRes = [
    /\$/i,
    /deal(s|):/i,
    /discount(s|)/i,
    /offer(s|)/i,
    /black friday/i,
    /back to school/i,
    /lowest price/i,
  3. abjugard revised this gist Nov 20, 2024. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.13
    // @version 1.14
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
    @@ -27,6 +27,7 @@ const unwantedRes = [
    /Apple Seeds.*Beta.*OS.*Developers/i,
    /Apple Vision/i,
    /Vision Pro/i,
    /visionOS/i,
    /MacRumors Giveaway:/i,
    /MacRumors Show:/i
    ];
  4. abjugard revised this gist Jul 27, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.12
    // @version 1.13
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
    @@ -27,7 +27,7 @@ const unwantedRes = [
    /Apple Seeds.*Beta.*OS.*Developers/i,
    /Apple Vision/i,
    /Vision Pro/i,
    /MacRumors Givaway:/i,
    /MacRumors Giveaway:/i,
    /MacRumors Show:/i
    ];

  5. abjugard revised this gist Jul 27, 2024. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.11
    // @version 1.12
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
    @@ -26,7 +26,9 @@ const unwantedRes = [
    /Beta:/i,
    /Apple Seeds.*Beta.*OS.*Developers/i,
    /Apple Vision/i,
    /Vision Pro/i
    /Vision Pro/i,
    /MacRumors Givaway:/i,
    /MacRumors Show:/i
    ];

    (function() {
  6. abjugard revised this gist Jan 22, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.10
    // @version 1.11
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
  7. abjugard revised this gist Jan 22, 2024. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,8 @@ const unwantedRes = [
    /Apple Releases (New |)(Beta |).*(Air(Pod|Tag)(s|)|Remote|Display|Beats|MagSafe Charger|Pencil).*Firmware/i,
    /Beta:/i,
    /Apple Seeds.*Beta.*OS.*Developers/i,
    /Apple Vision/i
    /Apple Vision/i,
    /Vision Pro/i
    ];

    (function() {
  8. abjugard revised this gist Jan 22, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.9
    // @version 1.10
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
  9. abjugard revised this gist Jan 22, 2024. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,8 @@ const unwantedRes = [
    /Apple Seeds.*(New |)(Beta|Release Candidate).*(Developers|Public Beta Testers)/i,
    /Apple Releases (New |)(Beta |).*(Air(Pod|Tag)(s|)|Remote|Display|Beats|MagSafe Charger|Pencil).*Firmware/i,
    /Beta:/i,
    /Apple Seeds.*Beta.*OS.*Developers/i
    /Apple Seeds.*Beta.*OS.*Developers/i,
    /Apple Vision/i
    ];

    (function() {
  10. abjugard revised this gist Dec 6, 2023. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.8
    // @version 1.9
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
    @@ -13,7 +13,7 @@
    // ==/UserScript==

    const unwantedRes = [
    /\$:/i,
    /\$/i,
    /deal(s|):/i,
    /discount(s|)/i,
    /black friday/i,
  11. abjugard revised this gist Dec 6, 2023. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.7
    // @version 1.8
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
    @@ -13,6 +13,7 @@
    // ==/UserScript==

    const unwantedRes = [
    /\$:/i,
    /deal(s|):/i,
    /discount(s|)/i,
    /black friday/i,
  12. abjugard revised this gist Nov 15, 2023. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.6
    // @version 1.7
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
    @@ -19,9 +19,9 @@ const unwantedRes = [
    /back to school/i,
    /lowest price/i,
    /(low|best) price(s|)/i,
    /Apple Releases (New |)(Beta |)Firmware.*(Air(Pod|Tag)(s|)|Remote|Display|[Bb]eats|MagSafe Charger)/i,
    /Apple Releases (New |)(Beta |)Firmware.*(Air(Pod|Tag)(s|)|Remote|Display|Beats|MagSafe Charger|Pencil)/i,
    /Apple Seeds.*(New |)(Beta|Release Candidate).*(Developers|Public Beta Testers)/i,
    /Apple Releases (New |)(Beta |).*(Air(Pod|Tag)(s|)|Remote|Display|[Bb]eats|MagSafe Charger).*Firmware/i,
    /Apple Releases (New |)(Beta |).*(Air(Pod|Tag)(s|)|Remote|Display|Beats|MagSafe Charger|Pencil).*Firmware/i,
    /Beta:/i,
    /Apple Seeds.*Beta.*OS.*Developers/i
    ];
  13. abjugard revised this gist Oct 17, 2023. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.5
    // @version 1.6
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
    @@ -20,6 +20,7 @@ const unwantedRes = [
    /lowest price/i,
    /(low|best) price(s|)/i,
    /Apple Releases (New |)(Beta |)Firmware.*(Air(Pod|Tag)(s|)|Remote|Display|[Bb]eats|MagSafe Charger)/i,
    /Apple Seeds.*(New |)(Beta|Release Candidate).*(Developers|Public Beta Testers)/i,
    /Apple Releases (New |)(Beta |).*(Air(Pod|Tag)(s|)|Remote|Display|[Bb]eats|MagSafe Charger).*Firmware/i,
    /Beta:/i,
    /Apple Seeds.*Beta.*OS.*Developers/i
  14. abjugard revised this gist Oct 4, 2023. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.4
    // @version 1.5
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
    @@ -21,6 +21,7 @@ const unwantedRes = [
    /(low|best) price(s|)/i,
    /Apple Releases (New |)(Beta |)Firmware.*(Air(Pod|Tag)(s|)|Remote|Display|[Bb]eats|MagSafe Charger)/i,
    /Apple Releases (New |)(Beta |).*(Air(Pod|Tag)(s|)|Remote|Display|[Bb]eats|MagSafe Charger).*Firmware/i,
    /Beta:/i,
    /Apple Seeds.*Beta.*OS.*Developers/i
    ];

  15. abjugard revised this gist Sep 27, 2023. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.3
    // @version 1.4
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
    @@ -14,6 +14,7 @@

    const unwantedRes = [
    /deal(s|):/i,
    /discount(s|)/i,
    /black friday/i,
    /back to school/i,
    /lowest price/i,
  16. abjugard revised this gist Sep 11, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@
    // ==/UserScript==

    const unwantedRes = [
    /deal(s|):)/i,
    /deal(s|):/i,
    /black friday/i,
    /back to school/i,
    /lowest price/i,
  17. abjugard revised this gist Sep 11, 2023. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.2
    // @version 1.3
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
    @@ -13,7 +13,10 @@
    // ==/UserScript==

    const unwantedRes = [
    /deal(s|):/i,
    /deal(s|):)/i,
    /black friday/i,
    /back to school/i,
    /lowest price/i,
    /(low|best) price(s|)/i,
    /Apple Releases (New |)(Beta |)Firmware.*(Air(Pod|Tag)(s|)|Remote|Display|[Bb]eats|MagSafe Charger)/i,
    /Apple Releases (New |)(Beta |).*(Air(Pod|Tag)(s|)|Remote|Display|[Bb]eats|MagSafe Charger).*Firmware/i,
  18. abjugard revised this gist Sep 11, 2023. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.1
    // @version 1.2
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/
    @@ -13,7 +13,7 @@
    // ==/UserScript==

    const unwantedRes = [
    /deal(s|)/i,
    /deal(s|):/i,
    /(low|best) price(s|)/i,
    /Apple Releases (New |)(Beta |)Firmware.*(Air(Pod|Tag)(s|)|Remote|Display|[Bb]eats|MagSafe Charger)/i,
    /Apple Releases (New |)(Beta |).*(Air(Pod|Tag)(s|)|Remote|Display|[Bb]eats|MagSafe Charger).*Firmware/i,
  19. abjugard revised this gist Jul 12, 2023. 1 changed file with 22 additions and 5 deletions.
    27 changes: 22 additions & 5 deletions macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,11 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1.0
    // @version 1.1
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/*
    // @match https://www.macrumors.com/
    // @match https://www.macrumors.com/*/
    // @icon https://www.google.com/s2/favicons?domain=macrumors.com
    // @grant none
    // @updateURL https://gist.github.com/abjugard/62b7b4337d2e77f8a3abbfc3efcc65b9/raw/macrumors-filter.user.js
    @@ -22,10 +23,26 @@ const unwantedRes = [
    (function() {
    'use strict';

    if (window.location.href.length > 32) {
    return;
    }
    document.querySelectorAll('article').forEach(article => {
    const title = article.querySelector('div[class^="titlebar--"]')?.innerText;
    if (unwantedRes.some(re => re.test(title))) {
    article.parentNode.removeChild(article);
    const title = article.querySelector('div[class^="titlebar--"]');
    if (title == null) {
    return;
    }
    if (unwantedRes.some(re => re.test(title.innerText))) {
    article.childNodes.forEach(node => {
    if (!node.className.includes('titlebar--')) {
    article.removeChild(node);
    }
    });
    const content = article.querySelector('div[class^="content--"]');
    article.removeChild(content);
    title.style.opacity = '40%';
    title.style.padding = '1px 15px 4px 15px';
    const link = title.querySelector('a');
    link.style.fontSize = '12px';
    }
    });
    })();
  20. abjugard revised this gist Jul 12, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 1
    // @version 1.0
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/*
  21. abjugard revised this gist Jul 12, 2023. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 0.9
    // @version 1
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/*
    @@ -12,7 +12,8 @@
    // ==/UserScript==

    const unwantedRes = [
    /deal(s|):/i,
    /deal(s|)/i,
    /(low|best) price(s|)/i,
    /Apple Releases (New |)(Beta |)Firmware.*(Air(Pod|Tag)(s|)|Remote|Display|[Bb]eats|MagSafe Charger)/i,
    /Apple Releases (New |)(Beta |).*(Air(Pod|Tag)(s|)|Remote|Display|[Bb]eats|MagSafe Charger).*Firmware/i,
    /Apple Seeds.*Beta.*OS.*Developers/i
  22. abjugard revised this gist Jun 22, 2023. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 0.8
    // @version 0.9
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/*
    @@ -13,8 +13,8 @@

    const unwantedRes = [
    /deal(s|):/i,
    /Apple Releases (New |)(Beta |)Firmware.*(AirPod|AirTag|Remote|Display|[Bb]eats|MagSafe Charger)(s|)/i,
    /Apple Releases (New |)(Beta |)(AirPod|AirTag|Remote|Display|[Bb]eats|MagSafe Charger)(s|).*Firmware/i,
    /Apple Releases (New |)(Beta |)Firmware.*(Air(Pod|Tag)(s|)|Remote|Display|[Bb]eats|MagSafe Charger)/i,
    /Apple Releases (New |)(Beta |).*(Air(Pod|Tag)(s|)|Remote|Display|[Bb]eats|MagSafe Charger).*Firmware/i,
    /Apple Seeds.*Beta.*OS.*Developers/i
    ];

  23. abjugard revised this gist May 3, 2023. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 0.7
    // @version 0.8
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/*
    @@ -13,8 +13,8 @@

    const unwantedRes = [
    /deal(s|):/i,
    /Apple Releases (New |)(Beta |)Firmware.*(AirPod|AirTag|Remote|Display|[Bb]eats|MagSafe)(s|)/i,
    /Apple Releases (New |)(Beta |)(AirPod|AirTag|Remote|Display|[Bb]eats|MagSafe)(s|).*Firmware/i,
    /Apple Releases (New |)(Beta |)Firmware.*(AirPod|AirTag|Remote|Display|[Bb]eats|MagSafe Charger)(s|)/i,
    /Apple Releases (New |)(Beta |)(AirPod|AirTag|Remote|Display|[Bb]eats|MagSafe Charger)(s|).*Firmware/i,
    /Apple Seeds.*Beta.*OS.*Developers/i
    ];

  24. abjugard revised this gist May 3, 2023. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 0.6
    // @version 0.7
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/*
    @@ -13,8 +13,8 @@

    const unwantedRes = [
    /deal(s|):/i,
    /Apple Releases (New |)(Beta |)Firmware.*(AirPod|AirTag|Remote|Display)/i,
    /Apple Releases (New |)(Beta |)(AirPod|AirTag|Remote|Display)(s|).*Firmware/i,
    /Apple Releases (New |)(Beta |)Firmware.*(AirPod|AirTag|Remote|Display|[Bb]eats|MagSafe)(s|)/i,
    /Apple Releases (New |)(Beta |)(AirPod|AirTag|Remote|Display|[Bb]eats|MagSafe)(s|).*Firmware/i,
    /Apple Seeds.*Beta.*OS.*Developers/i
    ];

  25. abjugard revised this gist Dec 12, 2022. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 0.5
    // @version 0.6
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/*
    @@ -14,6 +14,7 @@
    const unwantedRes = [
    /deal(s|):/i,
    /Apple Releases (New |)(Beta |)Firmware.*(AirPod|AirTag|Remote|Display)/i,
    /Apple Releases (New |)(Beta |)(AirPod|AirTag|Remote|Display)(s|).*Firmware/i,
    /Apple Seeds.*Beta.*OS.*Developers/i
    ];

  26. abjugard revised this gist Nov 11, 2022. 1 changed file with 4 additions and 8 deletions.
    12 changes: 4 additions & 8 deletions macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 0.4
    // @version 0.5
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/*
    @@ -11,14 +11,10 @@
    // @downloadURL https://gist.github.com/abjugard/62b7b4337d2e77f8a3abbfc3efcc65b9/raw/macrumors-filter.user.js
    // ==/UserScript==

    const promoRe = /deal(s|):/i;
    const firmwareRe = /Apple Releases (New |)(Beta |)Firmware.*(AirPod|Remote|Display)/i;
    const devBetaSeedRe = /Apple Seeds.*Beta.*OS.*Developers/i;

    const unwantedRes = [
    promoRe,
    firmwareRe,
    devBetaSeedRe
    /deal(s|):/i,
    /Apple Releases (New |)(Beta |)Firmware.*(AirPod|AirTag|Remote|Display)/i,
    /Apple Seeds.*Beta.*OS.*Developers/i
    ];

    (function() {
  27. abjugard revised this gist Jul 7, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions macrumors-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -7,8 +7,8 @@
    // @match https://www.macrumors.com/*
    // @icon https://www.google.com/s2/favicons?domain=macrumors.com
    // @grant none
    // @updateURL https://gist.github.com/abjugard/62b7b4337d2e77f8a3abbfc3efcc65b9/raw/macrumors-promotion-filter.user.js
    // @downloadURL https://gist.github.com/abjugard/62b7b4337d2e77f8a3abbfc3efcc65b9/raw/macrumors-promotion-filter.user.js
    // @updateURL https://gist.github.com/abjugard/62b7b4337d2e77f8a3abbfc3efcc65b9/raw/macrumors-filter.user.js
    // @downloadURL https://gist.github.com/abjugard/62b7b4337d2e77f8a3abbfc3efcc65b9/raw/macrumors-filter.user.js
    // ==/UserScript==

    const promoRe = /deal(s|):/i;
  28. abjugard renamed this gist Jul 7, 2022. 1 changed file with 2 additions and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    // ==UserScript==
    // @name Remove promos on MacRumors
    // @name Remove useless articles on MacRumors
    // @namespace https://github.com/abjugard/
    // @version 0.3
    // @version 0.4
    // @description Removes promos on MacRumors
    // @author Adrian Bjugård
    // @match https://www.macrumors.com/*
  29. abjugard revised this gist Jul 7, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion macrumors-promotion-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@
    // ==/UserScript==

    const promoRe = /deal(s|):/i;
    const firmwareRe = /Apple Releases (New |)(Beta |)Firmware.*(AirPod|Remote|Display).*/i;
    const firmwareRe = /Apple Releases (New |)(Beta |)Firmware.*(AirPod|Remote|Display)/i;
    const devBetaSeedRe = /Apple Seeds.*Beta.*OS.*Developers/i;

    const unwantedRes = [
  30. abjugard revised this gist Jul 7, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion macrumors-promotion-filter.user.js
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@
    // ==/UserScript==

    const promoRe = /deal(s|):/i;
    const firmwareRe = /Apple Releases (New |)(Beta |)Firmware.*(AirPod|.*Remote|.*Display.*)/i;
    const firmwareRe = /Apple Releases (New |)(Beta |)Firmware.*(AirPod|Remote|Display).*/i;
    const devBetaSeedRe = /Apple Seeds.*Beta.*OS.*Developers/i;

    const unwantedRes = [