議論 » 作成依頼

Searching in Elements and copying certain text

§
投稿日: 2017/01/30

Searching in Elements and copying certain text

Good Day,

Is there any script or anyone can make a script for copying certain text in the elements for all tabs??

Example: Searching for "" and copying his username before

johnsmith

Copying the johnsmith.

§
投稿日: 2017/02/18
Example: Searching for "<span id="username">" and copying his username before </span>

You can easily find the tag's text content in a tab:

var user = document.getElementById("username").textContent;

But... I'm not sure what you have in mind for reading across all tabs and what should go on the clipboard when (if you mean copying to the clipboard).

返信を投稿

返信を投稿するにはログインしてください

长期地址
遇到问题?请前往 GitHub 提 Issues。