Petroleum contains a large number of heteroatomic compounds, but today, most of them are not efficiently utilized. The constant development of the sustainability concept recalls for rethinking the usage of fossil resources with improved chemical utility. In order to initiate research aimed at involving active petroleum compounds in chemical transformations, a new analytical method for product detection is needed. Here, we study the click reaction of thiols with alkynes, leading to the formation of Îą-vinyl sulfides directly in the petroleum environment. The reaction was carried out using an (IMes)Pd(acac)Cl catalyst, which demonstrated tolerance to petroleum components. In this study, the concentration of thiols ranged from 1 M to 0.01 M (from 8% to 0.1%). To detect products at low concentrations, a special alkyne labeled with an imidazole moiety was used. This approach made it possible to observe the formation of vinyl sulfides by electrospray ionization mass spectrometry (ESI-MS), which provides an opportunity for further optimization of the reaction conditions and future developments for the direct involvement of oil components in chemical reactions.