Lewis Hamilton told an angry Hungarian Grand Prix crowd their jeers "fuelled" him as he took pole position at the start of a potentially historic weekend.
The Mercedes superstar was at the centre of controversy two weeks earlier at Silverstone as his crash saw Max Verstappen ruled out on the first lap.
Hamilton recovered from a 10-second penalty to win the race and close the gap significantly in the title race.
That was the defending champion's 99th Formula One victory and he now has a clear sight of the century, albeit only after another Red Bull flashpoint.
Having already secured provisional pole with a time of one minute and 15.419 seconds, which would ultimately prove enough, Hamilton crept in front of the chequered flag to make a second run, delaying Verstappen and team-mate Sergio Perez, who was unable to get through in time.
It left Hamilton fighting only against Verstappen, who lacked the pace of previous races and has work to do from third on Sunday.
Hamilton's first win as a Mercedes driver came in Hungary and he could be the first driver to win the same F1 event nine times this week, but he was not popular among the locals as he took the microphone.
Greeted with loud boos, the Briton said: "I appreciate the great support I have here.
"Honestly, I've never felt so great with the booing. If anything, it just fuels me. I don't really mind it. It's alright."
Mercedes had gone six grands prix without pole position, their second-longest barren run in the hybrid era.
But Valtteri Bottas followed Hamilton in second place for the Silver Arrows' 80th qualifying one-two, a joint-record alongside Ferrari.
"It was an amazing qualifying lap," Hamilton said having claimed his 101st pole. "I think it's been amazing teamwork from everyone this weekend, Valtteri included.
"Trying to push the car forwards, developing constantly, the guys back at the factory have not left a stone unturned. It's been amazing to see everyone coming together, rallying and pushing forwards."
Verstappen, using the same Honda power unit from his Silverstone crash, was given a far warmer greeting by the Hungarian fans after coming in 0.421 seconds behind Hamilton.
"It's difficult to say the gap, but clearly the whole weekend so far we've been a bit behind," the Red Bull star said. "It showed again in qualifying.
"Of course it's not what we want, but we're still there in P3 and we'll see what we can do. So far, it's not what I want."
Verstappen will start on soft tyres having switched in Q2 to be sure of his place in the final session, one place ahead of Perez.
Q2 had briefly been halted due to a crash for Ferrari's Carlos Sainz, with Mick Schumacher also earlier hitting the barriers in FP3 and unable to enter qualifying.
1. Lewis Hamilton (Mercedes) 1:15.419
2. Valtteri Bottas (Mercedes) +0.315secs
3. Max Verstappen (Red Bull) +0.421s
4. Sergio Perez (Red Bull) +1.002s
5. Pierre Gasly (AlphaTauri) +1.064s
6. Lando Norris (McLaren) +1.070s
7. Charles Leclerc (Ferrari) +1.077s
8. Esteban Ocon (Alpine) +1.234s
9. Fernando Alonso (Alpine) +1.296s
10. Sebastian Vettel (Aston Martin) +1.331s