The night before I sold my 2008 WR-250X, the buyer wanted the stock shock spring put back on my bike (I was using a softer-rate spring).
I did this by removing the spring through the bottom of the bike.
Measure your current rider sag with your weight on the seat so that you can dial-in the correct spring preload once the new spring is installed - I liked 3.5 inches.
Put the bike up on a stand that holds the bike off the ground by supporting the frame cradle under the engine.
Loosen the spring preload collars several turns.
Remove the bolts that connect the linkage to the shock and swingarm and move that out of the way.
Raise rear wheel and hold it up by placing a support under the wheel.
Once the bottom of the shock is clear and free, you loosen the preload collars enough so that you can turn the spring by hand, which makes it easier to back the preload collars off to the point to where you can spin them by hand.
Loosen the preload collars enough to allow removing the spring retainer at the bottom of the shock.
Drop spring out the bottom.
Reverse proceedure to put it back together.
If you haven't done it in at least a year, I'd take the whole rear suspension apart (remove shock, linkage, and swingarm and grease all of the bearings, seals, collars, spacers, and bolts/pivot shafts).
Time well-spent.
Riding through stuff as shown in your avitar image will eventually corrode the parts if you don't do this once in a while.
As a side note, when I had my rear wheel/swingarm held high during this work, I noticed how the drive chain rubs directly on the ol' troublesome WR-250R or WR-250X seal guard (the black thing the chain slides over behind the front sprocket, and the thing that some riders have their drive chains eat all the way through to the swingarm on the bottom side).
Well, under full suspension compression, the chain touches this, and this is with slack in the chain.
If your chain is too tight, I can see where the damage is coming from since the chain will be forced to grind through it under tension, not just sliding over it as intended.