Now, before I go any further, let me make a few things clear:
- Spiceworks is an ad-supported program. By removing the ads, you are depriving the development team of their funding. In essence you are stealing the software from them.
- Spiceworks is not open source software. This means that you are not allowed to modify the code for your own uses.
- Removing the ads is probably illegal.
So, why am I posting this? Well, for a few reasons:
- I was having issues with the ads loading - they were timing out, making each page take 30+ seconds to load, and making the software somewhat unuseable.
- Many tech people have adblocker software that is blocking the ads already.
- This is to illustrate a point that I plan to make in an upcoming post.
That said - here is a quick way to remove the ads in Spiceworks. What tools do you need? Nothing. You need notepad, and the Windows Explorer.
An immediate observation I made when first looking at Spiceworks is that it is written in Ruby on Rails. All other things inside, that immediately indicated that somewhere, there was an .rhtml file which contained the layout code to include the ad block.
So, immediately, I performed a serach of the program directory, and found all the .rhtml files.
The two which you need to edit are:
- C:\Program Files\Spiceworks\ruby\lib\ruby\gems\1.8\gems\spiceworks-0.8.3616\app\views\layouts\common\_ads.rhtml
- C:\Program Files\Spiceworks\ruby\lib\ruby\gems\1.8\gems\spiceworks-0.8.3616\app\views\layouts\common\_sidebar.rhtml
To remove the ads, simply open both the above files in notepad. Remove all the contents from _ads.rhtml, leaving it completely empty. Remove everything within the “adbox” div tag.
If you would rather place your own ads in the sidebar, or the other content of your choice, perhaps links, or other content, you can also edit
C:\Program Files\Spiceworks\ruby\lib\ruby\gems\1.8\gems\spiceworks-0.8.3616\app\views\ads\adiframe.rhtml
replacing the contents within the tage with whatever you want to appear there. You could even place your own ads into the spiceworks install if you wanted.
Share This