Skip to content

Instantly share code, notes, and snippets.

@noromanba
Last active December 27, 2016 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noromanba/596548da45f0719d286bffca775d5908 to your computer and use it in GitHub Desktop.
Save noromanba/596548da45f0719d286bffca775d5908 to your computer and use it in GitHub Desktop.
dump Chrome Extensions list w/ Markdown-like syntax on chrome://extensions*
// @description dump Chrome Extensions list w/ Markdown-like syntax on chrome://extensions*
// @license MIT License https://opensource.org/licenses/MIT
// @author noromanba http://noromanba.flavors.me
// @homepage https://gist.github.com/noromanba/596548da45f0719d286bffca775d5908
// use Devtools Console on chrome://extensions-frame/' or chrome://* (needs x2 exec)
(() => {
const EXT_PAGE = 'chrome://extensions-frame/';
if (location.href !== EXT_PAGE) {
location.href = EXT_PAGE;
return;
}
console.dir(Array.from(document.querySelectorAll([
'.extension-list-item-wrapper[id]'
]), ext => {
let active = ext.classList.contains('inactive-extension') ? '[ ]' : '[x]';
if (ext.querySelector([
'input[type="checkbox"][focus-type="incognito"]:checked'
])) {
active += ' [i]';
}
const detail = ext.querySelector('.extension-details');
const title = detail.querySelector('.extension-title').textContent;
const version = detail.querySelector('.extension-version').textContent;
const url = 'https://chrome.google.com/webstore/detail/' + ext.id;
return `${title} ${version} ${active}
${url}
`;
}).join('\n'));
})();
/* ->
AutoPagerize 0.3.9 [ ]
https://chrome.google.com/webstore/detail/igiofjhpmpihnifddepnpngfjhkfenbp
AutoPatchWork 1.9.9 [x]
https://chrome.google.com/webstore/detail/aeolcjbaammbkgaiagooljfdepnjmkfd
...
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment