Developer Cookie

Set a cookie to tell your websites that you're a developer. Use with Google Analytics to avoid tracking internal traffic.

Developer Cookie là gì?

Developer Cookie là một tiện ích mở rộng Chrome được phát triển bởi seebigswork, và tính năng chính của nó là "Set a cookie to tell your websites that you're a developer. Use with Google Analytics to avoid tracking internal traffic.".

Ảnh Chụp Màn Hình của Tiện Ích Mở Rộng

screenshot
screenshot
screenshot
screenshot

Tải xuống tệp CRX của tiện ích mở rộng Developer Cookie

Tải xuống các tệp mở rộng Developer Cookie dưới định dạng crx, cài đặt các tiện ích mở rộng Chrome bằng tay trong trình duyệt hoặc chia sẻ các tệp crx với bạn bè để dễ dàng cài đặt các tiện ích mở rộng Chrome.

Hướng Dẫn Sử Dụng Tiện Ích Mở Rộng

                        From any website, simply click on the Developer Cookie Icon in your browser to set yourself as a developer/team member for that domain. Green means that you are a developer and that cookies will be set for this domain, gray means you are not. This preference is saved and this extension will try to always keep a cookie set for that domain.

The "name" and "value" of the cookie that gets created can (and should) be customized to be unique to you or your organization.

A list of all of your active domains can be found on the Options page, where domains can be easily added or removed as needed. There is also a button here to clear any cookies that have been saved on your device. Right-click the Developer Cookie Icon in your browser and select "Options" to access this page any time. Alternatively, you can find a link to this page in your Extensions manager.


••• How to Use •••

In your scripts, check for this cookie before performing certain actions.

JavaScript example:
- - - - - - - - - - - - - - - - - - - - - - - - - - -
 var devCookie = "ChromeDeveloperCookie=123";
 if (document.cookie.indexOf(devCookie) !== -1) {
    // I am a developer
    // Show control panel, debug info, etc.
 } else {
    // I am NOT a developer
    // Insert Google Analytics code here, etc.
 }
- - - - - - - - - - - - - - - - - - - - - - - - - - -

PHP example:
- - - - - - - - - - - - - - - - - - - - - - - - - - -
 $devCookie = @$_COOKIE["ChromeDeveloperCookie"];
 if ($devCookie === "123") {
     // I am a developer
     // Show control panel, debug info, etc.
 } else {
     // I am NOT a developer
     // Insert Google Analytics code here, etc.
 }
- - - - - - - - - - - - - - - - - - - - - - - - - - -


••• Notes About Cookies •••

On your next visit to any of the domains in your list, a new developer cookie will be created if one does not already exist (assuming this extension is enabled). New cookies are set to expire after 30 days. To keep your cookies up-to-date, a check is done when this extension is started (often at the opening of a new browsing session) and the expiration date of all active domains is renewed. However, for many reasons it is possible that even with this extension enabled you could load the page as a public user (once every 30 days or as often as your cookies are cleared). These cookies are very helpful, but please do not rely on this method of identification to be bulletproof.

Activating a domain applies to all pages on that domain, so clicking the icon while viewing any page on "http://www.example.com/" will cause your cookie to be set for all of the following:

- http://www.example.com/page1.html
- http://www.example.com/subfolder/page2.html
- http://example.com/page1.html
- and so on...

However, cookies set for "example.com" will NOT be present on "beta.example.com" and vice versa. Each new sub-domain can be added or removed with a single click.

WARNING: This method of identification is not secure and should not be used to replace a user log-in system. Do not display secure data based on this cookie.                    

Thông Tin Cơ Bản về Tiện Ích Mở Rộng

Tên Developer Cookie Developer Cookie
ID lknhpplgahpbindnnocglcjonpahfikn
URL Chính Thức https://chromewebstore.google.com/detail/developer-cookie/lknhpplgahpbindnnocglcjonpahfikn
Mô tả Set a cookie to tell your websites that you're a developer. Use with Google Analytics to avoid tracking internal traffic.
Kích Thước Tệp 36.39 KB
Số Lần Cài Đặt 936
Phiên Bản Hiện Tại 1.0.4
Cập Nhật Lần Cuối 2014-06-19
Ngày Phát Hành 2014-06-19
Đánh Giá 5.00/5 Tổng số 9 Đánh Giá
Nhà Phát Triển seebigswork
Loại Thanh Toán free
Ngôn Ngữ Được Hỗ Trợ en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "manifest_version": 2,
    "name": "Developer Cookie",
    "short_name": "DevCookie",
    "description": "Set a cookie to tell your websites that you're a developer. Use with Google Analytics to avoid tracking internal traffic.",
    "version": "1.0.4",
    "permissions": [
        "storage",
        "webNavigation",
        "tabs",
        "cookies",
        "http:\/\/*\/*",
        "https:\/\/*\/*"
    ],
    "icons": {
        "16": "images\/icon16.png",
        "19": "images\/icon19.png",
        "48": "images\/icon48.png",
        "128": "images\/icon128.png"
    },
    "options_page": "options.html",
    "browser_action": {
        "default_icon": "images\/icon19-gray.png",
        "default_title": "Set Developer Cookie"
    },
    "background": {
        "scripts": [
            "background.js"
        ],
        "persistent": false
    }
}