User Pass
Home Sign Up Contact Log In
ProfessionalKop
Gangstalicious
offline
Link
 
link it plz
 
Jack Daniels
offline
Link
 
https://greasyfork.org/en/scripts/1341-glb-cut-cpu-players-pabst-fix

As the season has been started, script can only cut down to 40 man.
Edited by Jack Daniels on Apr 29, 2023 00:31:17
 
madmal
Prez SWO
offline
Link
 
Originally posted by Jack Daniels
https://greasyfork.org/en/scripts/1341-glb-cut-cpu-players-pabst-fix

As the season has been started, script can only cut down to 40 man.


Doesn't seem to work for me.
 
RyanCane26
online
Link
 
Originally posted by madmal
Doesn't seem to work for me.


I'll be posting updated versions as soon as I can get to a computer. You just need to change the glb link to https:// I'm sure
 
Bluesman
bluest blues
offline
Link
 
Looking at the script you probably just have to do what RC said, open up the script and add a s to the http headers making them https
Edited by Bluesman on Apr 29, 2023 13:32:37
Edited by Bluesman on Apr 29, 2023 09:51:58
 
Jack Daniels
offline
Link
 
Originally posted by madmal
Doesn't seem to work for me.


With Google Chrome Version 112.0.5615.138 and Tampermonkey 4.18.1 that works for me.
 
Johna578
offline
Link
 
Life coach services are not simply a modern strategy for achievement a little calmer, getting some improved focus and consideration or taking a break from your bullying internal voices. It is a philosophical path of executive coaching services. Which can bring freedom from existential fears.
Visit: https://dynleadco.com/
 
Novus
offline
Link
 
Any life coach who recommends blatant message board spam is a craptacularly bad life coach.
 
madmal
Prez SWO
offline
Link
 
Originally posted by RyanCane26
I'll be posting updated versions as soon as I can get to a computer. You just need to change the glb link to https:// I'm sure


Thank you
 
Jack Daniels
offline
Link
 
I must have updated the line myself. I cannot remember, but this is the line that needs to be changed to work-
https://glb.warriorgeneral.com/game/roster.pl?team_id=*
 
madmal
Prez SWO
offline
Link
 
Waiting for Ryan's post.
 
RyanCane26
online
Link
 
// ==UserScript==
// @name GLB Cut CPU Players - pabst fix
// @namespace GLB
// @description Cuts CPU players to the minimum
// @author DDCUnderground
// @match https://glb.warriorgeneral.com/game/roster.pl?team_id=*
// @require https://userscripts-mirror.org/scripts/source/74204.user.js
// @version 14.02.26-pabst
// ==/UserScript==
//

$(document).ready(function(){

// functions
var buildobj = function(a){
var newobj = document.createElement(arguments[0]);
for (var varval = 1; varval < arguments.length; varval++) {
newobj.setAttribute(arguments[varval],arguments[varval+1]);
varval++;
};
return newobj;
};



function cutAllCPUS(){
$('#ddccutcpus').attr('value','Working');
$('#ddccutcpus').attr("disabled", "true");

$('tr[class="alternating_color1"],tr[class="alternating_color2"]').each(function(z){
//if (z<2) {
if ($('span[class="cpu"]',$(this)).length > 0) {
var playerid = $('a[href*="/game/player.pl?player_id="]',$(this)).attr('href');
playerid = playerid.substring(playerid.indexOf('player_id=')+10,playerid.length);
var upgradeData = 'action=Confirm Release&&player_id=' + playerid;
$.ajax({
async: false,
type: 'POST',
url: "/game/cut_player.pl?player_id="+playerid,
data: encodeURI(upgradeData),
success: function(returned_data) {
}
})
}
//}
})
window.location.reload();

}

var cutcpusbut = buildobj('input','type','button','id','ddccutcpus','Value','Cut CPUs');
var linebreak = buildobj('br');
$('.medium_head:first').append(linebreak);
$('.medium_head:first').append(cutcpusbut);
$('#ddccutcpus').bind('click',cutAllCPUS, false);

})
 
RyanCane26
online
Link
 
https://greasyfork.org/en/scripts/465967-glb-cut-cpu-players-rc26-fix
Edited by RyanCane26 on May 10, 2023 14:32:40
 


You are not logged in. Please log in if you want to post a reply.