No replies
lifemare
Offline
newbie
Last seen: 6 years 22 weeks ago
Timezone: GMT+1
Joined: 2005-03-11
Posts: 6
Points: 2

Hope you can help with this, since i can't get any decent support from the firefox extension developer[s].
I'm using Colour That Site! to remake webpage layouts. I've used it for a long time without any issues, but it has a minor inconvenience: it doesn't allow you to use the same script for different domains, or different scripts for the same domain. Which means the website i use most often - google - is the hardest to mod: i can't apply the same script to its many layouts (shopping, maps, images, etc) nor to the many domains i use for different search criteria(.co.uk, .com, .pt).

Here's the 3 scripts i did separately for the 3 google layouts i mentioned:

Style 'Google Dark (imgs)' for google.co.uk
 
The following part is for use by the Firefox Add-on 'Colour That Site!'
See: <a href="https://addons.mozilla.org/en-GB/firefox/addon/200730/
ColourThatSite_Export" rel="nofollow">https://addons.mozilla.org/en-GB/firefox/addon/200730/
ColourThatSite_Export</a>(1,0.15)[
{
 "origurl": "http://www.google.co.uk/search?q=Calligraphy+Nib+Set&safe=off&hl=en&gbv=2&biw=1440&bih=697&site=webhp&tbs=vw:l,p_ord:p&tbm=shop&ei=NGvPUcDeHIPFPbTUgYgH&ved=0CEYQuw0oAQ",
 "name": "Google Dark (imgs)",
 "urlmatchstr": "@-moz-document domain(google.co.uk)",
 "scope": "domain",
 "setup": {},
 "handleBitmap": {},
 "changedate": "2013-06-30 01:26:22",
 "process": {
  "0": {
   "lumBg": -0.86
  },
  "1": {
   "colArr": {
    "0": {
     "colix": {
      "0": "#DD4B39"
     }}}},
  "2": {
   "kind": 0,
   "hueFg": 0.9166666666666666,
   "satFg": -0.56,
   "lumFg": 0.36,
   "colArr": {
    "0": {
     "colix": {
      "0": "#1122CC"
     }}}},
  "3": {
   "kind": 0,
   "hueFg": 0.8194444444444444,
   "satFg": -0.84,
   "lumFg": -0.02,
   "colArr": {
    "0": {
     "colix": {
      "0": "#6611CC"
     }}}},
  "4": {
   "kind": 0,
   "lumFg": 0.64
  },
  "5": {
   "kind": 0,
   "lumFg": 0.42,
   "colArr": {
    "0": {
     "colix": {
      "0": "#444444"
     }}}},
  "6": {
   "kind": 1,
   "colArr": {
    "1": {
     "colix": {
      "0": "#357AE8"
     }}}},
  "7": {
   "kind": 1,
   "colArr": {
    "1": {
     "colix": {
      "0": "#4D90FE"
     }}}},
  "8": {
   "kind": 1,
   "colArr": {
    "2": {
     "colix": {
      "0": "#4D90FE#4787ED"
     }}}},
  "9": {
   "kind": 1,
   "colArr": {
    "2": {
     "colix": {
      "0": "#4D90FE#357AE8"
     }}}},
  "10": {
   "kind": 0,
   "lumFg": 0.52,
   "colArr": {
    "0": {
     "colix": {
      "0": "#000000"
     }}}},
  "11": {
   "kind": 1,
   "satBg": -1,
   "lumBg": -0.89,
   "colArr": {
    "1": {
     "colix": {
      "0": "#FFF7EC"
     }}}},
  "12": {
   "kind": 0,
   "hueFg": 0.18333333333333332,
   "satFg": -0.51,
   "lumFg": 0.09,
   "colArr": {
    "0": {
     "colix": {
      "0": "#009933"
     }}}}}}
]ColourThatSite_Export

Style 'Google Dark (shop)' for google.co.uk
 
The following part is for use by the Firefox Add-on 'Colour That Site!'
See: <a href="https://addons.mozilla.org/en-GB/firefox/addon/200730/
ColourThatSite_Export" rel="nofollow">https://addons.mozilla.org/en-GB/firefox/addon/200730/
ColourThatSite_Export</a>(1,0.15)[
{
 "origurl": "http://www.google.co.uk/search?um=1&safe=off&hl=en&gbv=2&biw=1112&bih=697&tbm=isch&sa=1&q=23r2t+erd&oq=23r2t+erd&gs_l=img.3...1349.1756.0.2448.4.4.0.0.0.0.185.499.1j3.4.0...0.0...1c.1.18.img.MH-sxcyDy_o",
 "name": "Google Dark (shop)",
 "urlmatchstr": "@-moz-document domain(google.co.uk)",
 "scope": "domain",
 "setup": {},
 "handleBitmap": {},
 "changedate": "2013-07-01 03:53:55",
 "process": {
  "0": {},
  "1": {},
  "2": {
   "kind": 1,
   "lumBg": -0.92,
   "colArr": {
    "1": {
     "colix": {
      "0": "#FFFFFF"
     }}}},
  "3": {
   "kind": 1,
   "lumBg": -0.85,
   "colArr": {
    "1": {
     "colix": {
      "0": "#F1F1F1"
     }}}},
  "4": {
   "kind": 1,
   "lumBg": -0.93,
   "colArr": {
    "1": {
     "colix": {
      "0": "#F2F2F2"
     }}}},
  "5": {
   "kind": 0,
   "lumFg": 0.35,
   "colArr": {
    "0": {
     "colix": {
      "0": "#555555"
     }}}}}}
]ColourThatSite_Export

Style 'Google Dark (maps)' for google.co.uk
 
The following part is for use by the Firefox Add-on 'Colour That Site!'
See: <a href="https://addons.mozilla.org/en-GB/firefox/addon/200730/
ColourThatSite_Export" rel="nofollow">https://addons.mozilla.org/en-GB/firefox/addon/200730/
ColourThatSite_Export</a>(1,0.15)[
{
 "origurl": "https://maps.google.co.uk/maps?hl=en-GB&q=sgdhjf&gbv=2&ie=UTF-8&ei=p3rPUda5C4KWO6-SgcAG&ved=0CAoQ_AUoAg",
 "name": "Google Dark (maps)",
 "urlmatchstr": "@-moz-document domain(google.co.uk)",
 "scope": "domain",
 "setup": {},
 "handleBitmap": {},
 "changedate": "2013-06-30 01:26:33",
 "process": {
  "0": {},
  "1": {},
  "2": {
   "kind": 1,
   "lumBg": -0.86,
   "colArr": {
    "1": {
     "colix": {
      "0": "#FFFFFF"
     }}}},
  "3": {
   "kind": 0,
   "lumFg": 0.66,
   "colArr": {
    "0": {
     "colix": {
      "0": "#000000"
     }}}}}}
]ColourThatSite_Export

So the questions are:
- Can you help with this sort of CSS?
- Is there some code i can use that allows for regex like www.google.*
- Or a duplication of code lines that would allow for multiple domains to be added
- Is there a way to merge these 3 scripts together? I've tried several different ways to do this, but the extension won't recognize them afterwards. My very limited knowledge of CSS being the issue here i'm sure...

Thanks in advance!