This is not a recommended way to flash a chimney.
This is how a ridge vent should look using the Cobra 3 Ridge Vent system by GAF.
Against wind damages to shingles. A 130mph wind rating warranty keeps this from happening.
Visual Marketing By Lead Symphony – Patent Pending