- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
// Saves options to localStorage.
function save_options() {
if(document.getElementById("rate").checked == true) {localStorage["rate"] = 1;}
else{localStorage["rate"] = 0;}
if(document.getElementById("transparentmenu").checked == true) {localStorage["transparentmenu"] = 1;}
else{localStorage["transparentmenu"] = 0;}
if(document.getElementById("sidebarfix").checked == true) {localStorage["sidebarfix"] = 1;}
else{localStorage["sidebarfix"] = 0;}
if(document.getElementById("menufix").checked == true) {localStorage["menufix"] = 1;}
else{localStorage["menufix"] = 0;}
if(document.getElementById("away").checked == true) {localStorage["away"] = 1;}
else{localStorage["away"] = 0;}
if(document.getElementById("music").checked == true) {localStorage["music"] = 1;}
else{localStorage["music"] = 0;}
if(document.getElementById("smiles").checked == true) {localStorage["smiles"] = 1;}
else{localStorage["smiles"] = 0;}
if(document.getElementById("chat").checked == true) {localStorage["chat"] = 1;}
else{localStorage["chat"] = 0;}
if(document.getElementById("wide").checked == true) {localStorage["wide"] = 1;}
else{localStorage["wide"] = 0;}
if(document.getElementById("oblivionbook").checked == true) {localStorage["oblivionbook"] = 1;}
else{localStorage["oblivionbook"] = 0;}
if(document.getElementById("darkblue").checked == true) {localStorage["darkblue"] = 1;}
else{localStorage["darkblue"] = 0;}
if(document.getElementById("mailcollor").checked == true) {localStorage["mailcollor"] = 1;}
else{localStorage["mailcollor"] = 0;}
if(document.getElementById("savetext").checked == true) {localStorage["savetext"] = 1;}
else{localStorage["savetext"] = 0;}
if(document.getElementById("groupsalign").checked == true) {localStorage["groupsalign"] = 1;}
else{localStorage["groupsalign"] = 0;}
if(document.getElementById("vkcom").checked == true) {localStorage["vkcom"] = 1;}
else{localStorage["vkcom"] = 0;}
if(document.getElementById("messege").checked == true) {localStorage["messege"] = 1;}
else{localStorage["messege"] = 0;}
if(document.getElementById("ads").checked == true) {localStorage["ads"] = 1;}
else{localStorage["ads"] = 0;}
if(document.getElementById("lmessege").checked == true) {localStorage["lmessege"] = 1;}
else{localStorage["lmessege"] = 0;}
if(document.getElementById("video").checked == true) {localStorage["video"] = 1;}
else{localStorage["video"] = 0;}
if(document.getElementById("stylewow").checked == true) {localStorage["stylewow"] = 1;}
else{localStorage["stylewow"] = 0;}
if(document.getElementById("rayman").checked == true) {localStorage["rayman"] = 1;}
else{localStorage["rayman"] = 0;}
if(document.getElementById("styletf2").checked == true) {localStorage["styletf2"] = 1;}
else{localStorage["styletf2"] = 0;}
if(document.getElementById("stylestandard").checked == true) {localStorage["stylestandard"] = 1;}
else{localStorage["stylestandard"] = 0;}
if(document.getElementById("stylewinter").checked == true) {localStorage["stylewinter"] = 1;}
else{localStorage["stylewinter"] = 0;}
if(document.getElementById("stylewide").checked == true) {localStorage["stylewide"] = 1;}
else{localStorage["stylewide"] = 0;}
if(document.getElementById("styledarkforest").checked == true) {localStorage["styledarkforest"] = 1;}
else{localStorage["styledarkforest"] = 0;}
if(document.getElementById("stylegray").checked == true) {localStorage["stylegray"] = 1;}
else{localStorage["stylegray"] = 0;}
if(document.getElementById("styledarkkde").checked == true) {localStorage["styledarkkde"] = 1;}
else{localStorage["styledarkkde"] = 0;}
if(document.getElementById("friendsonline").checked == true) {localStorage["friendsonline"] = 1;}
else {localStorage["friendsonline"] = 0;}
if(document.getElementById("removeheader").checked == true) {localStorage["removeheader"] = 1;}
else {localStorage["removeheader"] = 0;}
}
Сохранение настроек в одном расширении для Google Chrome. Восстановление такого же плана...
DooMer 01.09.2010 11:21 # 0
Lure Of Chaos 01.09.2010 13:33 # −1
Скорее уж привязать класс = )
DooMer 01.09.2010 13:37 # +4
Lure Of Chaos 01.09.2010 13:39 # −1
hybroid 01.09.2010 14:18 # 0
Lure Of Chaos 01.09.2010 14:44 # −1
wwwguru 02.09.2010 05:35 # +1
Lure Of Chaos 02.09.2010 11:53 # −1
Мистер Хэнки 02.09.2010 21:25 # 0