Skip to content

Instantly share code, notes, and snippets.

@UromPLAt
Created March 30, 2023 11:41
Show Gist options
  • Save UromPLAt/1960542ccdfde252fcda254796a7d516 to your computer and use it in GitHub Desktop.
Save UromPLAt/1960542ccdfde252fcda254796a7d516 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name ReleaseBB
// @require https://code.jquery.com/jquery-3.3.1.min.js#md5=a09e13ee94d51c524b7e2a728c7d4039
// @match https://search.rlsbb.ru/
// @grant GM_xmlhttpRequest
// ==/UserScript==
const urls = [];
$("[id='resultdiv'] tr").each(function() {
let URL = $("td:last a", this)[0].href;
urls.push(URL);
})
let i = 0;
while (i < urls.length) {
let URL = urls[i];
GM_xmlhttpRequest({
method: "GET",
url: URL,
onload: function(response) {
let page =$.parseHTML(response.statusText)
console.log(page);
}
});
i++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment