Is it possible to run Scripts on pages in different domains using UserScript?

Asked 2 years ago, Updated 2 years ago, 286 views

hoge.com/0001.html

<html>
<head>
</head>
<body>
https://rehoge.com/1234.html
</body>
</html>

Is it possible to run a script for rehoge.com/1234.html from the above page?
For example, if you run hoge(); within rehoge.com/1234.html, you will see certain text.

DOMParser().parseFromString(html, "text/html");

I would like to retrieve the text from above hoge.com/0001.html in scripts such as .

javascript

2022-09-30 21:51

1 Answers

Cross-site scripting equivalent can be read.

For security reasons, most browsers may block it.


2022-09-30 21:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.