S
S
sullencode2019-01-13 06:56:02
JavaScript
sullencode, 2019-01-13 06:56:02

Is it possible to implement a search on third-party sites to display the result on the page that the script uses?

Please forgive me if I'm not making my point clear. Only recently encountered the existence of userscript. And before starting to study javascript, I decided to ask if it is possible to implement my plan.
Get down to business!
I work as a moderator of works and almost all information has to be found on certain sites. An idea came to mind... And what if we make it so that on the moderation page (after loading the page) a list of sites immediately appears (with which the work is mainly being done).
How I present the work:
1. The script takes the original name from value:

<div class="col-sm-5">
    <input type="text" name="originalName" value="One Piece" class="form-control" id="originalName">
  </div>

2. After using the search for a specific site or all the necessary sites.
3. Doesn't just display a page of results, but goes directly to the page of the work. Is it possible through the class="name-en" value (taken from one of the sites)?
<span class="title left_aligned" itemprop="name">
<span class="name-en">One Piece</span>
<span class="name-ru" data-text="Ван-Пис"></span>
</span>

4. Issues hyperlinks (sitename) in a separate area on the page that executes the script.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Lyalin, 2020-08-06
@Spokik

<span class="title left_aligned" itemprop="name">
<span class="name-en">One Piece</span>
<span class="name-ru" data-text="Ван-Пис"></span>
</span>

There is no link here. In general, you should probably try NodeJS parsing, scraping and all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question