
Window Session Opening Utility bởi Dennis V.
This extension offers two events for easily creating new windows using the contextualIdentities and cookies API. The primary intended use of this extension is to easy work with mutliple windows in development enviroments.
Bạn sẽ cần Firefox để sử dụng tiện ích mở rộng này
Siêu dữ liệu mở rộng
Về tiện ích mở rộng này
The extension offers two events that can be thrown in the browser with javascript coding.
OpenWindowWithContainerFirefoxExtension
Description: Opens a URL in a new window using a specific contextual identity
Parameter: The event expect a paramter object. The following values can be specified:
- debug: Enables the printing of debug messages in the background extension job
- context:
- url: The URL that should be opened (Mandatory)
- context: The context that should be used for the new window (optional, if not specified a context based on a random number will be generated)
-
Example:
var event = new CustomEvent("OpenWindowWithContainerFirefoxExtension", {
detail: {
debug: true,
context:{
url: https://www.google.com/,
context: "MyNewWindowContext"
}
},
});
window.dispatchEvent(event);
SetCookieFirefoxExtension
Description: Sets a cookie for a given cookieStoreId
Parameter: The event expect a paramter object. The following values can be specified:
- debug: Enables the printing of debug messages in the background extension job
- cookie:
- value: The value of the cookie
- url: The URL for which the cookie is valid
- name: The name of the cookie
- storage: The CookieStoreID
Example:
var event = new CustomEvent("SetCookieFirefoxExtension", {
detail: {
debug: true,
context:{
value: "My Cookie Value",
url: "https://www.google.com/",
name: "My Cookie",
storage: "firefox-default"
}
}
});
window.dispatchEvent(event);
OpenWindowWithContainerFirefoxExtension
Description: Opens a URL in a new window using a specific contextual identity
Parameter: The event expect a paramter object. The following values can be specified:
- debug: Enables the printing of debug messages in the background extension job
- context:
- url: The URL that should be opened (Mandatory)
- context: The context that should be used for the new window (optional, if not specified a context based on a random number will be generated)
-
Example:
var event = new CustomEvent("OpenWindowWithContainerFirefoxExtension", {
detail: {
debug: true,
context:{
url: https://www.google.com/,
context: "MyNewWindowContext"
}
},
});
window.dispatchEvent(event);
SetCookieFirefoxExtension
Description: Sets a cookie for a given cookieStoreId
Parameter: The event expect a paramter object. The following values can be specified:
- debug: Enables the printing of debug messages in the background extension job
- cookie:
- value: The value of the cookie
- url: The URL for which the cookie is valid
- name: The name of the cookie
- storage: The CookieStoreID
Example:
var event = new CustomEvent("SetCookieFirefoxExtension", {
detail: {
debug: true,
context:{
value: "My Cookie Value",
url: "https://www.google.com/",
name: "My Cookie",
storage: "firefox-default"
}
}
});
window.dispatchEvent(event);
Xếp hạng trải nghiệm của bạn
Quyền hạnTìm hiểu thêm
Tiện ích này cần:
- Truy cập dữ liệu của bạn trên mọi trang web
Tiện ích này cũng có thể yêu cầu:
- Truy cập dữ liệu của bạn trên mọi trang web
Thêm thông tin
- Phiên bản
- 1.0
- Kích cỡ
- 9,19 KB
- Cập nhật gần nhất
- một năm trước (2 Thg 01 2024)
- Thể loại có liên quan
- Giấy phép
- Mozilla Public License 2.0
- Lịch sử các phiên bản
Thêm vào bộ sưu tập
Tiện ích mở rộng khác của Dennis V.
- Chưa có xếp hạng nào
- Chưa có xếp hạng nào
- Chưa có xếp hạng nào
- Chưa có xếp hạng nào
- Chưa có xếp hạng nào
- Chưa có xếp hạng nào