Adil Rashid enjoyed his best bowling figures at Headingley in four years to keep Yorkshire in with a good chance of beating Durham and taking a clear lead in the LV= County Championship Division One table.
The eight bonus points which Yorkshire have taken from the match mean they will at least share top place with Nottinghamshire.
Durham resumed their first innings in the morning on 50 for one and with plenty to do if they were to go on and win the match.
Yorkshire were eager for early wickets and got one when Ryan Sidebottom managed late movement off a perfect length to Scott Borthwick, who edged into Jonny Bairstow's gloves.
Opener Keaton Jennings settled in solidly, however, and was well supported by Michael Richardson, the former taking two off-side boundaries in an over off Jack Brooks before greeting the arrival of Rashid into the attack with a swept four.
Jennings advanced with some clean drives to reach his half-century off 122 balls with eight fours, but having reached 56 he pushed at the accurate and miserly Steven Patterson and Adam Lyth scooped up the catch at second slip.
In the next over, Gordon Muchall was lbw on the back foot to Tim Bresnan and it rapidly became Yorkshire's morning as Richardson chipped back the last ball before lunch to Rashid, Durham having slid to 119 for five with three wickets toppling for nine runs.
Soon after the interval, Yorkshire had two chances on 131 to make life easier for themselves, but were unable to take either of them.
Coughlin gone! He's been caught at long-on by Brooks off Rashid, who has four-for. 194-8.
— Yorkshire CCC (@Yorkshireccc) July 9, 2014
Phil Mustard edged Brooks to Alex Lees at third slip but be could not grasp a sharp chance and Paul Collingwood would have been run out off the next ball if Sidebottom had scored a direct-hit on the stumps.
On at least two occasions, Sidebottom pleaded in vain to umpire Richard Illingworth for lbw decisions against Mustard, but Rashid broke the troublesome 51-run stand by having Mustard snapped up at short-leg by Jack Leaning for 17.
Rashid was looking more confident than he had done for some time and - after John Hastings had looped a catch to Lyth at slip - he made Phil Coughlin pay for on-driving him for six to get off the mark by enticing him to hit straight into the hands of Brooks at deep mid-on.
Collingwood remained a threat to Yorkshire's ambitions, completing his half-century off 89 balls with five fours, and when he received a beamer from Brooks the bowler was given an official warning.
Patterson took the new ball for the second delivery after tea and he shared it for an over with Rashid before pinning Mark Wood lbw.
Sidebottom replaced the spinner and his first ball had Chris Rushworth lbw, Collingwood remaining unbeaten on a defiant 64 from 106 balls.
Both Sidebottom and Patterson were the models of consistency throughout the innings, Patterson's two wickets costing him 27 runs off 20 overs and Sidebottom being similarly rewarded from 14.2 overs with six maidens.
But the happiest man was Rashid whose figures were his best at Headingley since picking up 5-137 against Warwickshire almost exactly four years ago and his best in any match since taking 5-78 against Middlesex at Lord's last summer.
All out for 231 and following on with 26 overs of the day still remaining, Durham were given a mainly untroubled start by Mark Stoneman and Jennings and at 33 without loss after 14 overs, Rashid was brought on from the Football Stand End.
Jennings gone! He's ben bowled by Lyth for 16. It's 39-1 in the 19th.
— Yorkshire CCC (@Yorkshireccc) July 9, 2014
But he was given only two overs by skipper Andrew Gale, who then turned to the off-spin of Lyth and it proved to be an inspired move because he bowled Jennings with his fifth delivery and Durham were 39 for one.
Borthwick then helped Stoneman to see it through to the close without further mishap.
Rashid was pleased with his side's efforts and hopes they can finish Durham off tomorrow, saying: "I think we bowled exceptionally well today on a wicket not doing very much and we stuck to our disciplines.
"I felt I bowled okay in patches and it was nice to get some overs under my belt.
"We have got it in us to executive our plans tomorrow but every day is a big day and we have got to take them as they come.
"When you have bowled a few overs the ball comes out nicely and things start to go your way. I have felt better and more aggressive this season and feel to be in a better place.
"I am coming into form with the wickets getting drier and I hope I can go on to have more good days than bad ones."
Durham skipper Collingwood admitted the pitch was not helping his side's efforts, and said: "The pitch is a difficult one and so you have to get in there and find areas to score but the pitch is getting harder and harder.
"The difference between the two sides is the way we bowled in the first two sessions of the match. I think we did all right to get the runs we did on that wicket which is becoming more and more variable and is untypical of Headingley.
"Rashid bowled very well and it is amazing what the sunshine does. There was more assistance in it than we had and it will be tough tomorrow. I am surprised Yorkshire took a punt on this pitch for such a big game."