![]() This method requires declaring it as web-accessible. The URL for your options page is not fixed, but should be obtained with ("options.html"), and that URL should be used in the link creation. If you insist on directly opening the page from the content script / a tag, you can, but you'll need to get the dynamically-allocated UUID for your extension instance. The advantage of this approach is that you don't need to make the options page web-accessible. Using Tor will also make it nearly impossible for a school or public wifi firewall to block your torrent searches. In that case, you need a background (event) page that listens to Messaging, and then signal from the content script that you want the options page open. Tor browser viewing the Pirate Bay (a popular torrent site) Tor also allows you to have a separate IP address for downloading of the ‘.torrent’ file, vs the actual p2p sharing of the file being torrented. The canonical way is to call (), but that API can't be called from a content script. ![]() Perhaps that's not your actual code, just what you create?īut suppose you do adjust the content script to add a button and have a listener attached (out of scope for this question, I think). Your content script, as shown, is actually a chunk of HTML and not JavaScript, as expected.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |