├── www ├── project.css ├── project_nav.html ├── head.txt ├── index.html ├── footer.html └── local.conf ├── development ├── builds │ ├── user-agent-switcher.xpi │ └── user-agent-switcher-test.xpi ├── source │ ├── content_common │ │ └── useragentswitcher │ │ │ ├── logo.png │ │ │ ├── options │ │ │ ├── dialogs │ │ │ │ ├── dialog.css │ │ │ │ ├── folder.js │ │ │ │ ├── folder.xul │ │ │ │ └── useragent.xul │ │ │ ├── options.css │ │ │ └── options.xul │ │ │ ├── common │ │ │ ├── log.js │ │ │ ├── array.js │ │ │ ├── string.js │ │ │ ├── stringbundle.js │ │ │ ├── dom.js │ │ │ └── preferences.js │ │ │ ├── about │ │ │ ├── about.js │ │ │ ├── about.css │ │ │ └── about.xul │ │ │ ├── contents.rdf │ │ │ ├── xml │ │ │ ├── useragents.xml │ │ │ └── export.js │ │ │ ├── useragentswitcher.xul │ │ │ └── upgrade.js │ ├── skin_common │ │ └── classic │ │ │ └── useragentswitcher │ │ │ ├── default.png │ │ │ ├── non-default.png │ │ │ ├── useragentswitcher.css │ │ │ └── contents.rdf │ └── locale_common │ │ ├── en-US │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── da-DK │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── hu-HU │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── pl-PL │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── ru-RU │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── fy-NL │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── es-AR │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── he-IL │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── ja-JP │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── ko-KR │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── sk-SK │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── zh-CN │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── fi-FI │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── it-IT │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── nl-NL │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── de-DE │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── es-ES │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── lt-LT │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── pt-BR │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── zh-TW │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── uk-UA │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── be-BY │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── ro-RO │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── eu-ES │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── fr-FR │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── mk-MK │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── pt-PT │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ ├── tr-TR │ │ └── useragentswitcher │ │ │ ├── contents.rdf │ │ │ ├── useragentswitcher.properties │ │ │ └── useragentswitcher.dtd │ │ └── cs-CZ │ │ └── useragentswitcher │ │ ├── contents.rdf │ │ ├── useragentswitcher.properties │ │ └── useragentswitcher.dtd ├── config.properties ├── chrome.manifest ├── common_install.rdf ├── common_install.js └── build.xml └── readme.md /www/project.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /www/project_nav.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /development/builds/user-agent-switcher.xpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrispederick/user-agent-switcher/HEAD/development/builds/user-agent-switcher.xpi -------------------------------------------------------------------------------- /development/builds/user-agent-switcher-test.xpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrispederick/user-agent-switcher/HEAD/development/builds/user-agent-switcher-test.xpi -------------------------------------------------------------------------------- /www/head.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /development/source/content_common/useragentswitcher/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrispederick/user-agent-switcher/HEAD/development/source/content_common/useragentswitcher/logo.png -------------------------------------------------------------------------------- /development/source/skin_common/classic/useragentswitcher/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrispederick/user-agent-switcher/HEAD/development/source/skin_common/classic/useragentswitcher/default.png -------------------------------------------------------------------------------- /development/source/skin_common/classic/useragentswitcher/non-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrispederick/user-agent-switcher/HEAD/development/source/skin_common/classic/useragentswitcher/non-default.png -------------------------------------------------------------------------------- /www/index.html: -------------------------------------------------------------------------------- 1 |

User Agent Switcher

2 |

3 | Visit 4 | chrispederick.com 5 | for more information... 6 |

7 | -------------------------------------------------------------------------------- /development/source/content_common/useragentswitcher/options/dialogs/dialog.css: -------------------------------------------------------------------------------- 1 | @import url("chrome://global/skin/"); 2 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 3 | 4 | #useragentswitcher-dialog 5 | { 6 | width: 45em; 7 | } 8 | -------------------------------------------------------------------------------- /www/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

4 | This page was last updated on . 5 |
6 | Copyright 7 | © 8 | . 9 | All rights reserved. 10 |

11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /development/config.properties: -------------------------------------------------------------------------------- 1 | description=Adds a menu and a toolbar button to switch the user agent of a browser. 2 | home.page=http://chrispederick.com/work/user-agent-switcher/ 3 | firefox.max.version=4.0.* 4 | flock.max.version=2.6.* 5 | name=User Agent Switcher 6 | seamonkey.max.version=2.0.* 7 | songbird.max.version=1.8.* 8 | user.agents.page=http://chrispederick.com/work/user-agent-switcher/user-agents/ 9 | version=0.7.3 -------------------------------------------------------------------------------- /development/source/content_common/useragentswitcher/options/options.css: -------------------------------------------------------------------------------- 1 | @import url("chrome://global/skin/"); 2 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 3 | 4 | #useragentswitcher-options-dialog 5 | { 6 | height: 40em; 7 | width: 45em; 8 | } 9 | 10 | .url 11 | { 12 | color: #0000ff; 13 | cursor: pointer; 14 | text-decoration: underline; 15 | } 16 | .url:hover 17 | { 18 | color: #0094ff; 19 | } 20 | -------------------------------------------------------------------------------- /development/source/skin_common/classic/useragentswitcher/useragentswitcher.css: -------------------------------------------------------------------------------- 1 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 2 | 3 | /* Main button */ 4 | 5 | #useragentswitcher-button 6 | { 7 | list-style-image: url("chrome://useragentswitcher/skin/default.png"); 8 | -moz-box-orient: horizontal; 9 | } 10 | 11 | #useragentswitcher-button[default="false"] 12 | { 13 | list-style-image: url("chrome://useragentswitcher/skin/non-default.png"); 14 | -moz-box-orient: horizontal; 15 | } 16 | -------------------------------------------------------------------------------- /www/local.conf: -------------------------------------------------------------------------------- 1 | ' . "\n"; 23 | 24 | ?> 25 | -------------------------------------------------------------------------------- /development/source/content_common/useragentswitcher/common/log.js: -------------------------------------------------------------------------------- 1 | // User Agent Switcher log 2 | var UserAgentSwitcherLog = 3 | { 4 | // Logs a message to the console 5 | log: function(identifier, message) 6 | { 7 | // Try to get the console service 8 | try 9 | { 10 | // If the message is not set 11 | if(!message) 12 | { 13 | message = identifier; 14 | identifier = "User Agent Switcher"; 15 | } 16 | 17 | Components.classes["@mozilla.org/consoleservice;1"].getService().QueryInterface(Components.interfaces.nsIConsoleService).logStringMessage(identifier + ": " + message); 18 | } 19 | catch(exception) 20 | { 21 | // Do nothing 22 | } 23 | } 24 | }; -------------------------------------------------------------------------------- /development/source/locale_common/en-US/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/content_common/useragentswitcher/common/array.js: -------------------------------------------------------------------------------- 1 | // User Agent Switcher array 2 | var UserAgentSwitcherArray = 3 | { 4 | // Converts a collection to an array 5 | convertCollectionToArray: function(collection) 6 | { 7 | var array = []; 8 | var collectionLength = collection.length; 9 | 10 | // Loop through the collection 11 | for(var i = 0; i < collectionLength; i++) 12 | { 13 | array.push(collection.item(i)); 14 | } 15 | 16 | return array; 17 | }, 18 | 19 | // Converts an enumeration to an array 20 | convertEnumerationToArray: function(enumeration) 21 | { 22 | var array = []; 23 | 24 | // Loop through the enumeration 25 | while(enumeration.hasMoreElements()) 26 | { 27 | array.push(enumeration.getNext()); 28 | } 29 | 30 | return array; 31 | } 32 | }; 33 | -------------------------------------------------------------------------------- /development/source/locale_common/da-DK/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/hu-HU/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/pl-PL/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/ru-RU/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/fy-NL/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/es-AR/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/he-IL/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/ja-JP/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/ko-KR/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/sk-SK/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/zh-CN/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/fi-FI/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/it-IT/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/nl-NL/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /development/source/locale_common/de-DE/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /development/source/locale_common/es-ES/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/lt-LT/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/pt-BR/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/zh-TW/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/uk-UA/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/be-BY/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/ro-RO/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/eu-ES/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/fr-FR/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /development/source/locale_common/mk-MK/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /development/source/locale_common/pt-PT/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/tr-TR/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /development/source/content_common/useragentswitcher/about/about.js: -------------------------------------------------------------------------------- 1 | // User Agent Switcher about 2 | var UserAgentSwitcherAbout = 3 | { 4 | // Opens the URL in a new tab 5 | openURL: function(urlElement) 6 | { 7 | var parentWindow = null; 8 | var url = urlElement.firstChild.nodeValue; 9 | 10 | // If there is a parent window 11 | if(window.opener) 12 | { 13 | // If there is a grand parent window and it has the extension menu 14 | if(window.opener.opener && window.opener.opener.document.getElementById("useragentswitcher-menu")) 15 | { 16 | parentWindow = window.opener.opener; 17 | } 18 | else 19 | { 20 | parentWindow = window.opener; 21 | } 22 | } 23 | 24 | // If a parent window was found 25 | if(parentWindow) 26 | { 27 | parentWindow.getBrowser().selectedTab = parentWindow.getBrowser().addTab(url); 28 | 29 | window.close(); 30 | } 31 | } 32 | }; -------------------------------------------------------------------------------- /development/source/locale_common/cs-CZ/useragentswitcher/contents.rdf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /development/source/locale_common/zh-CN/useragentswitcher/useragentswitcher.properties: -------------------------------------------------------------------------------- 1 | useragentswitcher_addUserAgentTitle=添加使用者识別字串 2 | useragentswitcher_defaultDescription=默认 3 | useragentswitcher_defaultUserAgentTitle=默认使用者识別字串 4 | useragentswitcher_deleteConfirmation=你确认要删除这个使用者识別字串? 5 | useragentswitcher_editUserAgentTitle=编辑使用者识別字串 6 | useragentswitcher_emptyDescription=说明不能为空。 7 | useragentswitcher_exportUserAgentsTitle=导出使用者识別字串 8 | useragentswitcher_importFileFailed=找不到或不能读取'%S'。 9 | useragentswitcher_importParserError='%S'格式不正确。 10 | useragentswitcher_importUserAgentsTitle=导入使用者识別字串 11 | useragentswitcher_reset=重置 12 | useragentswitcher_resetConfirmation=重置确认 13 | useragentswitcher_resetConfirmationMessage=你确认要重置所有使用者识別字串设定(包括使用者识別字串列表)? 14 | useragentswitcher_xmlFileDescription=XML文件 15 | useragentswitcher_userAgentInternetExplorer=Internet Explorer 7 (Windows Vista) 16 | useragentswitcher_userAgentNetscape=Netscape 4.8 (Windows Vista) 17 | useragentswitcher_userAgentOpera=Opera 9.2 (Windows Vista) 18 | -------------------------------------------------------------------------------- /development/source/locale_common/zh-TW/useragentswitcher/useragentswitcher.properties: -------------------------------------------------------------------------------- 1 | useragentswitcher_addUserAgentTitle=增加使用者識別字串 2 | useragentswitcher_defaultDescription=預設 3 | useragentswitcher_defaultUserAgentTitle=預設的使用者識別字串 4 | useragentswitcher_deleteConfirmation=你確定要刪除這個使用者識別字串? 5 | useragentswitcher_editUserAgentTitle=更改使用者識別字串 6 | useragentswitcher_emptyDescription=說明不可以是空白 7 | useragentswitcher_exportUserAgentsTitle=匯出使用者識別字串 8 | useragentswitcher_importFileFailed=找不到或不能讀取 '%S' 9 | useragentswitcher_importParserError='%S' 不是一個正確格式的檔案 10 | useragentswitcher_importUserAgentsTitle=匯入使用者識別字串 11 | useragentswitcher_reset=重設 12 | useragentswitcher_resetConfirmation=確認重設 13 | useragentswitcher_resetConfirmationMessage=你確定要重設所有使用者識別字串設定 (包括所有使用者識別字串)? 14 | useragentswitcher_xmlFileDescription=XML 檔案 15 | useragentswitcher_userAgentInternetExplorer=Internet Explorer 7 (Windows Vista) 16 | useragentswitcher_userAgentNetscape=Netscape 4.8 (Windows Vista) 17 | useragentswitcher_userAgentOpera=Opera 9.2 (Windows Vista) 18 | -------------------------------------------------------------------------------- /development/source/content_common/useragentswitcher/common/string.js: -------------------------------------------------------------------------------- 1 | // User Agent Switcher string 2 | var UserAgentSwitcherString = 3 | { 4 | // Tests if a string ends with the given string 5 | endsWith: function(string, endsWithString) 6 | { 7 | return (string.substr(string.length - endsWithString.length) == endsWithString); 8 | }, 9 | 10 | // Removes a substring from a string 11 | removeSubstring: function(string, substring) 12 | { 13 | // If the strings are not empty 14 | if(string && substring) 15 | { 16 | var substringStart = string.indexOf(substring); 17 | 18 | // If the substring is found in the string 19 | if(substring && substringStart != -1) 20 | { 21 | return string.substring(0, substringStart) + string.substring(substringStart + substring.length, string.length); 22 | } 23 | 24 | return string; 25 | } 26 | 27 | return ""; 28 | }, 29 | 30 | // Trims leading and trailing spaces from a string 31 | trim: function(string) 32 | { 33 | return string.replace(/^\s+|\s+$/g, ""); 34 | } 35 | }; -------------------------------------------------------------------------------- /development/source/locale_common/ko-KR/useragentswitcher/useragentswitcher.properties: -------------------------------------------------------------------------------- 1 | useragentswitcher_addUserAgentTitle=User Agent 추가 2 | useragentswitcher_defaultDescription=기본값 3 | useragentswitcher_defaultUserAgentTitle=기본 User Agent 4 | useragentswitcher_deleteConfirmation=선택된 User Agent를 정말로 삭제할까요? 5 | useragentswitcher_editUserAgentTitle=User Agent 수정 6 | useragentswitcher_emptyDescription=설명은 필히 입력해야 합니다. 7 | useragentswitcher_exportUserAgentsTitle=User Agent 가져오기 8 | useragentswitcher_importFileFailed='%S' 파일을 찾을 수 없거나 읽을 수 없습니다. 9 | useragentswitcher_importParserError='%S' 파일은 형식이 올바르지 않습니다. 10 | useragentswitcher_importUserAgentsTitle=User Agents 가져오기 11 | useragentswitcher_reset=초기화 12 | useragentswitcher_resetConfirmation=Confirmation 초기화 13 | useragentswitcher_resetConfirmationMessage=User Agents 목록을 포함한 모든 설정값을 초기화 하겠습니까? 14 | useragentswitcher_xmlFileDescription=XML 파일 15 | useragentswitcher_userAgentInternetExplorer=Internet Explorer 7 (Windows Vista) 16 | useragentswitcher_userAgentNetscape=Netscape 4.8 (Windows Vista) 17 | useragentswitcher_userAgentOpera=Opera 9.2 (Windows Vista) 18 | -------------------------------------------------------------------------------- /development/source/content_common/useragentswitcher/about/about.css: -------------------------------------------------------------------------------- 1 | @import url("chrome://global/skin/"); 2 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 3 | 4 | description 5 | { 6 | margin-left: 0; 7 | } 8 | 9 | separator, #useragentswitcher-about-dialog 10 | { 11 | margin: 0; 12 | padding: 0; 13 | } 14 | 15 | #useragentswitcher-about-details 16 | { 17 | background-color: #ffffff; 18 | color: #000000; 19 | padding: 0.5em; 20 | } 21 | 22 | #useragentswitcher-about-details hbox 23 | { 24 | background-image: url("chrome://useragentswitcher/content/logo.png"); 25 | background-position: top right; 26 | background-repeat: no-repeat; 27 | min-height: 35px; 28 | padding-right: 35px; 29 | } 30 | 31 | .date 32 | { 33 | color: #999999; 34 | } 35 | 36 | .name 37 | { 38 | font-size: x-large; 39 | padding-right: 0.25em; 40 | } 41 | 42 | .name, .title 43 | { 44 | font-weight: bold; 45 | } 46 | 47 | .title 48 | { 49 | padding-top: 0.25em; 50 | } 51 | 52 | .url 53 | { 54 | color: #0000ff; 55 | cursor: pointer; 56 | text-decoration: underline; 57 | } 58 | .url:hover 59 | { 60 | color: #0094ff; 61 | } 62 | -------------------------------------------------------------------------------- /development/source/locale_common/he-IL/useragentswitcher/useragentswitcher.properties: -------------------------------------------------------------------------------- 1 | useragentswitcher_addUserAgentTitle=הוסף סוכן משתמש 2 | useragentswitcher_defaultDescription=ברירת מחדל 3 | useragentswitcher_defaultUserAgentTitle=סוכן משתמש ברירת המחדל 4 | useragentswitcher_deleteConfirmation=את\ה בטוח שהינך מעוניין למחוק את סוכן המשתמש הזה? 5 | useragentswitcher_editUserAgentTitle=ערוך את סוכן המשתמש 6 | useragentswitcher_emptyDescription=התיאור איננו יכול להשאר ריק. 7 | useragentswitcher_exportUserAgentsTitle=ייצא סוכני משתמשים 8 | useragentswitcher_importFileFailed=הקובץ '%S' לא נמצא או לא קריא. 9 | useragentswitcher_importParserError=הקובץ '%S' לא בפורמט הנכון. 10 | useragentswitcher_importUserAgentsTitle=ייבא סוכני משתמשים 11 | useragentswitcher_reset=אפס 12 | useragentswitcher_resetConfirmation=אפס אישור 13 | useragentswitcher_resetConfirmationMessage=את\ה בטוח\ה שהינך מעוניין\ת לאפס את כל האפשרויות של User Agent Switcher, כולל רשימת סוכני המשתמשים? 14 | useragentswitcher_xmlFileDescription=קבצי XML 15 | useragentswitcher_userAgentInternetExplorer=אינטרנט אקספלורר 7 (חלונות ויסטה ) 16 | useragentswitcher_userAgentNetscape=נטסקייפ 4.8 (חלונות ויסטה ) 17 | useragentswitcher_userAgentOpera=אופרה 9.2 (חלונות ויסטה ) 18 | -------------------------------------------------------------------------------- /development/source/content_common/useragentswitcher/about/about.xul: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | 11 |