I played around with alot of ideas, using security and disallowing everyone from creating new discussions, using CSS etc, but in the end the answer was surprisingly simple.
var tables = document.getElementsByTagName("table");
for(var i=0; i<> 0 )
var elm = tables[i];
And here's how it fits in:
Step by Step:
- Create a new visual studio project, select List Definition from the SharePoint projects. Select the basic list to inherit from, in my case Discussions. This creates all ASPX files & XML files needed for a list definition.
- Open the AllItems.aspx file
- Find the PlaceHolderMain content tag.
- Build & Deploy the solution (Visual Studio should have this option under the build menu, if it doesn't, you deploy the list definition as a feature).