bookmarks

Chrome Bookmarks API -

荒凉一梦 提交于 2021-02-05 18:57:02
问题 I'm attempting to create a simple example that would just alert the first 5 bookmark titles. I took Google's example code and stripped out the search query to see if I could create a basic way to cycle through all Nodes. The following test code fails my alert test and I do not know why. function dumpBookmarks() { var bookmarkTreeNodes = chrome.bookmarks.getTree( function(bookmarkTreeNodes) { (dumpTreeNodes(bookmarkTreeNodes)); }); } function dumpTreeNodes(bookmarkNodes) { var i; for (i = 0; i

Updating Bookmarks in word with vba

断了今生、忘了曾经 提交于 2021-01-28 07:00:37
问题 The following program attempts to generate a report from a word template. It will generate a new report or open an existing one if it already exists. I would like my users to be able to update the bookmarks in this report but they are being copied over. I found another thread on this site that discussed how to duplicate and replace the bookmarks and inserted it in my code below. The code is running without any errors but the bookmarks don't seem to be updating. When I run the code the second

Convert Firefox bookmarks JSON file to markdown

浪子不回头ぞ 提交于 2020-12-15 00:50:32
问题 Background I want to show part of my bookmarks on my Hugo website. The bookmarks from Firefox can be saved in JSON format, this is the source. The result should represent the nested structure somehow, in a format of a nested list, treeview or accordion. The source files of contents on the website are written in markdown. I want to generate a markdown file from the JSON input. As I searched for possible solutions: treeview or accordion: HTML, CSS and Javascript needed. I could not nest

I got a error “browser is not defined” in the console when I try create Bookmark in chrome

♀尐吖头ヾ 提交于 2020-05-31 03:53:29
问题 I am trying create a bookmarks (on this case in chrome) API/bookmarks/create my code is : function onCreated(node) { console.log(node); } var createBookmark = browser.bookmarks.create({ title: "bookmarks.create() on MDN", url: "https://developer.mozilla.org/Add-ons/WebExtensions/API/bookmarks/create" }); createBookmark.then(onCreated); <!DOCTYPE html> <html> <head> <title>test</title> </head> <body> <p>text example</p> </body> </html> I got this error when I run the code in chrome: Uncaught

Refresh favicon in bookmarks (Firefox)

不羁的心 提交于 2020-05-09 20:29:08
问题 Few days ago, I've changed the favicon of my website: it works well when I open the website: My website is also in my bookmarks, but it shows the old favicon: I already had a look here, but answers did not solved my problem. The solution is probably very simple, but I have not found anything so far. Thanks! 回答1: There is a solution that works on every browser: go to www.yourwebsiteurl.com/favicon.ico (works for localhost as well) force refresh ( Ctrl + F5 for most browsers, or manually)

Refresh favicon in bookmarks (Firefox)

佐手、 提交于 2020-05-09 20:28:51
问题 Few days ago, I've changed the favicon of my website: it works well when I open the website: My website is also in my bookmarks, but it shows the old favicon: I already had a look here, but answers did not solved my problem. The solution is probably very simple, but I have not found anything so far. Thanks! 回答1: There is a solution that works on every browser: go to www.yourwebsiteurl.com/favicon.ico (works for localhost as well) force refresh ( Ctrl + F5 for most browsers, or manually)

Editing Built-in Chrome Bookmarks Manager Folder/Sub-Folder Auto-Expansion?

我的未来我决定 提交于 2020-01-31 05:10:27
问题 When using the the built-in bookmark manager in Chrome there is a navigation pane on the left which contains all the folders/sub-folders containing bookmarks. When one mouseovers a folder while dragging/dropping a folder/bookmark it auto-expands the folder (e.g. shows all sub-folders) after x period of time (400 ms). I'd like to make the variable that controls how long Chrome waits before auto-expanding the folder customizable. I found the code in Chromium that determines how long to wait

Adding a link to a bookmark in MS Word using python docx library

五迷三道 提交于 2020-01-22 02:15:23
问题 I've used the code from an earlier question to create a hyperlink: Adding an hyperlink in MSWord by using python-docx I now want to create a link to a bookmark within the document, rather than an external hyperlink, but can't work out how to do it. Any ideas? 回答1: Never mind. Found a way, thanks to neilbilly at github: feature: Paragraph.add_hyperlink() #74 def add_link(paragraph, link_to, text): hyperlink = docx.oxml.shared.OxmlElement('w:hyperlink') hyperlink.set(docx.oxml.shared.qn('w