I want to add a javascriptcode which could run on to all doc-libs and lists pages. (NEwForm.aspx,DispForm.aspx,AllItems.aspx and also created custom views)
These lists have common masterpage with the rest of site pages. So i can’t place my codes in masterpage.
So is there a way to do it in javascript?
You should be looking for the library BaseType
SPBaseType Enumeration, http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasetype.aspx