I've found the article written with advanced writing skill and it is way harder to understand for me. I want to know the simplified meaning of sentence in the context that I'm giving you. Can you deconstruct and convert it into understandable one.
The following part of the sentence confused me so much. The way of writing and structuring it doesn't seem that ordinary. (like after as well, had is coming with it and not been )
Please help me to understand
as well had it not been for the machinations of journalists
You can see the full sentence below
...And he might have lost the Electoral College as well had it not been for the machinations of journalists working in the shady corners of what’s been called “the Victorian Internet.”