![]() That leaves the option of adding a button into the page or defining a keyboard shortcut (with the potential for a conflict if it's not unique). Javascript:function fwbr(str)%("") y.document.close() void 0 Īs for doing a userscript, what kind of user interface are you looking for? It's not so convenient to use the "monkey menu" and I am not aware of a way to integrate with the right-click context menu. To install a bookmarklet, copy the code, then right-click your Bookmarks Toolbar and choose New Bookmark, paste the code in Location, and give it a name like ListLinks. You even can use XPath in a puppeteer javascript script const puppeteer = require('puppeteer') Īwait tViewport() Ĭonst xpath_expression = page.waitForXPath(xpath_expression) Ĭonst links = await page.$x(xpath_expression) Ĭonst link_urls = await page.evaluate((.Hmm, I found an old bookmarklet I created 8 years ago. Xmlstarlet sel -t -v - # parse the stream with XPath expression Xmlstarlet format -H - 2>/dev/null | # convert broken HTML to HTML ^M is Control v Enter xmlstarlet: curl -Ls | Or a xpath
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |