bookmarks

Google Chrome Bookmarks API

╄→尐↘猪︶ㄣ 提交于 2019-12-02 03:39:40
问题 I'm creating a Chrome Extension that can saves and retrieves bookmarks specific only to the user. Bookmarks are stored in the local disk in a form of a file. So I use the bookmarks API of Google Chrome. But somehow their sample code doesn't work for me. function bkmk(){ chrome.bookmarks.create({'parentId': bookmarkBar.id, 'title': 'Extension bookmarks'}, function(newFolder) { alert(newFolder.title); }); } I trigger the function with an onclick event on a button.... Is there something wrong

Emacs quicker bookmark-jump?

女生的网名这么多〃 提交于 2019-12-01 21:29:50
问题 I have most of my bookmarks prefixed by a letter in a way that the first letter almost always uniquely determines the bookmark. This way I can, for instance, jump to my source folder (bookmarked as "s: source") with M-x bookmark-jump RET s RET . I have it on a shortcut, so it's actually ~ s RET . I'd like to get rid of RET in the end, i.e. get M-x bookmark-quick-jump RET s or ~ s to do the aforementioned job. I'd also like it to fall back to the default behavior: to show me all bookmarks that

Get browser bookmarks via javascript

和自甴很熟 提交于 2019-12-01 17:25:01
we want to provide an online bookmark service to our customers. Therefor it would be nice to provide also a function to store local bookmarks into our online tool. This shouldn't be done automatically - the user should confirm this action (only in case someone thinks I want to spy users data). I'm looking for a while now, but I found only that there is no solution, because it's a security risk. Is there a way or already a tool for such a functionality in Javascript? Regards This is completely impossible. You need to write a browser addon. Is there a way or already a tool for such a

How to read PDF bookmarks programmatically

痴心易碎 提交于 2019-12-01 14:19:46
问题 I'm using a PDF converter to access the graphical data within a PDF. Everything works fine, except that I don't get a list of the bookmarks. Is there a command-line app or a C# component that can read a PDF's bookmarks? I found the iText and SharpPDF libraries and I'm currently looking through them. Have you ever done such a thing? 回答1: Try the following code PdfReader pdfReader = new PdfReader(filename); IList<Dictionary<string, object>> bookmarks = SimpleBookmark.GetBookmark(pdfReader); for

Can you access a client's bookmarks using javascript with their permission?

倾然丶 夕夏残阳落幕 提交于 2019-12-01 13:51:29
I want to make it easier for a user to import bookmarks to my server. Is there anyway to automate this process using javascript to obtain the user's bookmarks? I'm assuming the browser has to have this feature - and I'm not sure if any browser does due to the inherent security risk. Nope, that's not possible for security/privacy reasons . The only way is to ask them explicitly through form input to give you but I don't think you want to do that. The browser is obviously aware of their bookmarks, but no, JS cannot access this information - it would be leaking private data as you yourself have

How to client-side detect when a page is bookmarked?

血红的双手。 提交于 2019-12-01 10:58:35
Is it possible to detect when a page is bookmarked within the browser, using Javascript? No, AFAIK this is not possible. Most browsers will not let you detect when a page is bookmarked because this would be another vector for Browser History Mining exploits. If malicious code could tell what websites you've used then, for example: At best, they'd know things about you that you might wish to keep private. They could use that information to target you with embarrassing ads or to target your kids with irresistible ads. They could target you with much more effective phishing attacks -- since they

Using JavaScript to change the URL used when a page is bookmarked

旧巷老猫 提交于 2019-12-01 08:14:15
问题 JavaScript doesn't allow you to update window.location without triggering a reload. While I agree with this policy in principle (it shouldn't be possible to visit my website and have JavaScript change the location bar to read www.yourbankingsite.com ,) I believe that it should be possible to change www.foo.org/index to www.foo.org/help . The only reason I care about this is for bookmarking. I'm working on a photo browser, and when a user is previewing a particular image, I want that image to

Dynamic JQuery Mobile Navigation

吃可爱长大的小学妹 提交于 2019-11-30 14:47:27
I am having an issue with jQuery and how to dynamically process urls. What I would like to do is this if I have a page with links and each one has an id to call a function and an id. How can I change the url for the specific link and have that url work as a bookmark. Below is my code <div data-role="page" id="#listview"> <div data-role="header"> <h1>List</h1> </div> <div data-role="content"> <ul data-role="listview" id="carlist"> <li><a href="#" onclick="cardetails('1')">Acura</a></li> <li><a href="#" onclick="cardetails('2')>Audi</a></li> <li><a href="#" onclick="cardetails('3')>BMW</a></li>

What are the limitations for bookmark names in Microsoft Word?

試著忘記壹切 提交于 2019-11-30 09:14:24
I need to bookmark parts of a document from the name of paragraphs but the name of a paragraph is not always a valid name for a bookmark name. I have not found on Google or MSDN an exhaustive list of limitations for bookmark names. What special characters are forbidden? The only thing I found is that the length must not exceed 40 characters. If you are familiar with regular expressions, I would say it is ^(?!\d)\w{1,40}$ Where \w refers to the range of Unicode word characters, which also contain the underscore and the digits from 0-9. Expressed differently: The name must start with a word

Override the bookmark shortcut (Ctrl+D) function in Chrome

百般思念 提交于 2019-11-30 06:47:08
问题 Is it possible to override the Ctrl + D ? I want to, for example console.log or something, and not add the links to the bookmarks. 回答1: Shortcuts can be overridden using the chrome.commands API. An extension can suggest a default shortcut (eg. Ctrl+D) in the manifest file, but users are free to override this at chrome://extensions/ , as seen below: Usage This API is still under development and only available at the Beta and Dev channels, and the Canary builds More info . It will probably