Last active
April 2, 2024 16:28
-
-
Save tansautn/d6abfbfcff5d7eb44fdb83f5abc89383 to your computer and use it in GitHub Desktop.
musicDownWallBypasser | by Zuko®
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name musicDownWallBypasser | by Zuko® | |
// @namespace https://zuko.pro | |
// @version 1.0 | |
// @description auto download from hypeddit, auto connect soundcloud | |
// @author Zuko <github.com/tansautn> | |
// @match https://hypeddit.com/* | |
// @match https://secure.soundcloud.com/connect* | |
// @icon https://avatars.githubusercontent.com/u/31211615?s=128 | |
// @require https://code.jquery.com/jquery-3.6.0.min.js | |
// @grant GM_addStyle | |
// ==/UserScript== | |
// Last check to see it work : 2024-04-01 | |
(function() { | |
'use strict'; | |
const uri = new URL(window.location.href); | |
const maxTries = 20; | |
let cou = 0; | |
console.log("Current URL:", uri); | |
if(uri.host.indexOf('soundcloud.com') !== -1){ | |
const b = $('button[id="submit_signup"]'); | |
console.log(b); | |
let isDone = Boolean(b.length); | |
b.length && b.trigger('click'); | |
if(!isDone && cou < maxTries){ | |
const _h = () => { | |
const b = $('button[id="submit_signup"]'); | |
console.log(b); | |
b.length && b.trigger('click'); | |
isDone = Boolean(b.length); | |
if(!isDone){ | |
window.setTimeout(_h, 200); | |
} | |
}; | |
window.setTimeout(_h, 200); | |
} | |
}else{ | |
let ele | |
let isDone = false; | |
let cou = 0; | |
const maxTries = 200; | |
let xCou = 0; | |
window.zStepz = 1; | |
const _hhyp = () => { | |
cou++; | |
if(cou > maxTries){ | |
console.info('Max attempt reach'); | |
// window.location.reload(); | |
} | |
if(isDone){ | |
console.info('isDone'); | |
return; | |
} | |
let x; | |
// ele = $('#downloadProcess'); | |
// console.info(ele, window.zStepz); | |
// x = ele.length && ele.trigger('click'); | |
switch (window.zStepz){ | |
case 1: | |
if(!$(".downloadProcess").hasClass('move-bottom-now')){ | |
$(".sidebar-buttons").toggleClass("move-bottom"); | |
$(".downloadProcess").show().toggleClass("move-bottom-now"); | |
} | |
x = $(".downloadProcess").hasClass('move-bottom-now'); | |
if(x && window.zStepz < 2){ (window.zStepz = window.zStepz + 1) && window.setTimeout(_hhyp, 500); return ;} | |
case 2: | |
if($('#sc_comment_text').length){ | |
ele = $('#sc_comment_text'); | |
x = window.zStepz === 2 && ele.length && ele.val('`') && $('#login_to_sc').trigger('click') && (window.zStepz = window.zStepz + 1); | |
}else{ | |
ele = $('#login_to_sc'); | |
x = window.zStepz === 2 && ele.length && ele.trigger('click') && (window.zStepz = window.zStepz + 1); | |
} | |
if(x && window.zStepz < 4){ window.setTimeout(_hhyp, 2000); return;} | |
case 3: | |
xCou++; | |
ele = $('#login_to_mc'); | |
console.info(ele, window.zStepz); | |
x = window.zStepz === 3 && ele.length && ele.trigger('click'); | |
if(window.zStepz === 3 && xCou > 10){ | |
x = true; | |
isDone = true; | |
} | |
if(x && window.zStepz < 4){(window.zStepz = window.zStepz + 1000) && window.setTimeout(_hhyp, 200); return;} | |
default: | |
console.info('godown'); | |
x = window.zStepz > 800 && $('.free_dwln').removeClass('disable').prop('disable', false).trigger('click') && (isDone = true); | |
!isDone && window.setTimeout(_hhyp, 500); | |
} | |
} | |
// _hhyp(); | |
!isDone && window.setTimeout(_hhyp, 800); | |
} | |
// Your code here... | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment