// ==UserScript== // @name Cookie Injector // @namespace BearsWithWings // @description Inject Cookie String From Wireshark Dump Into Any Webpage // @version 2.0 // @include * // @exclude https?://gmail.com/* // @exclude https?://mail.google.com/* // ==/UserScript== //Anonomyous function wrapper (function (){ //Ensure that there is only one instance of the cookieInjector Object if(typeof this["cookieInjector"] == "undefined"){ cookieInjector = {}; } //Make a local refrence to the cookie Injector object to save on typing var cI = cookieInjector; //Make the cookieInjector object globally viewable unsafeWindow['cookieInjector'] = cI; /** * Cookie Injector createDiv function * Sets up the cookie injector dialogue */ cI.createDiv = function(){ //Create the DIV to contain the Dialog cI.dialog = document.createElement('div'); cI.dialog.id = "cookieInjectorDiv"; cI.dialog.innerHTML = "