The userscript that adds a popup to collect URLs from a web page. It’s mainly aimed for static web sites.
It grabs the links from anchors’ href
s (a
HTML tag) as well as from non-hyperlink visible text.
Popup is draggable and resizable. Use the upper edge to move the popup. To resize the popup use the right bottom corner.
Changing of controls/filters immediately effects on the result list.
Popup can be not only closed, but minimized.
It keeps the state in LocalStorage
.
To install open this URL: https://github.com/AlttiRi/href-taker/raw/master/dist/href-taker.user.js
An installed userscript manager extension (VM/TM) is required.
To open the popup use the userscript manager’s menu command:
The userscript has by default:
// @match *://*/*
It’s recommended to overwrite the rule in the userscript manager’s settings to run the script only in the locations where you need it:
To use the userscript in file://
pages you need to enable “Allow access to file URLs” checkbox in the userscript manager extension’s setting:
Here is a demo webpage to try this popup.
To filter the result list use “Only” and “Ignore” inputs.
The result list will have any URL which includes any word from Only input and no one from Ignore input.
Use the right mouse button (RMB) click on the input prompt (“Only”/”Ignore” text) to disable the input rule.
Additionally, with the middle mouse button (MMB) click on the “Only” prompt text you can reverse the filter rule.
Buttons
\n
) character.Checkboxes
innerText
), not only from a
tag elements.a
tags.Extra checkboxes
hostname
.http://
with https://
.(
,)
,[
,]
characters.urls
variable.Also in the extra settings you can enable the tags feature. It allows to filter URLs more convenient by hostname tags.
Selector
body
selector.