Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Fix 17b Downloads
- // @namespace //822/
- // @version 2024-10-08
- // @description Tries to fix downloads for registered users. Note: Only Seems to work with Map/ or Wad/ downloads.
- // @author Th3-822
- // @match https://www.17buddies.rocks/*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=17buddies.rocks
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- // Your code here...
- // function GoDown(sTyp, nId, nPrx, sCph, nLastest, bHlbox) {
- var _GoDown = window.GoDown;
- window.GoDown = function(sTyp, nId, nPrx, sCph, nLastest, bHlbox) {_GoDown(sTyp, nId, nPrx, sCph, nLastest, ((sTyp == "Map" || sTyp == "Wad") ? 1 : bHlbox))};
- // function HandleDownResponse(sResult) {
- var _HandleDownResponse = window.HandleDownResponse;
- window.HandleDownResponse = function(sResult) {
- var data = sResult.split('|');
- if (parseInt(data[0]) || data[1] || parseInt(data[3]) == 0) return _HandleDownResponse(sResult);
- if (window.oldChkDown != 0) {
- window.getElementById('chkdwn_' + window.oldChkDown).style.display = 'none';
- window.getElementById('chkdwn_' + window.oldChkDown).innerHTML = '';
- }
- document.location = window.GlblUrl + 'Get/' + data[2] + '.zip';
- window.HideMask();
- window.HideLoading();
- };
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement