Your thoughts about grammar could never be rubbish!
Sentence 1 is correct. "Only" and "just" should come just before the words they modify.
Look at these sentences. Notice how changing the position of "only" or "just" changes the emphasis:
"¢ I just don't agree with you. Sorry.
(I don't agree with you – that's all there is to it.
"¢ I don't just agree with you – I am strongly in favor of your point of view.
(I more than agree with you.)
"¢ Dan is sick. He only wants his close friends to visit.
(The only thing Dan wants is that his close friends visit. He wants nothing else – no TV, no letters, no books, for example).
"¢ Dan is sick. He wants only his close friends to visit.
(Dan wants only his close friends. Nobody else.)
However, in informal speech and writing, the adverb "only" often occurs before the verb. The exact meaning is understood through the context. The construction in your first sentence is accurate and clear, and the word order should definitely be used in formal or academic language; the construction of your second sentence is very common and is acceptable informally.