Surface insights from your Roam database for the current web page.
Roam Backlinks Extension
To get started, install the extension and pin it to your toolbar.
Now, start browsing your Roam database using Chrome to build up an index of backlinks. Once you've visited some Roam pages, try opening one of the external links (not a [[Roam Page]]) in a new tab in Chrome and you should see a small box with the number 1 appear on the extension Roam Backlinks icon. This means that there is 1 backlink for the current page.
Clicking on the Roam Backlinks icon in the toolbar will bring up a popup window which shows you the backlinks and allows you to click on them.
If Roam is still open in another tab, clicking the backlinks will automatically open them in that tab. This is especially useful if you have a computer screen that is large enough to fit two browser windows side-by-side. If you want to force a backlink to open in a new tab you can use the middle button of your mouse to click it.
Thanks to some ingenious code by @ViktorTabori, you can also shift+click to open pages in the Roam sidebar if Roam is already open in a tab.
PRIVACY INFO: This extension indexes your Roam database one page at a time as you visit each page and stores all the data locally so that none of your Roam database ever leaves your computer. If you uninstall the extension, the index will be completely deleted. The extension uses Google Analytics to collect anonymous aggregate statistics about how many people are using the extension. No private data ever leaves your computer.
Read more
Now, start browsing your Roam database using Chrome to build up an index of backlinks. Once you've visited some Roam pages, try opening one of the external links (not a [[Roam Page]]) in a new tab in Chrome and you should see a small box with the number 1 appear on the extension Roam Backlinks icon. This means that there is 1 backlink for the current page.
Clicking on the Roam Backlinks icon in the toolbar will bring up a popup window which shows you the backlinks and allows you to click on them.
If Roam is still open in another tab, clicking the backlinks will automatically open them in that tab. This is especially useful if you have a computer screen that is large enough to fit two browser windows side-by-side. If you want to force a backlink to open in a new tab you can use the middle button of your mouse to click it.
Thanks to some ingenious code by @ViktorTabori, you can also shift+click to open pages in the Roam sidebar if Roam is already open in a tab.
PRIVACY INFO: This extension indexes your Roam database one page at a time as you visit each page and stores all the data locally so that none of your Roam database ever leaves your computer. If you uninstall the extension, the index will be completely deleted. The extension uses Google Analytics to collect anonymous aggregate statistics about how many people are using the extension. No private data ever leaves your computer.
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx",\t"name": "Roam Backlinks",\t"description": "Surface insights from your Roam database for the current web page.",\t"version": "0.1",\t"manifest_version": 2,\t"icons": { "16": "icon16.png",\t\t"48": "icon48.png",\t "128": "icon128.png" },\t"content_scripts": [{\t\t"matches": [ "https://roamresearch.com/*" ],\t\t"js": [\t\t\t"content.js",\t\t\t"utils.js"]\t}],\t"content_security_policy": "script-src 'self' https://www.google-analytics.com https://ssl.google-analytics.com https://www.googletagmanager.com/; object-src 'self'",\t"permissions": [\t\t"tabs",\t\t"activeTab",\t\t"storage",\t\t"unlimitedStorage"\t ],\t "background": {\t\t"scripts": [\t\t\t"background.js",\t\t\t"utils.js"],\t\t"persistent": false\t },\t "browser_action": {\t\t"default_title": "Roam Backlinks",\t\t"default_popup": "popup.html"\t }}
Read more