Stop the Swift 2.0

from blog The Desolation of Blog, | ↗ original
A couple weeks ago I introduced my new browser extension StopTheSwift, which forces Apple's online developer documentation to show Objective-C API instead of Swift. Since then, I've received a report that StopTheSwift wasn't working right on certain pages, such as https://developer.apple.com/documentation/uikit/uipasteboard/detectionpattern. StopTheSwift 1.0 simplemindedly added ?language=objc to the end of documentation URLs, but it turns out that sometimes there are different URL subpaths for Swift (uipasteboard/detectionpattern) and Objective-C (uipasteboarddetectionpattern).