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!
For (2) say the injective maps $\mathcal{O}_X(U)\to\mathcal{O}_\eta$ are called $f_U$. Then, $f_V\circ\operatorname{res}_{U,V}=f_U$, so the restriction map is injective as well. Thus, all you need to show is that for any open set $U$ the map $f_U$ is injective.
Cover $U$ by open affines $\{U_i\}$ and take $a\in\ker f_U$. Then, by the same argument as above $f_U(a)=f_{U_i}(a|_{U_i})=0$ and since each $f_{U_i}$ is injective you're done.