There's really no need to use javascript when the same can be achieved with CSS :
Administration panel > display > colors > css stylesheet
Paste the code below and submit :
- Code:
#right { display:none; }
#content { margin-left:0 !important; }
Administration panel > display > generalities
Add the code below to the homepage message and save :
- Code:
<style>
#right { display:block !important; }
#content { margin-left:183px !important; }
</style>
For typical forums it should be :
Left widgets :
- Spoiler:
Administration panel > display > colors > css stylesheet
Paste the code below and submit :
- Code:
#left { display:none; }
#content { margin-left:0 !important; }
Administration panel > display > generalities
Add the code below to the homepage message and save :
- Code:
<style>
#left { display:block !important; }
#content { margin-left:183px !important; }
</style>
Right widgets :
- Spoiler:
Administration panel > display > colors > css stylesheet
Paste the code below and submit :
- Code:
#right { display:none; }
#content { margin-right:0 !important; }
Administration panel > display > generalities
Add the code below to the homepage message and save :
- Code:
<style>
#right { display:block !important; }
#content { margin-right:183px !important; }
</style>
EDIT :
I don't know why it double posted, but when I clicked advanced from edit It didn't really edit my post.