20.02.2017, 16:48
I like more widgets than plans for trend viewing so I've prepared such script for deleting unnecessary widgets if first page is for example 173(homepage of specific user):
Code:
// Delete unnecessary widgets
$(function(){
if (!$('body').hasClass('usermode')) {
return;
}
if (currentPlanId == 173){
$('#widget-58,#widget-59,#widget-61,#widget-62,#widget-63,#widget-64,#widget-65,#widget-66,#widget-67,#widget-68,#widget-69,#widget-71,#widget-73,#widget-74,#widget-75,#widget-76,#widget-77,#widget-79,'+
'#widget-80,#widget-81,#widget-82,#widget-84,#widget-85,#widget-86,#widget-88,#widget-89,#widget-91,#widget-92,#widget-93,#widget-94,#widget-95,#widget-96,#widget-97,#widget-98,#widget-99,#widget-100,'+
'#widget-101,#widget-102,#widget-103,#widget-104,#widget-105,#widget-106,#widget-107,#widget-108,#widget-109,#widget-166,#widget-167,#widget-168,#widget-169,#widget-170,#widget-171,#widget-378,'+
'#widget-379,#widget-387,#widget-388,#widget-393,#widget-394,#widget-396,#widget-397').remove()
} else if(currentPlanId == 1){
// do nothing
};
});