ni554n / RapidMoviez 1080p Release Link Filter

// ==UserScript==

// @name                RapidMoviez 1080p Release Link Filter
// @description         Keeps only the 1080p links on release page by filtering out the other links.
// @version             1.2

// @namespace           io.github.ni554n
// @match               http*://rmz.cr/*
// @exclude-match       http*://rmz.cr/
// @exclude-match       http*://rmz.cr/*/*

// @updateURL           https://openuserjs.org/meta/ni554n/RapidMoviez_1080p_Release_Link_Filter.meta.js
// @supportURL          https://github.com/ni554n/userscripts/issues
// @license             MIT

// @author              Nissan Ahmed
// @homepageURL         https://ni554n.github.io/
// @contributionURL     https://paypal.me/ni554n

// ==/UserScript==

/* Migration Notice */

console.log(`
 █████  ████████ ████████ ███████ ███    ██ ████████ ██  ██████  ███    ██ 
██   ██    ██       ██    ██      ████   ██    ██    ██ ██    ██ ████   ██ 
███████    ██       ██    █████   ██ ██  ██    ██    ██ ██    ██ ██ ██  ██ 
██   ██    ██       ██    ██      ██  ██ ██    ██    ██ ██    ██ ██  ██ ██ 
██   ██    ██       ██    ███████ ██   ████    ██    ██  ██████  ██   ████ 
                                                                           
                                                                           
`)

console.log(
`Thanks for using "RapidMoviez 1080p Release Link Filter" userscript downloaded from OpenUserJS.

You are seeing this message because due to a change introduced in OpenUserJS,
future updates to this script will no longer be vaiable.

If you like to get updates in the future, please open your userscript manager program,
and remove the "RapidMoviez 1080p Release Link Filter" script.

Then head over to this Github link and install this script again.
https://github.com/ni554n/userscripts/blob/master/rapidmoviez/1080p-release-filter#installation

It's very easy to do and will take only 3-4 clicks.

Sorry for the inconvenience!`
);


// Section example: Packs, Episodes, Archived.
const sectionList = document.getElementsByClassName("allrls");

for (const section of sectionList) {
  for (const releaseItem of section.children) {
    const releaseName = releaseItem.children[1].innerText;

    if (!releaseName.includes("1080p")) {
      releaseItem.style.display = "none";
    }
  }
}