superapp inj
without superapp editor
This commit is contained in:
@@ -47,14 +47,58 @@ public class JsonInjectors{
|
||||
var Special = orig.optJSONArray("special");
|
||||
var Main = orig.getJSONArray("main");
|
||||
var Other = orig.optJSONArray("other");
|
||||
|
||||
if(Special.optJSONObject(0) != null){
|
||||
|
||||
if(Special != null){
|
||||
orig.remove("special");
|
||||
}
|
||||
|
||||
return orig;
|
||||
}
|
||||
|
||||
public static JSONObject superapp(JSONObject orig) throws JSONException{
|
||||
var Items = orig.optJSONArray("items");
|
||||
|
||||
if(Items != null) {
|
||||
for(int i = 0; i < Items.length(); i++){
|
||||
var items = Items.optJSONObject(i);
|
||||
var types = items.optString("type");
|
||||
|
||||
switch(types){
|
||||
case "promo":
|
||||
Items.remove(i);
|
||||
case "vkpay_slim":
|
||||
Items.remove(i);
|
||||
case "greeting":
|
||||
Items.remove(i);
|
||||
case "sport":
|
||||
Items.remove(i);
|
||||
case "games":
|
||||
Items.remove(i);
|
||||
case "miniapps":
|
||||
Items.remove(i);
|
||||
case "informer":
|
||||
Items.remove(i);
|
||||
case "holiday":
|
||||
Items.remove(i);
|
||||
case "vk_run":
|
||||
Items.remove(i);
|
||||
case "weather":
|
||||
Items.remove(i);
|
||||
case "food":
|
||||
Items.remove(i);
|
||||
case "event":
|
||||
Items.remove(i);
|
||||
case "birthdays":
|
||||
Items.remove(i);
|
||||
case "music":
|
||||
Items.remove(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return orig;
|
||||
}
|
||||
|
||||
public static boolean haveDonateButton(){
|
||||
int randomshower = new Random().nextInt(6);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user