Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @@ -9,6 +9,9 @@
- // @require http://userscripts.org/scripts/source/87345.user.js
- // @require http://userscripts.org/scripts/source/98574.user.js
- // @noframes
- +// @grant GM_addStyle
- +// @grant GM_xmlhttpRequest
- +// @grant GM_registerMenuCommand
- // ==/UserScript==
- @@ -52,14 +55,17 @@
- // let's scan for links (async)
- intervID = setTimeout(function() {
- GM_xmlhttpRequest({
- - "url" : "includes/large.html",
- + "method" : "GET",
- + "synchronous" : false,
- + "url" : window.location.href + "includes/large.html",
- "onload" : function(xhr)
- {
- // analyse the contents
- getTrailerPages(xhr.responseText);
- },
- "onerror":function() {
- - showError("Ajax error");
- +
- + showError("Could not GET includes/large asynchronously.");
- }
- });
- }, 250);
- @@ -70,7 +76,8 @@
- */
- function getDownloadlinks(order, url, title, cb) {
- GM_xmlhttpRequest({
- - "url" : url,
- + "method" : "GET",
- + "url" : window.location.href + url,
- "onload" : function(xhr)
- {
- // analyse the contents
- @@ -79,6 +86,7 @@
- },
- "onerror" : function() {
- if (cb) cb();
- + showError("Could not GET trailer subpage asynchronously.");
- }
- });
- }
Add Comment
Please, Sign In to add comment