mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-06-01 15:28:24 -04:00
Add a bookmarklet
The bookmarklet lets you quickly open the Add page with the URL already populated in the URLs box.
This commit is contained in:
parent
b18bbf8874
commit
8d3295458c
2 changed files with 17 additions and 0 deletions
|
@ -49,6 +49,12 @@
|
|||
<small>(it's safe to leave this page, adding will continue in the background)</small>
|
||||
</div>
|
||||
</center>
|
||||
{% if absolute_add_path %}
|
||||
<center id="bookmarklet">
|
||||
<p>Bookmark this link to quickly add to your archive:
|
||||
<a href="javascript:void(window.open('{{ absolute_add_path }}?url='+document.location.href));">Add to ArchiveBox</a></p>
|
||||
</center>
|
||||
{% endif %}
|
||||
<script>
|
||||
document.getElementById('add-form').addEventListener('submit', function(event) {
|
||||
setTimeout(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue