Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gschier/aws-favicons
Chrome extension to set the favicons for AWS to the icon for each service
https://github.com/gschier/aws-favicons
Last synced: 9 days ago
JSON representation
Chrome extension to set the favicons for AWS to the icon for each service
- Host: GitHub
- URL: https://github.com/gschier/aws-favicons
- Owner: gschier
- Created: 2016-08-01T19:35:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-15T18:01:11.000Z (over 7 years ago)
- Last Synced: 2024-10-10T05:38:09.178Z (27 days ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```javascript
// Print all the services and the offsets
var services = [];
var items = document.querySelectorAll('.servicesContainer a.service');for (var i = 0; i < items.length; i++) {
var item = items[i];
var href = item.getAttribute('href');
var slug = href.match(/console\.aws\.amazon\.com\/(\w+)\//)[1];
var x = parseInt(item.children[0].style.backgroundPositionX.replace('px', ''), 10);
services.push([x, slug]);
}services = services.sort(function (a, b) {
return a[0] < b[0] ? 1 : -1;
});var js = 'var paths = {\n';
for (var j = 0; j < services.length; j++) {
var service = services[j];
js += '\t"' + service[1] + '": ' + '"/favicons/' + j + '.png"';if (j < services.length - 1) {
js += ',';
}js += '\n';
}
js += '};';
console.log(js);
```