I have some questions concerning Ayman Hourieh's proof of the fact that restriction maps in an integral scheme are injective:
Let $X$ be an integral scheme. Let $\xi$ be its generic point. If we show that the canonical map $\mathcal O_X(U) \to \mathcal O_\xi$ is injective, we're done. Since $U$ can be covered by affine open subsets, we can assume that $U = \operatorname{Spec} A$ is affine. Now the map $\mathcal O_X(U) \to \mathcal O_\xi$ corresponds to the canonical map $A \to \operatorname{Frac}(A)$, where $\operatorname{Frac}(A)$ is the quotient field of $A$. This map is clearly injective as desired.
(1) Since $U$ can be covered by affine open subsets, we can assume that $U = \operatorname{Spec} A$ is affine.
I understand the case when $U$ is affine, but I don't know how to generalize it to an arbitrary open subset.
(2) I don't know how it follows from his proof that $\operatorname{res}_{U,V} : \mathcal O_X(U) \rightarrow \mathcal O_X(V)$ is injective for arbitrary open subsets $U \supset V$.
If you know another proof of this fact, please also feel free to share it in here or the linked post. Thank you!