The floaters in your eye are bits of protein that are chains and unfortunately you can't get rid of them. They are annoying, and unless they become very large and block your vision, there is nothing you can do. It has nothing to do with mastubation, although the old saying, Stop it or you will go blind, may have some truth to it!. I am joking of course!
Seriously, as I said, unless they get large suddenly, you just need to learn to live with them. I have them and only notice them when I read or look at a white wall. You just get used to them.