The second half was a joke about fetishes. Some could seem bizarre to others while ultimately benign. That it didn’t land with you is informative.
Your response, in general, is troubling in its shortsightedness. Stripping away all privacy as a requirement for office is not the filter you want it to be. Recent history illustrates that certain movements are unfazed by repulsive behavior as long as they believe a candidate will get them what they want. With that in mind, who would stand to be damaged most by your proposed requirement: the candidate who visited Nazi websites or the one whose browser history includes research on how to help someone legally obtain an abortion?
Taking it further, who do you suppose would be most likely to use such information to self-cannibalize, the already barely cohesive left or the increasingly monolithic right? Consider that the post-9/11 reality we live in has seen both a constant erosion of personal privacy and a steady shift towards fascism, and ask yourself if you can honestly say that the two are unrelated. In this scenario, who truly benefits from stripping away privacy rights from those seeking office?
You suggest a law that would almost certainly be weaponized, which I do believe is your intent, but the most likely targets aren’t who you seem to think they would be.