just text
This commit is contained in:
@@ -2,11 +2,10 @@ const kTST_ID = 'treestyletab@piro.sakura.ne.jp';
|
|||||||
const MY_EXTENSION_NAME = 'tab-groupcolor';
|
const MY_EXTENSION_NAME = 'tab-groupcolor';
|
||||||
|
|
||||||
var changeIcon = function(color) {
|
var changeIcon = function(color) {
|
||||||
var getFavicon = function(){
|
var getFavicon = function() {
|
||||||
var favicon = undefined;
|
var favicon = undefined;
|
||||||
var nodeList = document.getElementsByTagName("link");
|
var nodeList = document.getElementsByTagName("link");
|
||||||
for (var i = 0; i < nodeList.length; i++)
|
for (var i = 0; i < nodeList.length; i++) {
|
||||||
{
|
|
||||||
if ((nodeList[i].getAttribute("rel") == "icon") || (nodeList[i].getAttribute("rel") == "shortcut icon")) {
|
if ((nodeList[i].getAttribute("rel") == "icon") || (nodeList[i].getAttribute("rel") == "shortcut icon")) {
|
||||||
favicon = nodeList[i].getAttribute("href");
|
favicon = nodeList[i].getAttribute("href");
|
||||||
}
|
}
|
||||||
@@ -34,7 +33,7 @@ var changeIcon = function(color) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var generateRandomColor = function(seed) {
|
var generateRandomColor = function(seed) {
|
||||||
var selectColor = function (colorNum, colors){
|
var selectColor = function (colorNum, colors) {
|
||||||
if (colors < 1) {
|
if (colors < 1) {
|
||||||
colors = 1; // defaults to one color - avoid divide by zero
|
colors = 1; // defaults to one color - avoid divide by zero
|
||||||
}
|
}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"description": "color tabs based on their parent.",
|
"description": "Color tabs based on their parent.",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "tab-groupcolor",
|
"name": "Color Tab Group",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"homepage_url": "https://git.e.tern.al/s2/tab-groupcolor",
|
"homepage_url": "https://git.e.tern.al/s2/tab-groupcolor",
|
||||||
"icons": {
|
"icons": {
|
||||||
|
Reference in New Issue
Block a user