您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Google Bar Returns
当前为
// ==UserScript== // @name GoogleBarReturns2017 // @namespace http://jtg.ii.com/ // @version Alpha 0.2.51 // @run-at document-start // @description Google Bar Returns // @author James Griffing // @include /^https?://(?:www|encrypted|ipv[46])\.google\.[^/] // @include http://*.google.*/webhp* // @include http://*.google.*/search* // @include http://*.google.*/ig* // @include http://*.google.*/* // @include http://*.google.*/#* // @include https://*.google.*/webhp* // @include https://*.google.*/search* // @include https://*.google.*/ig?* // @include https://*.google.*/* // @include https://*.google.*/#* // @include https://encrypted.google.*/webhp* // @include https://encrypted.google.*/search* // @include https://encrypted.google.*/ig* // @include https://encrypted.google.*/ // @include https://encrypted.google.*/#* // @include https://www.youtube.*/ // @match https://gf.qytechs.cn/* // @grant GM_addStyle // @grant GM_setValue // @grant GM_getValue // @grant GM_listValues // @grant GM_deleteValue // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js // @noframes // ==/UserScript== //============================required==================== // Spectrum Colorpicker v1.8.0 // https://github.com/bgrins/spectrum // Author: Brian Grinstead // License: MIT (function(factory){"use strict";if(typeof define==='function'&&define.amd){define(['jquery'],factory);} else if(typeof exports=="object"&&typeof module=="object"){module.exports=factory(require('jquery'));} else{factory(jQuery);}})(function($,undefined){"use strict";var defaultOpts={beforeShow:noop,move:noop,change:noop,show:noop,hide:noop,color:false,flat:false,showInput:false,allowEmpty:false,showButtons:true,clickoutFiresChange:true,showInitial:false,showPalette:false,showPaletteOnly:false,hideAfterPaletteSelect:false,togglePaletteOnly:false,showSelectionPalette:true,localStorageKey:false,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:false,className:"",containerClassName:"",replacerClassName:"",showAlpha:false,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:false,offset:null},spectrums=[],IE=!!/msie/i.exec(window.navigator.userAgent),rgbaSupport=(function(){function contains(str,substr){return!!~(''+str).indexOf(substr);} var elem=document.createElement('div');var style=elem.style;style.cssText='background-color:rgba(0,0,0,.5)';return contains(style.backgroundColor,'rgba')||contains(style.backgroundColor,'hsla');})(),replaceInput=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>▼</div>","</div>"].join(''),markup=(function(){var gradientFix="";if(IE){for(var i=1;i<=6;i++){gradientFix+="<div class='sp-"+i+"'></div>";}} return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",gradientFix,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("");})();function paletteTemplate(p,color,className,opts){var html=[];for(var i=0;i<p.length;i++){var current=p[i];if(current){var tiny=tinycolor(current);var c=tiny.toHsl().l<0.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";c+=(tinycolor.equals(color,current))?" sp-thumb-active":"";var formattedString=tiny.toString(opts.preferredFormat||"rgb");var swatchStyle=rgbaSupport?("background-color:"+tiny.toRgbString()):"filter:"+tiny.toFilter();html.push('<span title="'+formattedString+'" data-color="'+tiny.toRgbString()+'" class="'+c+'"><span class="sp-thumb-inner" style="'+swatchStyle+';" /></span>');}else{var cls='sp-clear-display';html.push($('<div />').append($('<span data-color="" style="background-color:transparent;" class="'+cls+'"></span>').attr('title',opts.noColorSelectedText)).html());}} return"<div class='sp-cf "+className+"'>"+html.join('')+"</div>";} function hideAll(){for(var i=0;i<spectrums.length;i++){if(spectrums[i]){spectrums[i].hide();}}} function instanceOptions(o,callbackContext){var opts=$.extend({},defaultOpts,o);opts.callbacks={'move':bind(opts.move,callbackContext),'change':bind(opts.change,callbackContext),'show':bind(opts.show,callbackContext),'hide':bind(opts.hide,callbackContext),'beforeShow':bind(opts.beforeShow,callbackContext)};return opts;} function spectrum(element,o){var opts=instanceOptions(o,element),flat=opts.flat,showSelectionPalette=opts.showSelectionPalette,localStorageKey=opts.localStorageKey,theme=opts.theme,callbacks=opts.callbacks,resize=throttle(reflow,10),visible=false,isDragging=false,dragWidth=0,dragHeight=0,dragHelperHeight=0,slideHeight=0,slideWidth=0,alphaWidth=0,alphaSlideHelperWidth=0,slideHelperHeight=0,currentHue=0,currentSaturation=0,currentValue=0,currentAlpha=1,palette=[],paletteArray=[],paletteLookup={},selectionPalette=opts.selectionPalette.slice(0),maxSelectionSize=opts.maxSelectionSize,draggingClass="sp-dragging",shiftMovementDirection=null;var doc=element.ownerDocument,body=doc.body,boundElement=$(element),disabled=false,container=$(markup,doc).addClass(theme),pickerContainer=container.find(".sp-picker-container"),dragger=container.find(".sp-color"),dragHelper=container.find(".sp-dragger"),slider=container.find(".sp-hue"),slideHelper=container.find(".sp-slider"),alphaSliderInner=container.find(".sp-alpha-inner"),alphaSlider=container.find(".sp-alpha"),alphaSlideHelper=container.find(".sp-alpha-handle"),textInput=container.find(".sp-input"),paletteContainer=container.find(".sp-palette"),initialColorContainer=container.find(".sp-initial"),cancelButton=container.find(".sp-cancel"),clearButton=container.find(".sp-clear"),chooseButton=container.find(".sp-choose"),toggleButton=container.find(".sp-palette-toggle"),isInput=boundElement.is("input"),isInputTypeColor=isInput&&boundElement.attr("type")==="color"&&inputTypeColorSupport(),shouldReplace=isInput&&!flat,replacer=(shouldReplace)?$(replaceInput).addClass(theme).addClass(opts.className).addClass(opts.replacerClassName):$([]),offsetElement=(shouldReplace)?replacer:boundElement,previewElement=replacer.find(".sp-preview-inner"),initialColor=opts.color||(isInput&&boundElement.val()),colorOnShow=false,currentPreferredFormat=opts.preferredFormat,clickoutFiresChange=!opts.showButtons||opts.clickoutFiresChange,isEmpty=!initialColor,allowEmpty=opts.allowEmpty&&!isInputTypeColor;function applyOptions(){if(opts.showPaletteOnly){opts.showPalette=true;} toggleButton.text(opts.showPaletteOnly?opts.togglePaletteMoreText:opts.togglePaletteLessText);if(opts.palette){palette=opts.palette.slice(0);paletteArray=$.isArray(palette[0])?palette:[palette];paletteLookup={};for(var i=0;i<paletteArray.length;i++){for(var j=0;j<paletteArray[i].length;j++){var rgb=tinycolor(paletteArray[i][j]).toRgbString();paletteLookup[rgb]=true;}}} container.toggleClass("sp-flat",flat);container.toggleClass("sp-input-disabled",!opts.showInput);container.toggleClass("sp-alpha-enabled",opts.showAlpha);container.toggleClass("sp-clear-enabled",allowEmpty);container.toggleClass("sp-buttons-disabled",!opts.showButtons);container.toggleClass("sp-palette-buttons-disabled",!opts.togglePaletteOnly);container.toggleClass("sp-palette-disabled",!opts.showPalette);container.toggleClass("sp-palette-only",opts.showPaletteOnly);container.toggleClass("sp-initial-disabled",!opts.showInitial);container.addClass(opts.className).addClass(opts.containerClassName);reflow();} function initialize(){if(IE){container.find("*:not(input)").attr("unselectable","on");} applyOptions();if(shouldReplace){boundElement.after(replacer).hide();} if(!allowEmpty){clearButton.hide();} if(flat){boundElement.after(container).hide();} else{var appendTo=opts.appendTo==="parent"?boundElement.parent():$(opts.appendTo);if(appendTo.length!==1){appendTo=$("body");} appendTo.append(container);} updateSelectionPaletteFromStorage();offsetElement.bind("click.spectrum touchstart.spectrum",function(e){if(!disabled){toggle();} e.stopPropagation();if(!$(e.target).is("input")){e.preventDefault();}});if(boundElement.is(":disabled")||(opts.disabled===true)){disable();} container.click(stopPropagation);textInput.change(setFromTextInput);textInput.bind("paste",function(){setTimeout(setFromTextInput,1);});textInput.keydown(function(e){if(e.keyCode==13){setFromTextInput();}});cancelButton.text(opts.cancelText);cancelButton.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();revert();hide();});clearButton.attr("title",opts.clearText);clearButton.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();isEmpty=true;move();if(flat){updateOriginalInput(true);}});chooseButton.text(opts.chooseText);chooseButton.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();if(IE&&textInput.is(":focus")){textInput.trigger('change');} if(isValid()){updateOriginalInput(true);hide();}});toggleButton.text(opts.showPaletteOnly?opts.togglePaletteMoreText:opts.togglePaletteLessText);toggleButton.bind("click.spectrum",function(e){e.stopPropagation();e.preventDefault();opts.showPaletteOnly=!opts.showPaletteOnly;if(!opts.showPaletteOnly&&!flat){container.css('left','-='+(pickerContainer.outerWidth(true)+5));} applyOptions();});draggable(alphaSlider,function(dragX,dragY,e){currentAlpha=(dragX/alphaWidth);isEmpty=false;if(e.shiftKey){currentAlpha=Math.round(currentAlpha*10)/10;} move();},dragStart,dragStop);draggable(slider,function(dragX,dragY){currentHue=parseFloat(dragY/slideHeight);isEmpty=false;if(!opts.showAlpha){currentAlpha=1;} move();},dragStart,dragStop);draggable(dragger,function(dragX,dragY,e){if(!e.shiftKey){shiftMovementDirection=null;} else if(!shiftMovementDirection){var oldDragX=currentSaturation*dragWidth;var oldDragY=dragHeight-(currentValue*dragHeight);var furtherFromX=Math.abs(dragX-oldDragX)>Math.abs(dragY-oldDragY);shiftMovementDirection=furtherFromX?"x":"y";} var setSaturation=!shiftMovementDirection||shiftMovementDirection==="x";var setValue=!shiftMovementDirection||shiftMovementDirection==="y";if(setSaturation){currentSaturation=parseFloat(dragX/dragWidth);} if(setValue){currentValue=parseFloat((dragHeight-dragY)/dragHeight);} isEmpty=false;if(!opts.showAlpha){currentAlpha=1;} move();},dragStart,dragStop);if(!!initialColor){set(initialColor);updateUI();currentPreferredFormat=opts.preferredFormat||tinycolor(initialColor).format;addColorToSelectionPalette(initialColor);} else{updateUI();} if(flat){show();} function paletteElementClick(e){if(e.data&&e.data.ignore){set($(e.target).closest(".sp-thumb-el").data("color"));move();} else{set($(e.target).closest(".sp-thumb-el").data("color"));move();updateOriginalInput(true);if(opts.hideAfterPaletteSelect){hide();}} return false;} var paletteEvent=IE?"mousedown.spectrum":"click.spectrum touchstart.spectrum";paletteContainer.delegate(".sp-thumb-el",paletteEvent,paletteElementClick);initialColorContainer.delegate(".sp-thumb-el:nth-child(1)",paletteEvent,{ignore:true},paletteElementClick);} function updateSelectionPaletteFromStorage(){if(localStorageKey&&window.localStorage){try{var oldPalette=window.localStorage[localStorageKey].split(",#");if(oldPalette.length>1){delete window.localStorage[localStorageKey];$.each(oldPalette,function(i,c){addColorToSelectionPalette(c);});}} catch(e){} try{selectionPalette=window.localStorage[localStorageKey].split(";");} catch(e){}}} function addColorToSelectionPalette(color){if(showSelectionPalette){var rgb=tinycolor(color).toRgbString();if(!paletteLookup[rgb]&&$.inArray(rgb,selectionPalette)===-1){selectionPalette.push(rgb);while(selectionPalette.length>maxSelectionSize){selectionPalette.shift();}} if(localStorageKey&&window.localStorage){try{window.localStorage[localStorageKey]=selectionPalette.join(";");} catch(e){}}}} function getUniqueSelectionPalette(){var unique=[];if(opts.showPalette){for(var i=0;i<selectionPalette.length;i++){var rgb=tinycolor(selectionPalette[i]).toRgbString();if(!paletteLookup[rgb]){unique.push(selectionPalette[i]);}}} return unique.reverse().slice(0,opts.maxSelectionSize);} function drawPalette(){var currentColor=get();var html=$.map(paletteArray,function(palette,i){return paletteTemplate(palette,currentColor,"sp-palette-row sp-palette-row-"+i,opts);});updateSelectionPaletteFromStorage();if(selectionPalette){html.push(paletteTemplate(getUniqueSelectionPalette(),currentColor,"sp-palette-row sp-palette-row-selection",opts));} paletteContainer.html(html.join(""));} function drawInitial(){if(opts.showInitial){var initial=colorOnShow;var current=get();initialColorContainer.html(paletteTemplate([initial,current],current,"sp-palette-row-initial",opts));}} function dragStart(){if(dragHeight<=0||dragWidth<=0||slideHeight<=0){reflow();} isDragging=true;container.addClass(draggingClass);shiftMovementDirection=null;boundElement.trigger('dragstart.spectrum',[get()]);} function dragStop(){isDragging=false;container.removeClass(draggingClass);boundElement.trigger('dragstop.spectrum',[get()]);} function setFromTextInput(){var value=textInput.val();if((value===null||value==="")&&allowEmpty){set(null);updateOriginalInput(true);} else{var tiny=tinycolor(value);if(tiny.isValid()){set(tiny);updateOriginalInput(true);} else{textInput.addClass("sp-validation-error");}}} function toggle(){if(visible){hide();} else{show();}} function show(){var event=$.Event('beforeShow.spectrum');if(visible){reflow();return;} boundElement.trigger(event,[get()]);if(callbacks.beforeShow(get())===false||event.isDefaultPrevented()){return;} hideAll();visible=true;$(doc).bind("keydown.spectrum",onkeydown);$(doc).bind("click.spectrum",clickout);$(window).bind("resize.spectrum",resize);replacer.addClass("sp-active");container.removeClass("sp-hidden");reflow();updateUI();colorOnShow=get();drawInitial();callbacks.show(colorOnShow);boundElement.trigger('show.spectrum',[colorOnShow]);} function onkeydown(e){if(e.keyCode===27){hide();}} function clickout(e){if(e.button==2){return;} if(isDragging){return;} if(clickoutFiresChange){updateOriginalInput(true);} else{revert();} hide();} function hide(){if(!visible||flat){return;} visible=false;$(doc).unbind("keydown.spectrum",onkeydown);$(doc).unbind("click.spectrum",clickout);$(window).unbind("resize.spectrum",resize);replacer.removeClass("sp-active");container.addClass("sp-hidden");callbacks.hide(get());boundElement.trigger('hide.spectrum',[get()]);} function revert(){set(colorOnShow,true);} function set(color,ignoreFormatChange){if(tinycolor.equals(color,get())){updateUI();return;} var newColor,newHsv;if(!color&&allowEmpty){isEmpty=true;}else{isEmpty=false;newColor=tinycolor(color);newHsv=newColor.toHsv();currentHue=(newHsv.h%360)/360;currentSaturation=newHsv.s;currentValue=newHsv.v;currentAlpha=newHsv.a;} updateUI();if(newColor&&newColor.isValid()&&!ignoreFormatChange){currentPreferredFormat=opts.preferredFormat||newColor.getFormat();}} function get(opts){opts=opts||{};if(allowEmpty&&isEmpty){return null;} return tinycolor.fromRatio({h:currentHue,s:currentSaturation,v:currentValue,a:Math.round(currentAlpha*100)/100},{format:opts.format||currentPreferredFormat});} function isValid(){return!textInput.hasClass("sp-validation-error");} function move(){updateUI();callbacks.move(get());boundElement.trigger('move.spectrum',[get()]);} function updateUI(){textInput.removeClass("sp-validation-error");updateHelperLocations();var flatColor=tinycolor.fromRatio({h:currentHue,s:1,v:1});dragger.css("background-color",flatColor.toHexString());var format=currentPreferredFormat;if(currentAlpha<1&&!(currentAlpha===0&&format==="name")){if(format==="hex"||format==="hex3"||format==="hex6"||format==="name"){format="rgb";}} var realColor=get({format:format}),displayColor='';previewElement.removeClass("sp-clear-display");previewElement.css('background-color','transparent');if(!realColor&&allowEmpty){previewElement.addClass("sp-clear-display");} else{var realHex=realColor.toHexString(),realRgb=realColor.toRgbString();if(rgbaSupport||realColor.alpha===1){previewElement.css("background-color",realRgb);} else{previewElement.css("background-color","transparent");previewElement.css("filter",realColor.toFilter());} if(opts.showAlpha){var rgb=realColor.toRgb();rgb.a=0;var realAlpha=tinycolor(rgb).toRgbString();var gradient="linear-gradient(left, "+realAlpha+", "+realHex+")";if(IE){alphaSliderInner.css("filter",tinycolor(realAlpha).toFilter({gradientType:1},realHex));} else{alphaSliderInner.css("background","-webkit-"+gradient);alphaSliderInner.css("background","-moz-"+gradient);alphaSliderInner.css("background","-ms-"+gradient);alphaSliderInner.css("background","linear-gradient(to right, "+realAlpha+", "+realHex+")");}} displayColor=realColor.toString(format);} if(opts.showInput){textInput.val(displayColor);} if(opts.showPalette){drawPalette();} drawInitial();} function updateHelperLocations(){var s=currentSaturation;var v=currentValue;if(allowEmpty&&isEmpty){alphaSlideHelper.hide();slideHelper.hide();dragHelper.hide();} else{alphaSlideHelper.show();slideHelper.show();dragHelper.show();var dragX=s*dragWidth;var dragY=dragHeight-(v*dragHeight);dragX=Math.max(-dragHelperHeight,Math.min(dragWidth-dragHelperHeight,dragX-dragHelperHeight));dragY=Math.max(-dragHelperHeight,Math.min(dragHeight-dragHelperHeight,dragY-dragHelperHeight));dragHelper.css({"top":dragY+"px","left":dragX+"px"});var alphaX=currentAlpha*alphaWidth;alphaSlideHelper.css({"left":(alphaX-(alphaSlideHelperWidth/2))+"px"});var slideY=(currentHue)*slideHeight;slideHelper.css({"top":(slideY-slideHelperHeight)+"px"});}} function updateOriginalInput(fireCallback){var color=get(),displayColor='',hasChanged=!tinycolor.equals(color,colorOnShow);if(color){displayColor=color.toString(currentPreferredFormat);addColorToSelectionPalette(color);} if(isInput){boundElement.val(displayColor);} if(fireCallback&&hasChanged){callbacks.change(color);boundElement.trigger('change',[color]);}} function reflow(){if(!visible){return;} dragWidth=dragger.width();dragHeight=dragger.height();dragHelperHeight=dragHelper.height();slideWidth=slider.width();slideHeight=slider.height();slideHelperHeight=slideHelper.height();alphaWidth=alphaSlider.width();alphaSlideHelperWidth=alphaSlideHelper.width();if(!flat){container.css("position","absolute");if(opts.offset){container.offset(opts.offset);}else{container.offset(getOffset(container,offsetElement));}} updateHelperLocations();if(opts.showPalette){drawPalette();} boundElement.trigger('reflow.spectrum');} function destroy(){boundElement.show();offsetElement.unbind("click.spectrum touchstart.spectrum");container.remove();replacer.remove();spectrums[spect.id]=null;} function option(optionName,optionValue){if(optionName===undefined){return $.extend({},opts);} if(optionValue===undefined){return opts[optionName];} opts[optionName]=optionValue;if(optionName==="preferredFormat"){currentPreferredFormat=opts.preferredFormat;} applyOptions();} function enable(){disabled=false;boundElement.attr("disabled",false);offsetElement.removeClass("sp-disabled");} function disable(){hide();disabled=true;boundElement.attr("disabled",true);offsetElement.addClass("sp-disabled");} function setOffset(coord){opts.offset=coord;reflow();} initialize();var spect={show:show,hide:hide,toggle:toggle,reflow:reflow,option:option,enable:enable,disable:disable,offset:setOffset,set:function(c){set(c);updateOriginalInput();},get:get,destroy:destroy,container:container};spect.id=spectrums.push(spect)-1;return spect;} function getOffset(picker,input){var extraY=0;var dpWidth=picker.outerWidth();var dpHeight=picker.outerHeight();var inputHeight=input.outerHeight();var doc=picker[0].ownerDocument;var docElem=doc.documentElement;var viewWidth=docElem.clientWidth+$(doc).scrollLeft();var viewHeight=docElem.clientHeight+$(doc).scrollTop();var offset=input.offset();offset.top+=inputHeight;offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0);offset.top-=Math.min(offset.top,((offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight-extraY):extraY));return offset;} function noop(){} function stopPropagation(e){e.stopPropagation();} function bind(func,obj){var slice=Array.prototype.slice;var args=slice.call(arguments,2);return function(){return func.apply(obj,args.concat(slice.call(arguments)));};} function draggable(element,onmove,onstart,onstop){onmove=onmove||function(){};onstart=onstart||function(){};onstop=onstop||function(){};var doc=document;var dragging=false;var offset={};var maxHeight=0;var maxWidth=0;var hasTouch=('ontouchstart'in window);var duringDragEvents={};duringDragEvents["selectstart"]=prevent;duringDragEvents["dragstart"]=prevent;duringDragEvents["touchmove mousemove"]=move;duringDragEvents["touchend mouseup"]=stop;function prevent(e){if(e.stopPropagation){e.stopPropagation();} if(e.preventDefault){e.preventDefault();} e.returnValue=false;} function move(e){if(dragging){if(IE&&doc.documentMode<9&&!e.button){return stop();} var t0=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0];var pageX=t0&&t0.pageX||e.pageX;var pageY=t0&&t0.pageY||e.pageY;var dragX=Math.max(0,Math.min(pageX-offset.left,maxWidth));var dragY=Math.max(0,Math.min(pageY-offset.top,maxHeight));if(hasTouch){prevent(e);} onmove.apply(element,[dragX,dragY,e]);}} function start(e){var rightclick=(e.which)?(e.which==3):(e.button==2);if(!rightclick&&!dragging){if(onstart.apply(element,arguments)!==false){dragging=true;maxHeight=$(element).height();maxWidth=$(element).width();offset=$(element).offset();$(doc).bind(duringDragEvents);$(doc.body).addClass("sp-dragging");move(e);prevent(e);}}} function stop(){if(dragging){$(doc).unbind(duringDragEvents);$(doc.body).removeClass("sp-dragging");setTimeout(function(){onstop.apply(element,arguments);},0);} dragging=false;} $(element).bind("touchstart mousedown",start);} function throttle(func,wait,debounce){var timeout;return function(){var context=this,args=arguments;var throttler=function(){timeout=null;func.apply(context,args);};if(debounce)clearTimeout(timeout);if(debounce||!timeout)timeout=setTimeout(throttler,wait);};} function inputTypeColorSupport(){return $.fn.spectrum.inputTypeColorSupport();} var dataID="spectrum.id";$.fn.spectrum=function(opts,extra){if(typeof opts=="string"){var returnValue=this;var args=Array.prototype.slice.call(arguments,1);this.each(function(){var spect=spectrums[$(this).data(dataID)];if(spect){var method=spect[opts];if(!method){throw new Error("Spectrum: no such method: '"+opts+"'");} if(opts=="get"){returnValue=spect.get();} else if(opts=="container"){returnValue=spect.container;} else if(opts=="option"){returnValue=spect.option.apply(spect,args);} else if(opts=="destroy"){spect.destroy();$(this).removeData(dataID);} else{method.apply(spect,args);}}});return returnValue;} return this.spectrum("destroy").each(function(){var options=$.extend({},opts,$(this).data());var spect=spectrum(this,options);$(this).data(dataID,spect.id);});};$.fn.spectrum.load=true;$.fn.spectrum.loadOpts={};$.fn.spectrum.draggable=draggable;$.fn.spectrum.defaults=defaultOpts;$.fn.spectrum.inputTypeColorSupport=function inputTypeColorSupport(){if(typeof inputTypeColorSupport._cachedResult==="undefined"){var colorInput=$("<input type='color'/>")[0];inputTypeColorSupport._cachedResult=colorInput.type==="color"&&colorInput.value!=="";} return inputTypeColorSupport._cachedResult;};$.spectrum={};$.spectrum.localization={};$.spectrum.palettes={};$.fn.spectrum.processNativeColorInputs=function(){var colorInputs=$("input[type=color]");if(colorInputs.length&&!inputTypeColorSupport()){colorInputs.spectrum({preferredFormat:"hex6"});}};(function(){var trimLeft=/^[\s,#]+/,trimRight=/\s+$/,tinyCounter=0,math=Math,mathRound=math.round,mathMin=math.min,mathMax=math.max,mathRandom=math.random;var tinycolor=function(color,opts){color=(color)?color:'';opts=opts||{};if(color instanceof tinycolor){return color;} if(!(this instanceof tinycolor)){return new tinycolor(color,opts);} var rgb=inputToRGB(color);this._originalInput=color,this._r=rgb.r,this._g=rgb.g,this._b=rgb.b,this._a=rgb.a,this._roundA=mathRound(100*this._a)/100,this._format=opts.format||rgb.format;this._gradientType=opts.gradientType;if(this._r<1){this._r=mathRound(this._r);} if(this._g<1){this._g=mathRound(this._g);} if(this._b<1){this._b=mathRound(this._b);} this._ok=rgb.ok;this._tc_id=tinyCounter++;};tinycolor.prototype={isDark:function(){return this.getBrightness()<128;},isLight:function(){return!this.isDark();},isValid:function(){return this._ok;},getOriginalInput:function(){return this._originalInput;},getFormat:function(){return this._format;},getAlpha:function(){return this._a;},getBrightness:function(){var rgb=this.toRgb();return(rgb.r*299+rgb.g*587+rgb.b*114)/1000;},setAlpha:function(value){this._a=boundAlpha(value);this._roundA=mathRound(100*this._a)/100;return this;},toHsv:function(){var hsv=rgbToHsv(this._r,this._g,this._b);return{h:hsv.h*360,s:hsv.s,v:hsv.v,a:this._a};},toHsvString:function(){var hsv=rgbToHsv(this._r,this._g,this._b);var h=mathRound(hsv.h*360),s=mathRound(hsv.s*100),v=mathRound(hsv.v*100);return(this._a==1)?"hsv("+h+", "+s+"%, "+v+"%)":"hsva("+h+", "+s+"%, "+v+"%, "+this._roundA+")";},toHsl:function(){var hsl=rgbToHsl(this._r,this._g,this._b);return{h:hsl.h*360,s:hsl.s,l:hsl.l,a:this._a};},toHslString:function(){var hsl=rgbToHsl(this._r,this._g,this._b);var h=mathRound(hsl.h*360),s=mathRound(hsl.s*100),l=mathRound(hsl.l*100);return(this._a==1)?"hsl("+h+", "+s+"%, "+l+"%)":"hsla("+h+", "+s+"%, "+l+"%, "+this._roundA+")";},toHex:function(allow3Char){return rgbToHex(this._r,this._g,this._b,allow3Char);},toHexString:function(allow3Char){return'#'+this.toHex(allow3Char);},toHex8:function(){return rgbaToHex(this._r,this._g,this._b,this._a);},toHex8String:function(){return'#'+this.toHex8();},toRgb:function(){return{r:mathRound(this._r),g:mathRound(this._g),b:mathRound(this._b),a:this._a};},toRgbString:function(){return(this._a==1)?"rgb("+mathRound(this._r)+", "+mathRound(this._g)+", "+mathRound(this._b)+")":"rgba("+mathRound(this._r)+", "+mathRound(this._g)+", "+mathRound(this._b)+", "+this._roundA+")";},toPercentageRgb:function(){return{r:mathRound(bound01(this._r,255)*100)+"%",g:mathRound(bound01(this._g,255)*100)+"%",b:mathRound(bound01(this._b,255)*100)+"%",a:this._a};},toPercentageRgbString:function(){return(this._a==1)?"rgb("+mathRound(bound01(this._r,255)*100)+"%, "+mathRound(bound01(this._g,255)*100)+"%, "+mathRound(bound01(this._b,255)*100)+"%)":"rgba("+mathRound(bound01(this._r,255)*100)+"%, "+mathRound(bound01(this._g,255)*100)+"%, "+mathRound(bound01(this._b,255)*100)+"%, "+this._roundA+")";},toName:function(){if(this._a===0){return"transparent";} if(this._a<1){return false;} return hexNames[rgbToHex(this._r,this._g,this._b,true)]||false;},toFilter:function(secondColor){var hex8String='#'+rgbaToHex(this._r,this._g,this._b,this._a);var secondHex8String=hex8String;var gradientType=this._gradientType?"GradientType = 1, ":"";if(secondColor){var s=tinycolor(secondColor);secondHex8String=s.toHex8String();} return"progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")";},toString:function(format){var formatSet=!!format;format=format||this._format;var formattedString=false;var hasAlpha=this._a<1&&this._a>=0;var needsAlphaFormat=!formatSet&&hasAlpha&&(format==="hex"||format==="hex6"||format==="hex3"||format==="name");if(needsAlphaFormat){if(format==="name"&&this._a===0){return this.toName();} return this.toRgbString();} if(format==="rgb"){formattedString=this.toRgbString();} if(format==="prgb"){formattedString=this.toPercentageRgbString();} if(format==="hex"||format==="hex6"){formattedString=this.toHexString();} if(format==="hex3"){formattedString=this.toHexString(true);} if(format==="hex8"){formattedString=this.toHex8String();} if(format==="name"){formattedString=this.toName();} if(format==="hsl"){formattedString=this.toHslString();} if(format==="hsv"){formattedString=this.toHsvString();} return formattedString||this.toHexString();},_applyModification:function(fn,args){var color=fn.apply(null,[this].concat([].slice.call(args)));this._r=color._r;this._g=color._g;this._b=color._b;this.setAlpha(color._a);return this;},lighten:function(){return this._applyModification(lighten,arguments);},brighten:function(){return this._applyModification(brighten,arguments);},darken:function(){return this._applyModification(darken,arguments);},desaturate:function(){return this._applyModification(desaturate,arguments);},saturate:function(){return this._applyModification(saturate,arguments);},greyscale:function(){return this._applyModification(greyscale,arguments);},spin:function(){return this._applyModification(spin,arguments);},_applyCombination:function(fn,args){return fn.apply(null,[this].concat([].slice.call(args)));},analogous:function(){return this._applyCombination(analogous,arguments);},complement:function(){return this._applyCombination(complement,arguments);},monochromatic:function(){return this._applyCombination(monochromatic,arguments);},splitcomplement:function(){return this._applyCombination(splitcomplement,arguments);},triad:function(){return this._applyCombination(triad,arguments);},tetrad:function(){return this._applyCombination(tetrad,arguments);}};tinycolor.fromRatio=function(color,opts){if(typeof color=="object"){var newColor={};for(var i in color){if(color.hasOwnProperty(i)){if(i==="a"){newColor[i]=color[i];} else{newColor[i]=convertToPercentage(color[i]);}}} color=newColor;} return tinycolor(color,opts);};function inputToRGB(color){var rgb={r:0,g:0,b:0};var a=1;var ok=false;var format=false;if(typeof color=="string"){color=stringInputToObject(color);} if(typeof color=="object"){if(color.hasOwnProperty("r")&&color.hasOwnProperty("g")&&color.hasOwnProperty("b")){rgb=rgbToRgb(color.r,color.g,color.b);ok=true;format=String(color.r).substr(-1)==="%"?"prgb":"rgb";} else if(color.hasOwnProperty("h")&&color.hasOwnProperty("s")&&color.hasOwnProperty("v")){color.s=convertToPercentage(color.s);color.v=convertToPercentage(color.v);rgb=hsvToRgb(color.h,color.s,color.v);ok=true;format="hsv";} else if(color.hasOwnProperty("h")&&color.hasOwnProperty("s")&&color.hasOwnProperty("l")){color.s=convertToPercentage(color.s);color.l=convertToPercentage(color.l);rgb=hslToRgb(color.h,color.s,color.l);ok=true;format="hsl";} if(color.hasOwnProperty("a")){a=color.a;}} a=boundAlpha(a);return{ok:ok,format:color.format||format,r:mathMin(255,mathMax(rgb.r,0)),g:mathMin(255,mathMax(rgb.g,0)),b:mathMin(255,mathMax(rgb.b,0)),a:a};} function rgbToRgb(r,g,b){return{r:bound01(r,255)*255,g:bound01(g,255)*255,b:bound01(b,255)*255};} function rgbToHsl(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,l=(max+min)/2;if(max==min){h=s=0;} else{var d=max-min;s=l>0.5?d/(2-max-min):d/(max+min);switch(max){case r:h=(g-b)/d+(g<b?6:0);break;case g:h=(b-r)/d+2;break;case b:h=(r-g)/d+4;break;} h/=6;} return{h:h,s:s,l:l};} function hslToRgb(h,s,l){var r,g,b;h=bound01(h,360);s=bound01(s,100);l=bound01(l,100);function hue2rgb(p,q,t){if(t<0)t+=1;if(t>1)t-=1;if(t<1/6)return p+(q-p)*6*t;if(t<1/2)return q;if(t<2/3)return p+(q-p)*(2/3-t)*6;return p;} if(s===0){r=g=b=l;} else{var q=l<0.5?l*(1+s):l+s-l*s;var p=2*l-q;r=hue2rgb(p,q,h+1/3);g=hue2rgb(p,q,h);b=hue2rgb(p,q,h-1/3);} return{r:r*255,g:g*255,b:b*255};} function rgbToHsv(r,g,b){r=bound01(r,255);g=bound01(g,255);b=bound01(b,255);var max=mathMax(r,g,b),min=mathMin(r,g,b);var h,s,v=max;var d=max-min;s=max===0?0:d/max;if(max==min){h=0;} else{switch(max){case r:h=(g-b)/d+(g<b?6:0);break;case g:h=(b-r)/d+2;break;case b:h=(r-g)/d+4;break;} h/=6;} return{h:h,s:s,v:v};} function hsvToRgb(h,s,v){h=bound01(h,360)*6;s=bound01(s,100);v=bound01(v,100);var i=math.floor(h),f=h-i,p=v*(1-s),q=v*(1-f*s),t=v*(1-(1-f)*s),mod=i%6,r=[v,q,p,p,t,v][mod],g=[t,v,v,q,p,p][mod],b=[p,p,t,v,v,q][mod];return{r:r*255,g:g*255,b:b*255};} function rgbToHex(r,g,b,allow3Char){var hex=[pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];if(allow3Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)){return hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0);} return hex.join("");} function rgbaToHex(r,g,b,a){var hex=[pad2(convertDecimalToHex(a)),pad2(mathRound(r).toString(16)),pad2(mathRound(g).toString(16)),pad2(mathRound(b).toString(16))];return hex.join("");} tinycolor.equals=function(color1,color2){if(!color1||!color2){return false;} return tinycolor(color1).toRgbString()==tinycolor(color2).toRgbString();};tinycolor.random=function(){return tinycolor.fromRatio({r:mathRandom(),g:mathRandom(),b:mathRandom()});};function desaturate(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.s-=amount/100;hsl.s=clamp01(hsl.s);return tinycolor(hsl);} function saturate(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.s+=amount/100;hsl.s=clamp01(hsl.s);return tinycolor(hsl);} function greyscale(color){return tinycolor(color).desaturate(100);} function lighten(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.l+=amount/100;hsl.l=clamp01(hsl.l);return tinycolor(hsl);} function brighten(color,amount){amount=(amount===0)?0:(amount||10);var rgb=tinycolor(color).toRgb();rgb.r=mathMax(0,mathMin(255,rgb.r-mathRound(255*-(amount/100))));rgb.g=mathMax(0,mathMin(255,rgb.g-mathRound(255*-(amount/100))));rgb.b=mathMax(0,mathMin(255,rgb.b-mathRound(255*-(amount/100))));return tinycolor(rgb);} function darken(color,amount){amount=(amount===0)?0:(amount||10);var hsl=tinycolor(color).toHsl();hsl.l-=amount/100;hsl.l=clamp01(hsl.l);return tinycolor(hsl);} function spin(color,amount){var hsl=tinycolor(color).toHsl();var hue=(mathRound(hsl.h)+amount)%360;hsl.h=hue<0?360+hue:hue;return tinycolor(hsl);} function complement(color){var hsl=tinycolor(color).toHsl();hsl.h=(hsl.h+180)%360;return tinycolor(hsl);} function triad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+120)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+240)%360,s:hsl.s,l:hsl.l})];} function tetrad(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+90)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+180)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+270)%360,s:hsl.s,l:hsl.l})];} function splitcomplement(color){var hsl=tinycolor(color).toHsl();var h=hsl.h;return[tinycolor(color),tinycolor({h:(h+72)%360,s:hsl.s,l:hsl.l}),tinycolor({h:(h+216)%360,s:hsl.s,l:hsl.l})];} function analogous(color,results,slices){results=results||6;slices=slices||30;var hsl=tinycolor(color).toHsl();var part=360/slices;var ret=[tinycolor(color)];for(hsl.h=((hsl.h-(part*results>>1))+720)%360;--results;){hsl.h=(hsl.h+part)%360;ret.push(tinycolor(hsl));} return ret;} function monochromatic(color,results){results=results||6;var hsv=tinycolor(color).toHsv();var h=hsv.h,s=hsv.s,v=hsv.v;var ret=[];var modification=1/results;while(results--){ret.push(tinycolor({h:h,s:s,v:v}));v=(v+modification)%1;} return ret;} tinycolor.mix=function(color1,color2,amount){amount=(amount===0)?0:(amount||50);var rgb1=tinycolor(color1).toRgb();var rgb2=tinycolor(color2).toRgb();var p=amount/100;var w=p*2-1;var a=rgb2.a-rgb1.a;var w1;if(w*a==-1){w1=w;}else{w1=(w+a)/(1+w*a);} w1=(w1+1)/2;var w2=1-w1;var rgba={r:rgb2.r*w1+rgb1.r*w2,g:rgb2.g*w1+rgb1.g*w2,b:rgb2.b*w1+rgb1.b*w2,a:rgb2.a*p+rgb1.a*(1-p)};return tinycolor(rgba);};tinycolor.readability=function(color1,color2){var c1=tinycolor(color1);var c2=tinycolor(color2);var rgb1=c1.toRgb();var rgb2=c2.toRgb();var brightnessA=c1.getBrightness();var brightnessB=c2.getBrightness();var colorDiff=(Math.max(rgb1.r,rgb2.r)-Math.min(rgb1.r,rgb2.r)+ Math.max(rgb1.g,rgb2.g)-Math.min(rgb1.g,rgb2.g)+ Math.max(rgb1.b,rgb2.b)-Math.min(rgb1.b,rgb2.b));return{brightness:Math.abs(brightnessA-brightnessB),color:colorDiff};};tinycolor.isReadable=function(color1,color2){var readability=tinycolor.readability(color1,color2);return readability.brightness>125&&readability.color>500;};tinycolor.mostReadable=function(baseColor,colorList){var bestColor=null;var bestScore=0;var bestIsReadable=false;for(var i=0;i<colorList.length;i++){var readability=tinycolor.readability(baseColor,colorList[i]);var readable=readability.brightness>125&&readability.color>500;var score=3*(readability.brightness/125)+(readability.color/500);if((readable&&!bestIsReadable)||(readable&&bestIsReadable&&score>bestScore)||((!readable)&&(!bestIsReadable)&&score>bestScore)){bestIsReadable=readable;bestScore=score;bestColor=tinycolor(colorList[i]);}} return bestColor;};var names=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var hexNames=tinycolor.hexNames=flip(names);function flip(o){var flipped={};for(var i in o){if(o.hasOwnProperty(i)){flipped[o[i]]=i;}} return flipped;} function boundAlpha(a){a=parseFloat(a);if(isNaN(a)||a<0||a>1){a=1;} return a;} function bound01(n,max){if(isOnePointZero(n)){n="100%";} var processPercent=isPercentage(n);n=mathMin(max,mathMax(0,parseFloat(n)));if(processPercent){n=parseInt(n*max,10)/100;} if((math.abs(n-max)<0.000001)){return 1;} return(n%max)/parseFloat(max);} function clamp01(val){return mathMin(1,mathMax(0,val));} function parseIntFromHex(val){return parseInt(val,16);} function isOnePointZero(n){return typeof n=="string"&&n.indexOf('.')!=-1&&parseFloat(n)===1;} function isPercentage(n){return typeof n==="string"&&n.indexOf('%')!=-1;} function pad2(c){return c.length==1?'0'+c:''+c;} function convertToPercentage(n){if(n<=1){n=(n*100)+"%";} return n;} function convertDecimalToHex(d){return Math.round(parseFloat(d)*255).toString(16);} function convertHexToDecimal(h){return(parseIntFromHex(h)/255);} var matchers=(function(){var CSS_INTEGER="[-\\+]?\\d+%?";var CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?";var CSS_UNIT="(?:"+CSS_NUMBER+")|(?:"+CSS_INTEGER+")";var PERMISSIVE_MATCH3="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?";var PERMISSIVE_MATCH4="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?";return{rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};})();function stringInputToObject(color){color=color.replace(trimLeft,'').replace(trimRight,'').toLowerCase();var named=false;if(names[color]){color=names[color];named=true;} else if(color=='transparent'){return{r:0,g:0,b:0,a:0,format:"name"};} var match;if((match=matchers.rgb.exec(color))){return{r:match[1],g:match[2],b:match[3]};} if((match=matchers.rgba.exec(color))){return{r:match[1],g:match[2],b:match[3],a:match[4]};} if((match=matchers.hsl.exec(color))){return{h:match[1],s:match[2],l:match[3]};} if((match=matchers.hsla.exec(color))){return{h:match[1],s:match[2],l:match[3],a:match[4]};} if((match=matchers.hsv.exec(color))){return{h:match[1],s:match[2],v:match[3]};} if((match=matchers.hsva.exec(color))){return{h:match[1],s:match[2],v:match[3],a:match[4]};} if((match=matchers.hex8.exec(color))){return{a:convertHexToDecimal(match[1]),r:parseIntFromHex(match[2]),g:parseIntFromHex(match[3]),b:parseIntFromHex(match[4]),format:named?"name":"hex8"};} if((match=matchers.hex6.exec(color))){return{r:parseIntFromHex(match[1]),g:parseIntFromHex(match[2]),b:parseIntFromHex(match[3]),format:named?"name":"hex"};} if((match=matchers.hex3.exec(color))){return{r:parseIntFromHex(match[1]+''+match[1]),g:parseIntFromHex(match[2]+''+match[2]),b:parseIntFromHex(match[3]+''+match[3]),format:named?"name":"hex"};} return false;} window.tinycolor=tinycolor;})();$(function(){if($.fn.spectrum.load){$.fn.spectrum.processNativeColorInputs();}});});;(function(root,factory){if(typeof exports==='object'){var randomColor=factory();if(typeof module==='object'&&module&&module.exports){exports=module.exports=randomColor;} exports.randomColor=randomColor;}else if(typeof define==='function'&&define.amd){define([],factory);}else{root.randomColor=factory();}}(this,function(){var seed=null;var colorDictionary={};loadColorBounds();var randomColor=function(options){options=options||{};if(options.seed!==undefined&&options.seed!==null&&options.seed===parseInt(options.seed,10)){seed=options.seed;}else if(typeof options.seed==='string'){seed=stringToInteger(options.seed);}else if(options.seed!==undefined&&options.seed!==null){throw new TypeError('The seed value must be an integer or string');}else{seed=null;} var H,S,B;if(options.count!==null&&options.count!==undefined){var totalColors=options.count,colors=[];options.count=null;while(totalColors>colors.length){if(seed&&options.seed)options.seed+=1;colors.push(randomColor(options));} options.count=totalColors;return colors;} H=pickHue(options);S=pickSaturation(H,options);B=pickBrightness(H,S,options);return setFormat([H,S,B],options);};function pickHue(options){var hueRange=getHueRange(options.hue),hue=randomWithin(hueRange);if(hue<0){hue=360+hue;} return hue;} function pickSaturation(hue,options){if(options.hue==='monochrome'){return 0;} if(options.luminosity==='random'){return randomWithin([0,100]);} var saturationRange=getSaturationRange(hue);var sMin=saturationRange[0],sMax=saturationRange[1];switch(options.luminosity){case'bright':sMin=55;break;case'dark':sMin=sMax-10;break;case'light':sMax=55;break;} return randomWithin([sMin,sMax]);} function pickBrightness(H,S,options){var bMin=getMinimumBrightness(H,S),bMax=100;switch(options.luminosity){case'dark':bMax=bMin+20;break;case'light':bMin=(bMax+bMin)/2;break;case'random':bMin=0;bMax=100;break;} return randomWithin([bMin,bMax]);} function setFormat(hsv,options){switch(options.format){case'hsvArray':return hsv;case'hslArray':return HSVtoHSL(hsv);case'hsl':var hsl=HSVtoHSL(hsv);return'hsl('+hsl[0]+', '+hsl[1]+'%, '+hsl[2]+'%)';case'hsla':var hslColor=HSVtoHSL(hsv);var alpha=options.alpha||Math.random();return'hsla('+hslColor[0]+', '+hslColor[1]+'%, '+hslColor[2]+'%, '+alpha+')';case'rgbArray':return HSVtoRGB(hsv);case'rgb':var rgb=HSVtoRGB(hsv);return'rgb('+rgb.join(', ')+')';case'rgba':var rgbColor=HSVtoRGB(hsv);var alpha=options.alpha||Math.random();return'rgba('+rgbColor.join(', ')+', '+alpha+')';default:return HSVtoHex(hsv);}} function getMinimumBrightness(H,S){var lowerBounds=getColorInfo(H).lowerBounds;for(var i=0;i<lowerBounds.length-1;i++){var s1=lowerBounds[i][0],v1=lowerBounds[i][1];var s2=lowerBounds[i+1][0],v2=lowerBounds[i+1][1];if(S>=s1&&S<=s2){var m=(v2-v1)/(s2-s1),b=v1-m*s1;return m*S+b;}} return 0;} function getHueRange(colorInput){if(typeof parseInt(colorInput)==='number'){var number=parseInt(colorInput);if(number<360&&number>0){return[number,number];}} if(typeof colorInput==='string'){if(colorDictionary[colorInput]){var color=colorDictionary[colorInput];if(color.hueRange){return color.hueRange;}}else if(colorInput.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){const hue=HexToHSB(colorInput)[0];return[hue,hue];}} return[0,360];} function getSaturationRange(hue){return getColorInfo(hue).saturationRange;} function getColorInfo(hue){if(hue>=334&&hue<=360){hue-=360;} for(var colorName in colorDictionary){var color=colorDictionary[colorName];if(color.hueRange&&hue>=color.hueRange[0]&&hue<=color.hueRange[1]){return colorDictionary[colorName];}}return'Color not found';} function randomWithin(range){if(seed===null){return Math.floor(range[0]+Math.random()*(range[1]+1-range[0]));}else{var max=range[1]||1;var min=range[0]||0;seed=(seed*9301+49297)%233280;var rnd=seed/233280.0;return Math.floor(min+rnd*(max-min));}} function HSVtoHex(hsv){var rgb=HSVtoRGB(hsv);function componentToHex(c){var hex=c.toString(16);return hex.length==1?'0'+hex:hex;} var hex='#'+componentToHex(rgb[0])+componentToHex(rgb[1])+componentToHex(rgb[2]);return hex;} function defineColor(name,hueRange,lowerBounds){var sMin=lowerBounds[0][0],sMax=lowerBounds[lowerBounds.length-1][0],bMin=lowerBounds[lowerBounds.length-1][1],bMax=lowerBounds[0][1];colorDictionary[name]={hueRange:hueRange,lowerBounds:lowerBounds,saturationRange:[sMin,sMax],brightnessRange:[bMin,bMax]};} function loadColorBounds(){defineColor('monochrome',null,[[0,0],[100,0]]);defineColor('red',[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]);defineColor('orange',[19,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]);defineColor('yellow',[47,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]);defineColor('green',[63,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]);defineColor('blue',[179,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]);defineColor('purple',[258,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]);defineColor('pink',[283,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]);} function HSVtoRGB(hsv){var h=hsv[0];if(h===0){h=1;} if(h===360){h=359;} h=h/360;var s=hsv[1]/100,v=hsv[2]/100;var h_i=Math.floor(h*6),f=h*6-h_i,p=v*(1-s),q=v*(1-f*s),t=v*(1-(1-f)*s),r=256,g=256,b=256;switch(h_i){case 0:r=v;g=t;b=p;break;case 1:r=q;g=v;b=p;break;case 2:r=p;g=v;b=t;break;case 3:r=p;g=q;b=v;break;case 4:r=t;g=p;b=v;break;case 5:r=v;g=p;b=q;break;} var result=[Math.floor(r*255),Math.floor(g*255),Math.floor(b*255)];return result;} function HexToHSB(hex){hex=hex.replace(/^#/,'');hex=hex.length===3?hex.replace(/(.)/g,'$1$1'):hex;const red=parseInt(hex.substr(0,2),16)/255,green=parseInt(hex.substr(2,2),16)/255,blue=parseInt(hex.substr(4,2),16)/255;const cMax=Math.max(red,green,blue),delta=cMax-Math.min(red,green,blue),saturation=cMax?(delta/cMax):0;switch(cMax){case red:return[60*(((green-blue)/delta)%6)||0,saturation,cMax];case green:return[60*(((blue-red)/delta)+2)||0,saturation,cMax];case blue:return[60*(((red-green)/delta)+4)||0,saturation,cMax];}} function HSVtoHSL(hsv){var h=hsv[0],s=hsv[1]/100,v=hsv[2]/100,k=(2-s)*v;return[h,Math.round(s*v/(k<1?k:2-k)*10000)/100,k/2*100];} function stringToInteger(string){var total=0 for(var i=0;i!==string.length;i++){if(total>=Number.MAX_SAFE_INTEGER)break;total+=string.charCodeAt(i)} return total} return randomColor;})); (function() { 'use strict'; //==============================Default Settings============================== if (typeof GM_getValue("GB_BGColor") === 'undefined') { // SetDefaults(); addGoogleFont(GM_getValue("GB_Font")); } function SetDefaults() { var AllSettings = GM_listValues(); for (var AllSettingsIndex = 0, key = null; key = AllSettings[AllSettingsIndex]; AllSettingsIndex++) { GM_deleteValue(key); } GM_setValue("GB_Url1", "https://plus.google.com/"); GM_setValue("GB_Url1text", "+You"); GM_setValue("GB_Url2", "https://www.google.com/webhp"); GM_setValue("GB_Url2text", "Search"); GM_setValue("GB_Url3", "https://www.google.com/imghp"); GM_setValue("GB_Url3text", "Images"); GM_setValue("GB_Url4", "https://www.youtube.com/"); GM_setValue("GB_Url4text", "YouTube"); GM_setValue("GB_Url5", "https://maps.google.com"); GM_setValue("GB_Url5text", "Maps"); GM_setValue("GB_Url6", "https://play.google.com/store"); GM_setValue("GB_Url6text", "Play"); GM_setValue("GB_Url7", "https://news.google.com/"); GM_setValue("GB_Url7text", "News"); GM_setValue("GB_Url8", "https://mail.google.com/"); GM_setValue("GB_Url8text", "Gmail"); GM_setValue("GB_Url9", "https://drive.google.com/drive/"); GM_setValue("GB_Url9text", "Drive"); GM_setValue("GB_Url10", "https://calendar.google.com"); GM_setValue("GB_Url10text", "Calendar"); GM_setValue("GB_Url11", "https://www.amazon.com"); GM_setValue("GB_Url11text", "Amazon"); GM_setValue("GB_Url12", "https://www.facebook.com"); GM_setValue("GB_Url12text", "Facebook"); GM_setValue("GB_DropDownUrl1", "https://gf.qytechs.cn/"); GM_setValue("GB_DropDownUrl1text", "GreasyFork"); GM_setValue("GB_DropDownUrl2", "https://books.google.com/"); GM_setValue("GB_DropDownUrl2text", "Books"); GM_setValue("GB_DropDownUrl3", "https://finance.google.com"); GM_setValue("GB_DropDownUrl3text", "Finance"); GM_setValue("GB_DropDownUrl4", "http://translate.google.com/"); GM_setValue("GB_DropDownUrl4text", "Translate"); GM_setValue("GB_DropDownUrl5", "https://music.google.com"); GM_setValue("GB_DropDownUrl5text", "Music"); GM_setValue("GB_TotalBarLinks", 10); GM_setValue("GB_TotalBarMenuLinks", 5); GM_setValue("GB_Hover", 10); GM_setValue("GB_BGColor", "#333333"); GM_setValue("GB_LColor", "#FFFFFF"); GM_setValue("GB_BColor", "#dd4b39"); GM_setValue('GB_LColMode', "2"); GM_setValue('GB_Pos', "fixed"); GM_setValue('GB_RandCol', "0"); GM_setValue('GB_MenuDisplay', "1"); GM_setValue('GB_Font', "Source Code Pro"); GM_setValue('GB_ColorCycleDuration', 2500); } //==============================Getting Variables============================== var vCurrentWebpage = window.location.href; var vColCycleDuration = GM_getValue("GB_ColorCycleDuration"); var vGoogleBarFontType = GM_getValue("GB_Font"); var vGoogleBarBackgroundColor = GM_getValue("GB_BGColor"); var vGoogleBarLinkColor = GM_getValue("GB_LColor"); var vGoogleBarBorderColor = GM_getValue("GB_BColor"); var vBarPosition = GM_getValue('GB_Pos'); var vMenuDisplay = GM_getValue('GB_MenuDisplay'); var vTotalBarLinks = GM_getValue('GB_TotalBarLinks'); var vTotalMenuLinks = GM_getValue('GB_TotalBarMenuLinks'); var GoogleColorBorder = "#3CBA54" var GoogleColorBorderIndex = 0; var vLinkColorMode = GM_getValue('GB_LColMode'); var vRandomColorMode = GM_getValue('GB_RandCol'); //==============================Reusable Functions============================== function addGoogleFont(FontName) { $("head").append("<link href='https://fonts.googleapis.com/css?family=" + FontName + "' rel='stylesheet' type='text/css'>"); } addGoogleFont(vGoogleBarFontType); function GenerateBarLinksFromGetValues() { var GoogleBarUrls = []; var LinkIndex; var vTotalBarLinks = GM_getValue('GB_TotalBarLinks'); for (LinkIndex = 1; LinkIndex <= GM_getValue("GB_TotalBarLinks"); LinkIndex++) { if (GM_getValue("GB_Url" + LinkIndex + "text") === undefined) { GM_setValue("GB_Url" + LinkIndex + "text", "Title"); GM_setValue("GB_Url" + LinkIndex, "https://www.example.com"); } GoogleBarUrls.push({ "title": GM_getValue("GB_Url" + LinkIndex + "text"), "link": GM_getValue("GB_Url" + LinkIndex) }); } $.each(GoogleBarUrls, function(key, val) { // if (val.LinkIndex.length > 0){ var $li = $("<li class=\"GBLinkBlock\"><a class=\"GBLink\" href='" + val.link + "'>" + val.title + "</a></li>"); $("#GoogleBar ul").append($li); }); } function GenerateBarMenuLinksFromGetValues() { var GoogleBarDropDownUrls = []; var LinkIndex; for (LinkIndex = 1; LinkIndex <= GM_getValue("GB_TotalBarMenuLinks"); LinkIndex++) { if (GM_getValue("GB_DropDownUrl" + LinkIndex + "text") === undefined) { GM_setValue("GB_DropDownUrl" + LinkIndex + "text", "Title"); GM_setValue("GB_DropDownUrl" + LinkIndex, "https://www.example.com"); } GoogleBarDropDownUrls.push({ "title": GM_getValue("GB_DropDownUrl" + LinkIndex + "text"), "link": GM_getValue("GB_DropDownUrl" + LinkIndex) }); } $.each(GoogleBarDropDownUrls, function(key, val) { // if (val.link.length > 0){ var $DropDownLink = $("<a href='" + val.link + "'>" + val.title + "</a>"); $(".dropdown-content").append($DropDownLink); }); if (vMenuDisplay === "0") { $('[name=GBMenuDisplay]').prop('checked', true); $(".dropdown").css("display", "none"); } else if (vMenuDisplay === "1") { $(".dropdown").css("display", "inline-block"); } } function GenerateSetBarLinkInput() { var table = $('<table></table>').addClass('SettingsGoogleBarLinksTable'); for (var i = 1; i <= GM_getValue("GB_TotalBarLinks"); i++) { var row = $('<tr></tr>').html('<td><input type="text" name="texturl' + i + '"></td><td><input type="text" name="barurl' + i + '"></td>'); table.append(row); }; $('#tab1').append(table); $('[name*= "barurl"]').keyup(function() { var Urlindex = $('[name*= "barurl"]').index(this); $('.GBLink').eq(Urlindex).attr("href", this.value); GM_setValue('GB_Url' + parseInt(Urlindex + 1) + '', this.value); GenerateExportSettings(); }); $('[name*= "texturl"]').keyup(function() { var Textindex = $('[name*= "texturl"]').index(this); $('.GBLink').eq(Textindex).html(this.value); GM_setValue('GB_Url' + parseInt(Textindex + 1) + 'text', this.value); GenerateExportSettings(); }); for (var i = 1; i <= GM_getValue("GB_TotalBarLinks"); i++) { $('[name = "barurl' + i + '"]').val(GM_getValue('GB_Url' + i + '')); $('[name = "texturl' + i + '"]').val(GM_getValue('GB_Url' + i + 'text')); } } function DestroyAndCreateBarLinksAndSettingInput(){ $(".SettingsGoogleBarLinksTable").remove(); $(".GBLinkBlock").remove(); GenerateBarLinksFromGetValues(); GenerateSetBarLinkInput(); $('.GBLinkBlock').eq(0).css("margin-left", "25px") $(".GBLinkBlock,.dropdown-content a,.GoogleBarDropDownButton").hover(function(e) { $(this).css("background-color", e.type === "mouseenter" ? shadeColor(GM_getValue("GB_BGColor"), parseInt(GM_getValue("GB_Hover"))) : "transparent") }); } function DestroyAndCreateMoreLinksAndSettingInput(){ var GoogleBarUrls = []; $(".SettingsGoogleBarMenuTable").remove(); $(".dropdown-content a").remove(); // $("").remove(); GenerateBarMenuLinksFromGetValues(); GenerateSetBarMenuLinkInputBoxes(); } function GenerateSetBarMenuLinkInputBoxes() { var table = $('<table></table>').addClass('SettingsGoogleBarMenuTable'); for (var i = 1; i <= GM_getValue("GB_TotalBarMenuLinks"); i++) { var row = $('<tr></tr>').html('<td><input type="text" value="' + GM_getValue('GB_DropDownUrl' + i + 'text') + '" name="DropDownText' + i + '"></td><td><input type="text" value="' + GM_getValue('GB_DropDownUrl' + i + '') + '" name="DropDownURL' + i + '"></td>'); table.append(row); }; $('#tab2').append(table); $('[name*= "DropDownURL"]').keyup(function() { var Urlindex = $('[name*= "DropDownURL"]').index(this); $('.dropdown-content a').eq(Urlindex).attr("href", this.value); GM_setValue('GB_DropDownUrl' + parseInt(Urlindex + 1) + '', this.value); GenerateExportSettings(); }); $('[name*= "DropDownText"]').keyup(function() { var Textindex = $('[name*= "DropDownText"]').index(this); $('.dropdown-content a').eq(Textindex).html(this.value); GM_setValue('GB_DropDownUrl' + parseInt(Textindex + 1) + 'text', this.value); GenerateExportSettings(); }); } function GenerateExportSettings() { var ExportSettingsText = "|===============Google Bar===============|"; ExportSettingsText += "\n" + GM_getValue("GB_BGColor"); ExportSettingsText += "|" + GM_getValue("GB_BColor"); ExportSettingsText += "|" + GM_getValue("GB_LColor"); ExportSettingsText += "|" + GM_getValue('GB_Pos'); ExportSettingsText += "|" + GM_getValue('GB_TotalBarLinks'); ExportSettingsText += "|" + GM_getValue('GB_TotalBarMenuLinks'); ExportSettingsText += "|" + GM_getValue('GB_LColMode'); ExportSettingsText += "|" + GM_getValue('GB_RandCol'); ExportSettingsText += "|" + GM_getValue('GB_MenuDisplay'); ExportSettingsText += "|" + GM_getValue('GB_Font'); ExportSettingsText += "|" + GM_getValue('GB_ColorCycleDuration'); ExportSettingsText += "\n|============Google Bar Links============|\n"; for (var i = 1; i <= GM_getValue("GB_TotalBarLinks"); i++) { ExportSettingsText += GM_getValue('GB_Url' + i) + '|' + GM_getValue('GB_Url' + i + 'text') + "\n"; } ExportSettingsText += "|==========Google Bar More Links=========|\n"; for (var i = 1; i <= GM_getValue("GB_TotalBarMenuLinks"); i++) { ExportSettingsText += GM_getValue('GB_DropDownUrl' + i) + '|' + GM_getValue('GB_DropDownUrl' + i + 'text') + "\n"; } $('#ExportSettings').val(ExportSettingsText); } function extractHostname(url) { var hostname; //find & remove protocol (http, ftp, etc.) and get the hostname if (url.indexOf("://") > -1) { hostname = url.split('/')[2]; } else { hostname = url.split('/')[0]; } //find & remove port number hostname = hostname.split(':')[0]; return hostname; } function shadeColor(color, percent) { var R = parseInt(color.substring(1, 3), 16); var G = parseInt(color.substring(3, 5), 16); var B = parseInt(color.substring(5, 7), 16); R = parseInt(R * (100 + percent) / 100); G = parseInt(G * (100 + percent) / 100); B = parseInt(B * (100 + percent) / 100); R = (R < 255) ? R : 255; G = (G < 255) ? G : 255; B = (B < 255) ? B : 255; var RR = ((R.toString(16).length == 1) ? "0" + R.toString(16) : R.toString(16)); var GG = ((G.toString(16).length == 1) ? "0" + G.toString(16) : G.toString(16)); var BB = ((B.toString(16).length == 1) ? "0" + B.toString(16) : B.toString(16)); return "#" + RR + GG + BB; } function invertColor(hex, bw) { if (hex.indexOf('#') === 0) { hex = hex.slice(1); } // convert 3-digit hex to 6-digits. if (hex.length === 3) { hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]; } if (hex.length !== 6) { throw new Error('Invalid HEX color.'); } var r = parseInt(hex.slice(0, 2), 16), g = parseInt(hex.slice(2, 4), 16), b = parseInt(hex.slice(4, 6), 16); if (bw) { // http://stackoverflow.com/a/3943023/112731 return (r * 0.299 + g * 0.587 + b * 0.114) > 186 ? '#000000' : '#FFFFFF'; } // invert color components r = (255 - r).toString(16); g = (255 - g).toString(16); b = (255 - b).toString(16); // pad each with zeros and return return "#" + padZero(r) + padZero(g) + padZero(b); } function padZero(str, len) { len = len || 2; var zeros = new Array(len).join('0'); return (zeros + str).slice(-len); } function RandomizeBarColor() { var vLinkColorMode = GM_getValue('GB_LColMode'); var vRandomColorMode = GM_getValue('GB_RandCol'); if (vRandomColorMode === "1") { GM_addStyle(`#GoogleBar a,#GearIcon,.GoogleBarDropDownButton{ ms-transition:color ` + vColCycleDuration + `ms linear; transition:color ` + vColCycleDuration + `ms linear; webkit-transition:color ` + vColCycleDuration + `ms linear;} #GoogleBar,.dropdown-content{ ms-transition:background-color ` + vColCycleDuration + `ms linear; transition:background-color ` + vColCycleDuration + `ms linear; webkit-transition:background-color ` + vColCycleDuration + `ms linear;}`); var vLinkColorMode = GM_getValue("GB_LColMode"); var RandomColorCSS = randomColor({ luminosity: 'dark', hue: '' }); $(".GBLinkBlock,.dropdown-content a,.GoogleBarDropDownButton").hover(function(e) { $(this).css("background-color", e.type === "mouseenter" ? "transparent" : "transparent") }); $('#GBColRand').prop('checked', true); $('#GoogleBar,.dropdown-content').css("background-color", RandomColorCSS); $("#GBarColorPicker").spectrum("set", RandomColorCSS); if (vLinkColorMode === "1") { $('#GoogleBar a,#GearIcon,.GoogleBarDropDownButton').css("color", invertColor(RandomColorCSS, "")); $("#GBarLinkColorPicker").spectrum("set", invertColor(RandomColorCSS, "")); } else if (vLinkColorMode === "2") { $('#GoogleBar a,#GearIcon,.GoogleBarDropDownButton').css("color", invertColor(RandomColorCSS, "BW")); $("#GBarLinkColorPicker").spectrum("set", invertColor(RandomColorCSS, "BW")); } else if (vLinkColorMode === "3") {} } else { $(".GBLinkBlock,.dropdown-content a,.GoogleBarDropDownButton").hover(function(e) { $(this).css("background-color", e.type === "mouseenter" ? shadeColor(GM_getValue("GB_BGColor"), parseInt(GM_getValue("GB_Hover"))) : "transparent") }); } } function GoogleBarSearch(SearchURL, SearchPath = 0) { $('[name="q"]').keyup(function KeyUp() { var Gsearchterm = encodeURIComponent(this.value); var Hostname = extractHostname(SearchURL); if (SearchURL.indexOf(SearchPath) > 1) { Hostname = SearchPath; } var SearchURLwQ = SearchURL + Gsearchterm; $('#GoogleBar [href*="' + Hostname + '"]').attr("href", SearchURLwQ); }); } //==============================Initially Create Bar Links============================== function CreateGoogleBar(){ $("html").append(` <div id="GoogleBar"> <ul></ul> </div> <div id="settings_box"> <div id="close_button">x</div> <div class="tabs"> <ul class="tab-links"> <li class="active"><a href="#tab1">Links</a> </li> <li><a href="#tab2">More</a> </li> <li><a href="#tab3">Colors</a> </li> <li><a href="#tab4">Placement</a> </li> <li><a href="#tab5">Font</a> </li> <li><a href="#tab6">▲▼</a> </li> </ul> <div class="tab-content"> <div id="tab1" class="tab active"> <h2>Google Bar Links<input type="number" name="BarLinkNumberInput" min="1" max="30" maxlength="2" oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);" value=` + vTotalBarLinks + `></h2> </div> <div id="tab2" class="tab"> <h2>Google Bar Drop Down Menu<input type="number" name="BarMenuNumberInput" min="1" max="30" maxlength="2" oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);" value=` + GM_getValue("GB_TotalBarMenuLinks") + `></h2> <div id="MoreDisplaySetting"> <label for="GBMenuDisplay">Disable More</label> <input type="checkbox" name="GBMenuDisplay" id="GBMenuDisplay" /> </div> </div> <div id="tab3" class="tab"> <h2>Google Bar Colors</h2> <br> <table id="GoogleBarColorLabels"> <tr><td>Bar Color</td><td>Link Color</td><td>Border Color</td></tr> </table> <input type='text' id="GBarColorPicker" /> <input type='text' id="GBarLinkColorPicker" /> <input type='text' id="GBarBorderColorPicker" /> <br> <label for="GBColRand">Cycle Color</label> <input type="checkbox" name="group-three" id="GBColRand" /> <input type='number' min="250" max="60000" step="250" value="` + vColCycleDuration + `" name='vColCycleDuration' /> <label for="ICol">Invert</label> <input title="Link Color is inverted from Bar Color" type="radio" name="group-one" id="ICol" value="1" /> <label for="BWCol">Black/White</label> <input title="Link Color is Black or White based on Bar Color" type="radio" name="group-one" id="BWCol" value="2" /> <label for="HPcol">Handpick</label> <input title="No Automatic Link Color Manipulation" type="radio" name="group-one" id="HPcol" value="3" /> </div> <div id="tab4" class="tab"> <h2>Google Bar Placement</h2> <div id="BarPosRadioButtons"> <label for="GBPosA">Sticky</label> <input type="checkbox" name="StickyCheckBox" id="GBPosA" value="absolute" /> </div> </div> <div id="tab5" class="tab"> <h2>Google Bar Font</h2> <div id="BarFontOption"> <select name="GoogleBarFont"> <option value="ABeeZee">ABeeZee</option> <option value="Abel">Abel</option> <option value="Abril Fatface">Abril Fatface</option> <option value="Aclonica">Aclonica</option> <option value="Acme">Acme</option> <option value="Actor">Actor</option> <option value="Adamina">Adamina</option> <option value="Advent Pro">Advent Pro</option> <option value="Aguafina Script">Aguafina Script</option> <option value="Akronim">Akronim</option> <option value="Aladin">Aladin</option> <option value="Aldrich">Aldrich</option> <option value="Alef">Alef</option> <option value="Alegreya">Alegreya</option> <option value="Alegreya SC">Alegreya SC</option> <option value="Alegreya Sans">Alegreya Sans</option> <option value="Alegreya Sans SC">Alegreya Sans SC</option> <option value="Alex Brush">Alex Brush</option> <option value="Alfa Slab One">Alfa Slab One</option> <option value="Alice">Alice</option> <option value="Alike">Alike</option> <option value="Alike Angular">Alike Angular</option> <option value="Allan">Allan</option> <option value="Allerta">Allerta</option> <option value="Allerta Stencil">Allerta Stencil</option> <option value="Allura">Allura</option> <option value="Almendra">Almendra</option> <option value="Almendra Display">Almendra Display</option> <option value="Almendra SC">Almendra SC</option> <option value="Amarante">Amarante</option> <option value="Amaranth">Amaranth</option> <option value="Amatic SC">Amatic SC</option> <option value="Amethysta">Amethysta</option> <option value="Amiri">Amiri</option> <option value="Amita">Amita</option> <option value="Anaheim">Anaheim</option> <option value="Andada">Andada</option> <option value="Andika">Andika</option> <option value="Angkor">Angkor</option> <option value="Annie Use Your Telescope">Annie Use Your Telescope</option> <option value="Anonymous Pro">Anonymous Pro</option> <option value="Antic">Antic</option> <option value="Antic Didone">Antic Didone</option> <option value="Antic Slab">Antic Slab</option> <option value="Anton">Anton</option> <option value="Arapey">Arapey</option> <option value="Arbutus">Arbutus</option> <option value="Arbutus Slab">Arbutus Slab</option> <option value="Architects Daughter">Architects Daughter</option> <option value="Archivo Black">Archivo Black</option> <option value="Archivo Narrow">Archivo Narrow</option> <option value="Arimo">Arimo</option> <option value="Arizonia">Arizonia</option> <option value="Armata">Armata</option> <option value="Artifika">Artifika</option> <option value="Arvo">Arvo</option> <option value="Arya">Arya</option> <option value="Asap">Asap</option> <option value="Asar">Asar</option> <option value="Asset">Asset</option> <option value="Astloch">Astloch</option> <option value="Asul">Asul</option> <option value="Atomic Age">Atomic Age</option> <option value="Aubrey">Aubrey</option> <option value="Audiowide">Audiowide</option> <option value="Autour One">Autour One</option> <option value="Average">Average</option> <option value="Average Sans">Average Sans</option> <option value="Averia Gruesa Libre">Averia Gruesa Libre</option> <option value="Averia Libre">Averia Libre</option> <option value="Averia Sans Libre">Averia Sans Libre</option> <option value="Averia Serif Libre">Averia Serif Libre</option> <option value="Bad Script">Bad Script</option> <option value="Balthazar">Balthazar</option> <option value="Bangers">Bangers</option> <option value="Basic">Basic</option> <option value="Battambang">Battambang</option> <option value="Baumans">Baumans</option> <option value="Bayon">Bayon</option> <option value="Belgrano">Belgrano</option> <option value="Belleza">Belleza</option> <option value="BenchNine">BenchNine</option> <option value="Bentham">Bentham</option> <option value="Berkshire Swash">Berkshire Swash</option> <option value="Bevan">Bevan</option> <option value="Bigelow Rules">Bigelow Rules</option> <option value="Bigshot One">Bigshot One</option> <option value="Bilbo">Bilbo</option> <option value="Bilbo Swash Caps">Bilbo Swash Caps</option> <option value="Biryani">Biryani</option> <option value="Bitter">Bitter</option> <option value="Black Ops One">Black Ops One</option> <option value="Bokor">Bokor</option> <option value="Bonbon">Bonbon</option> <option value="Boogaloo">Boogaloo</option> <option value="Bowlby One">Bowlby One</option> <option value="Bowlby One SC">Bowlby One SC</option> <option value="Brawler">Brawler</option> <option value="Bree Serif">Bree Serif</option> <option value="Bubblegum Sans">Bubblegum Sans</option> <option value="Bubbler One">Bubbler One</option> <option value="Buda">Buda</option> <option value="Buenard">Buenard</option> <option value="Butcherman">Butcherman</option> <option value="Butterfly Kids">Butterfly Kids</option> <option value="Cabin">Cabin</option> <option value="Cabin Condensed">Cabin Condensed</option> <option value="Cabin Sketch">Cabin Sketch</option> <option value="Caesar Dressing">Caesar Dressing</option> <option value="Cagliostro">Cagliostro</option> <option value="Calligraffitti">Calligraffitti</option> <option value="Cambay">Cambay</option> <option value="Cambo">Cambo</option> <option value="Candal">Candal</option> <option value="Cantarell">Cantarell</option> <option value="Cantata One">Cantata One</option> <option value="Cantora One">Cantora One</option> <option value="Capriola">Capriola</option> <option value="Cardo">Cardo</option> <option value="Carme">Carme</option> <option value="Carrois Gothic">Carrois Gothic</option> <option value="Carrois Gothic SC">Carrois Gothic SC</option> <option value="Carter One">Carter One</option> <option value="Catamaran">Catamaran</option> <option value="Caudex">Caudex</option> <option value="Caveat">Caveat</option> <option value="Caveat Brush">Caveat Brush</option> <option value="Cedarville Cursive">Cedarville Cursive</option> <option value="Ceviche One">Ceviche One</option> <option value="Changa One">Changa One</option> <option value="Chango">Chango</option> <option value="Chau Philomene One">Chau Philomene One</option> <option value="Chela One">Chela One</option> <option value="Chelsea Market">Chelsea Market</option> <option value="Chenla">Chenla</option> <option value="Cherry Cream Soda">Cherry Cream Soda</option> <option value="Cherry Swash">Cherry Swash</option> <option value="Chewy">Chewy</option> <option value="Chicle">Chicle</option> <option value="Chivo">Chivo</option> <option value="Chonburi">Chonburi</option> <option value="Cinzel">Cinzel</option> <option value="Cinzel Decorative">Cinzel Decorative</option> <option value="Clicker Script">Clicker Script</option> <option value="Coda">Coda</option> <option value="Coda Caption">Coda Caption</option> <option value="Codystar">Codystar</option> <option value="Combo">Combo</option> <option value="Comfortaa">Comfortaa</option> <option value="Coming Soon">Coming Soon</option> <option value="Concert One">Concert One</option> <option value="Condiment">Condiment</option> <option value="Content">Content</option> <option value="Contrail One">Contrail One</option> <option value="Convergence">Convergence</option> <option value="Cookie">Cookie</option> <option value="Copse">Copse</option> <option value="Corben">Corben</option> <option value="Courgette">Courgette</option> <option value="Cousine">Cousine</option> <option value="Coustard">Coustard</option> <option value="Covered By Your Grace">Covered By Your Grace</option> <option value="Crafty Girls">Crafty Girls</option> <option value="Creepster">Creepster</option> <option value="Crete Round">Crete Round</option> <option value="Crimson Text">Crimson Text</option> <option value="Croissant One">Croissant One</option> <option value="Crushed">Crushed</option> <option value="Cuprum">Cuprum</option> <option value="Cutive">Cutive</option> <option value="Cutive Mono">Cutive Mono</option> <option value="Damion">Damion</option> <option value="Dancing Script">Dancing Script</option> <option value="Dangrek">Dangrek</option> <option value="Dawning of a New Day">Dawning of a New Day</option> <option value="Days One">Days One</option> <option value="Dekko">Dekko</option> <option value="Delius">Delius</option> <option value="Delius Swash Caps">Delius Swash Caps</option> <option value="Delius Unicase">Delius Unicase</option> <option value="Della Respira">Della Respira</option> <option value="Denk One">Denk One</option> <option value="Devonshire">Devonshire</option> <option value="Dhurjati">Dhurjati</option> <option value="Didact Gothic">Didact Gothic</option> <option value="Diplomata">Diplomata</option> <option value="Diplomata SC">Diplomata SC</option> <option value="Domine">Domine</option> <option value="Donegal One">Donegal One</option> <option value="Doppio One">Doppio One</option> <option value="Dorsa">Dorsa</option> <option value="Dosis">Dosis</option> <option value="Dr Sugiyama">Dr Sugiyama</option> <option value="Droid Sans">Droid Sans</option> <option value="Droid Sans Mono">Droid Sans Mono</option> <option value="Droid Serif">Droid Serif</option> <option value="Duru Sans">Duru Sans</option> <option value="Dynalight">Dynalight</option> <option value="EB Garamond">EB Garamond</option> <option value="Eagle Lake">Eagle Lake</option> <option value="Eater">Eater</option> <option value="Economica">Economica</option> <option value="Eczar">Eczar</option> <option value="Ek Mukta">Ek Mukta</option> <option value="Electrolize">Electrolize</option> <option value="Elsie">Elsie</option> <option value="Elsie Swash Caps">Elsie Swash Caps</option> <option value="Emblema One">Emblema One</option> <option value="Emilys Candy">Emilys Candy</option> <option value="Engagement">Engagement</option> <option value="Englebert">Englebert</option> <option value="Enriqueta">Enriqueta</option> <option value="Erica One">Erica One</option> <option value="Esteban">Esteban</option> <option value="Euphoria Script">Euphoria Script</option> <option value="Ewert">Ewert</option> <option value="Exo">Exo</option> <option value="Exo 2">Exo 2</option> <option value="Expletus Sans">Expletus Sans</option> <option value="Fanwood Text">Fanwood Text</option> <option value="Fascinate">Fascinate</option> <option value="Fascinate Inline">Fascinate Inline</option> <option value="Faster One">Faster One</option> <option value="Fasthand">Fasthand</option> <option value="Fauna One">Fauna One</option> <option value="Federant">Federant</option> <option value="Federo">Federo</option> <option value="Felipa">Felipa</option> <option value="Fenix">Fenix</option> <option value="Finger Paint">Finger Paint</option> <option value="Fira Mono">Fira Mono</option> <option value="Fira Sans">Fira Sans</option> <option value="Fjalla One">Fjalla One</option> <option value="Fjord One">Fjord One</option> <option value="Flamenco">Flamenco</option> <option value="Flavors">Flavors</option> <option value="Fondamento">Fondamento</option> <option value="Fontdiner Swanky">Fontdiner Swanky</option> <option value="Forum">Forum</option> <option value="Francois One">Francois One</option> <option value="Freckle Face">Freckle Face</option> <option value="Fredericka the Great">Fredericka the Great</option> <option value="Fredoka One">Fredoka One</option> <option value="Fresca">Fresca</option> <option value="Frijole">Frijole</option> <option value="Fruktur">Fruktur</option> <option value="Fugaz One">Fugaz One</option> <option value="Gabriela">Gabriela</option> <option value="Gafata">Gafata</option> <option value="Galdeano">Galdeano</option> <option value="Galindo">Galindo</option> <option value="Gentium Basic">Gentium Basic</option> <option value="Gentium Book Basic">Gentium Book Basic</option> <option value="Geo">Geo</option> <option value="Geostar">Geostar</option> <option value="Geostar Fill">Geostar Fill</option> <option value="Germania One">Germania One</option> <option value="Gidugu">Gidugu</option> <option value="Gilda Display">Gilda Display</option> <option value="Give You Glory">Give You Glory</option> <option value="Glass Antiqua">Glass Antiqua</option> <option value="Glegoo">Glegoo</option> <option value="Gloria Hallelujah">Gloria Hallelujah</option> <option value="Goblin One">Goblin One</option> <option value="Gochi Hand">Gochi Hand</option> <option value="Gorditas">Gorditas</option> <option value="Graduate">Graduate</option> <option value="Grand Hotel">Grand Hotel</option> <option value="Gravitas One">Gravitas One</option> <option value="Great Vibes">Great Vibes</option> <option value="Griffy">Griffy</option> <option value="Gruppo">Gruppo</option> <option value="Gudea">Gudea</option> <option value="Gurajada">Gurajada</option> <option value="Habibi">Habibi</option> <option value="Halant">Halant</option> <option value="Hammersmith One">Hammersmith One</option> <option value="Hanalei">Hanalei</option> <option value="Hanalei Fill">Hanalei Fill</option> <option value="Handlee">Handlee</option> <option value="Hanuman">Hanuman</option> <option value="Happy Monkey">Happy Monkey</option> <option value="Headland One">Headland One</option> <option value="Henny Penny">Henny Penny</option> <option value="Herr Von Muellerhoff">Herr Von Muellerhoff</option> <option value="Hind">Hind</option> <option value="Hind Siliguri">Hind Siliguri</option> <option value="Hind Vadodara">Hind Vadodara</option> <option value="Holtwood One SC">Holtwood One SC</option> <option value="Homemade Apple">Homemade Apple</option> <option value="Homenaje">Homenaje</option> <option value="IM Fell DW Pica">IM Fell DW Pica</option> <option value="IM Fell DW Pica SC">IM Fell DW Pica SC</option> <option value="IM Fell Double Pica">IM Fell Double Pica</option> <option value="IM Fell Double Pica SC">IM Fell Double Pica SC</option> <option value="IM Fell English">IM Fell English</option> <option value="IM Fell English SC">IM Fell English SC</option> <option value="IM Fell French Canon">IM Fell French Canon</option> <option value="IM Fell French Canon SC">IM Fell French Canon SC</option> <option value="IM Fell Great Primer">IM Fell Great Primer</option> <option value="IM Fell Great Primer SC">IM Fell Great Primer SC</option> <option value="Iceberg">Iceberg</option> <option value="Iceland">Iceland</option> <option value="Imprima">Imprima</option> <option value="Inconsolata">Inconsolata</option> <option value="Inder">Inder</option> <option value="Indie Flower">Indie Flower</option> <option value="Inika">Inika</option> <option value="Inknut Antiqua">Inknut Antiqua</option> <option value="Irish Grover">Irish Grover</option> <option value="Istok Web">Istok Web</option> <option value="Italiana">Italiana</option> <option value="Italianno">Italianno</option> <option value="Itim">Itim</option> <option value="Jacques Francois">Jacques Francois</option> <option value="Jacques Francois Shadow">Jacques Francois Shadow</option> <option value="Jaldi">Jaldi</option> <option value="Jim Nightshade">Jim Nightshade</option> <option value="Jockey One">Jockey One</option> <option value="Jolly Lodger">Jolly Lodger</option> <option value="Josefin Sans">Josefin Sans</option> <option value="Josefin Slab">Josefin Slab</option> <option value="Joti One">Joti One</option> <option value="Judson">Judson</option> <option value="Julee">Julee</option> <option value="Julius Sans One">Julius Sans One</option> <option value="Junge">Junge</option> <option value="Jura">Jura</option> <option value="Just Another Hand">Just Another Hand</option> <option value="Just Me Again Down Here">Just Me Again Down Here</option> <option value="Kadwa">Kadwa</option> <option value="Kalam">Kalam</option> <option value="Kameron">Kameron</option> <option value="Kantumruy">Kantumruy</option> <option value="Karla">Karla</option> <option value="Karma">Karma</option> <option value="Kaushan Script">Kaushan Script</option> <option value="Kavoon">Kavoon</option> <option value="Kdam Thmor">Kdam Thmor</option> <option value="Keania One">Keania One</option> <option value="Kelly Slab">Kelly Slab</option> <option value="Kenia">Kenia</option> <option value="Khand">Khand</option> <option value="Khmer">Khmer</option> <option value="Khula">Khula</option> <option value="Kite One">Kite One</option> <option value="Knewave">Knewave</option> <option value="Kotta One">Kotta One</option> <option value="Koulen">Koulen</option> <option value="Kranky">Kranky</option> <option value="Kreon">Kreon</option> <option value="Kristi">Kristi</option> <option value="Krona One">Krona One</option> <option value="Kurale">Kurale</option> <option value="La Belle Aurore">La Belle Aurore</option> <option value="Laila">Laila</option> <option value="Lakki Reddy">Lakki Reddy</option> <option value="Lancelot">Lancelot</option> <option value="Lateef">Lateef</option> <option value="Lato">Lato</option> <option value="League Script">League Script</option> <option value="Leckerli One">Leckerli One</option> <option value="Ledger">Ledger</option> <option value="Lekton">Lekton</option> <option value="Lemon">Lemon</option> <option value="Libre Baskerville">Libre Baskerville</option> <option value="Life Savers">Life Savers</option> <option value="Lilita One">Lilita One</option> <option value="Lily Script One">Lily Script One</option> <option value="Limelight">Limelight</option> <option value="Linden Hill">Linden Hill</option> <option value="Lobster">Lobster</option> <option value="Lobster Two">Lobster Two</option> <option value="Londrina Outline">Londrina Outline</option> <option value="Londrina Shadow">Londrina Shadow</option> <option value="Londrina Sketch">Londrina Sketch</option> <option value="Londrina Solid">Londrina Solid</option> <option value="Lora">Lora</option> <option value="Love Ya Like A Sister">Love Ya Like A Sister</option> <option value="Loved by the King">Loved by the King</option> <option value="Lovers Quarrel">Lovers Quarrel</option> <option value="Luckiest Guy">Luckiest Guy</option> <option value="Lusitana">Lusitana</option> <option value="Lustria">Lustria</option> <option value="Macondo">Macondo</option> <option value="Macondo Swash Caps">Macondo Swash Caps</option> <option value="Magra">Magra</option> <option value="Maiden Orange">Maiden Orange</option> <option value="Mako">Mako</option> <option value="Mallanna">Mallanna</option> <option value="Mandali">Mandali</option> <option value="Marcellus">Marcellus</option> <option value="Marcellus SC">Marcellus SC</option> <option value="Marck Script">Marck Script</option> <option value="Margarine">Margarine</option> <option value="Marko One">Marko One</option> <option value="Marmelad">Marmelad</option> <option value="Martel">Martel</option> <option value="Martel Sans">Martel Sans</option> <option value="Marvel">Marvel</option> <option value="Mate">Mate</option> <option value="Mate SC">Mate SC</option> <option value="Maven Pro">Maven Pro</option> <option value="McLaren">McLaren</option> <option value="Meddon">Meddon</option> <option value="MedievalSharp">MedievalSharp</option> <option value="Medula One">Medula One</option> <option value="Megrim">Megrim</option> <option value="Meie Script">Meie Script</option> <option value="Merienda">Merienda</option> <option value="Merienda One">Merienda One</option> <option value="Merriweather">Merriweather</option> <option value="Merriweather Sans">Merriweather Sans</option> <option value="Metal">Metal</option> <option value="Metal Mania">Metal Mania</option> <option value="Metamorphous">Metamorphous</option> <option value="Metrophobic">Metrophobic</option> <option value="Michroma">Michroma</option> <option value="Milonga">Milonga</option> <option value="Miltonian">Miltonian</option> <option value="Miltonian Tattoo">Miltonian Tattoo</option> <option value="Miniver">Miniver</option> <option value="Miss Fajardose">Miss Fajardose</option> <option value="Modak">Modak</option> <option value="Modern Antiqua">Modern Antiqua</option> <option value="Molengo">Molengo</option> <option value="Molle">Molle</option> <option value="Monda">Monda</option> <option value="Monofett">Monofett</option> <option value="Monoton">Monoton</option> <option value="Monsieur La Doulaise">Monsieur La Doulaise</option> <option value="Montaga">Montaga</option> <option value="Montez">Montez</option> <option value="Montserrat">Montserrat</option> <option value="Montserrat Alternates">Montserrat Alternates</option> <option value="Montserrat Subrayada">Montserrat Subrayada</option> <option value="Moul">Moul</option> <option value="Moulpali">Moulpali</option> <option value="Mountains of Christmas">Mountains of Christmas</option> <option value="Mouse Memoirs">Mouse Memoirs</option> <option value="Mr Bedfort">Mr Bedfort</option> <option value="Mr Dafoe">Mr Dafoe</option> <option value="Mr De Haviland">Mr De Haviland</option> <option value="Mrs Saint Delafield">Mrs Saint Delafield</option> <option value="Mrs Sheppards">Mrs Sheppards</option> <option value="Muli">Muli</option> <option value="Mystery Quest">Mystery Quest</option> <option value="NTR">NTR</option> <option value="Neucha">Neucha</option> <option value="Neuton">Neuton</option> <option value="New Rocker">New Rocker</option> <option value="News Cycle">News Cycle</option> <option value="Niconne">Niconne</option> <option value="Nixie One">Nixie One</option> <option value="Nobile">Nobile</option> <option value="Nokora">Nokora</option> <option value="Norican">Norican</option> <option value="Nosifer">Nosifer</option> <option value="Nothing You Could Do">Nothing You Could Do</option> <option value="Noticia Text">Noticia Text</option> <option value="Noto Sans">Noto Sans</option> <option value="Noto Serif">Noto Serif</option> <option value="Nova Cut">Nova Cut</option> <option value="Nova Flat">Nova Flat</option> <option value="Nova Mono">Nova Mono</option> <option value="Nova Oval">Nova Oval</option> <option value="Nova Round">Nova Round</option> <option value="Nova Script">Nova Script</option> <option value="Nova Slim">Nova Slim</option> <option value="Nova Square">Nova Square</option> <option value="Numans">Numans</option> <option value="Nunito">Nunito</option> <option value="Odor Mean Chey">Odor Mean Chey</option> <option value="Offside">Offside</option> <option value="Old Standard TT">Old Standard TT</option> <option value="Oldenburg">Oldenburg</option> <option value="Oleo Script">Oleo Script</option> <option value="Oleo Script Swash Caps">Oleo Script Swash Caps</option> <option value="Open Sans">Open Sans</option> <option value="Open Sans Condensed">Open Sans Condensed</option> <option value="Oranienbaum">Oranienbaum</option> <option value="Orbitron">Orbitron</option> <option value="Oregano">Oregano</option> <option value="Orienta">Orienta</option> <option value="Original Surfer">Original Surfer</option> <option value="Oswald">Oswald</option> <option value="Over the Rainbow">Over the Rainbow</option> <option value="Overlock">Overlock</option> <option value="Overlock SC">Overlock SC</option> <option value="Ovo">Ovo</option> <option value="Oxygen">Oxygen</option> <option value="Oxygen Mono">Oxygen Mono</option> <option value="PT Mono">PT Mono</option> <option value="PT Sans">PT Sans</option> <option value="PT Sans Caption">PT Sans Caption</option> <option value="PT Sans Narrow">PT Sans Narrow</option> <option value="PT Serif">PT Serif</option> <option value="PT Serif Caption">PT Serif Caption</option> <option value="Pacifico">Pacifico</option> <option value="Palanquin">Palanquin</option> <option value="Palanquin Dark">Palanquin Dark</option> <option value="Paprika">Paprika</option> <option value="Parisienne">Parisienne</option> <option value="Passero One">Passero One</option> <option value="Passion One">Passion One</option> <option value="Pathway Gothic One">Pathway Gothic One</option> <option value="Patrick Hand">Patrick Hand</option> <option value="Patrick Hand SC">Patrick Hand SC</option> <option value="Patua One">Patua One</option> <option value="Paytone One">Paytone One</option> <option value="Peddana">Peddana</option> <option value="Peralta">Peralta</option> <option value="Permanent Marker">Permanent Marker</option> <option value="Petit Formal Script">Petit Formal Script</option> <option value="Petrona">Petrona</option> <option value="Philosopher">Philosopher</option> <option value="Piedra">Piedra</option> <option value="Pinyon Script">Pinyon Script</option> <option value="Pirata One">Pirata One</option> <option value="Plaster">Plaster</option> <option value="Play">Play</option> <option value="Playball">Playball</option> <option value="Playfair Display">Playfair Display</option> <option value="Playfair Display SC">Playfair Display SC</option> <option value="Podkova">Podkova</option> <option value="Poiret One">Poiret One</option> <option value="Poller One">Poller One</option> <option value="Poly">Poly</option> <option value="Pompiere">Pompiere</option> <option value="Pontano Sans">Pontano Sans</option> <option value="Poppins">Poppins</option> <option value="Port Lligat Sans">Port Lligat Sans</option> <option value="Port Lligat Slab">Port Lligat Slab</option> <option value="Pragati Narrow">Pragati Narrow</option> <option value="Prata">Prata</option> <option value="Preahvihear">Preahvihear</option> <option value="Press Start 2P">Press Start 2P</option> <option value="Princess Sofia">Princess Sofia</option> <option value="Prociono">Prociono</option> <option value="Prosto One">Prosto One</option> <option value="Puritan">Puritan</option> <option value="Purple Purse">Purple Purse</option> <option value="Quando">Quando</option> <option value="Quantico">Quantico</option> <option value="Quattrocento">Quattrocento</option> <option value="Quattrocento Sans">Quattrocento Sans</option> <option value="Questrial">Questrial</option> <option value="Quicksand">Quicksand</option> <option value="Quintessential">Quintessential</option> <option value="Qwigley">Qwigley</option> <option value="Racing Sans One">Racing Sans One</option> <option value="Radley">Radley</option> <option value="Rajdhani">Rajdhani</option> <option value="Raleway">Raleway</option> <option value="Raleway Dots">Raleway Dots</option> <option value="Ramabhadra">Ramabhadra</option> <option value="Ramaraja">Ramaraja</option> <option value="Rambla">Rambla</option> <option value="Rammetto One">Rammetto One</option> <option value="Ranchers">Ranchers</option> <option value="Rancho">Rancho</option> <option value="Ranga">Ranga</option> <option value="Rationale">Rationale</option> <option value="Ravi Prakash">Ravi Prakash</option> <option value="Redressed">Redressed</option> <option value="Reenie Beanie">Reenie Beanie</option> <option value="Revalia">Revalia</option> <option value="Rhodium Libre">Rhodium Libre</option> <option value="Ribeye">Ribeye</option> <option value="Ribeye Marrow">Ribeye Marrow</option> <option value="Righteous">Righteous</option> <option value="Risque">Risque</option> <option value="Roboto">Roboto</option> <option value="Roboto Condensed">Roboto Condensed</option> <option value="Roboto Mono">Roboto Mono</option> <option value="Roboto Slab">Roboto Slab</option> <option value="Rochester">Rochester</option> <option value="Rock Salt">Rock Salt</option> <option value="Rokkitt">Rokkitt</option> <option value="Romanesco">Romanesco</option> <option value="Ropa Sans">Ropa Sans</option> <option value="Rosario">Rosario</option> <option value="Rosarivo">Rosarivo</option> <option value="Rouge Script">Rouge Script</option> <option value="Rozha One">Rozha One</option> <option value="Rubik">Rubik</option> <option value="Rubik Mono One">Rubik Mono One</option> <option value="Rubik One">Rubik One</option> <option value="Ruda">Ruda</option> <option value="Rufina">Rufina</option> <option value="Ruge Boogie">Ruge Boogie</option> <option value="Ruluko">Ruluko</option> <option value="Rum Raisin">Rum Raisin</option> <option value="Ruslan Display">Ruslan Display</option> <option value="Russo One">Russo One</option> <option value="Ruthie">Ruthie</option> <option value="Rye">Rye</option> <option value="Sacramento">Sacramento</option> <option value="Sahitya">Sahitya</option> <option value="Sail">Sail</option> <option value="Salsa">Salsa</option> <option value="Sanchez">Sanchez</option> <option value="Sancreek">Sancreek</option> <option value="Sansita One">Sansita One</option> <option value="Sarala">Sarala</option> <option value="Sarina">Sarina</option> <option value="Sarpanch">Sarpanch</option> <option value="Satisfy">Satisfy</option> <option value="Scada">Scada</option> <option value="Scheherazade">Scheherazade</option> <option value="Schoolbell">Schoolbell</option> <option value="Seaweed Script">Seaweed Script</option> <option value="Sevillana">Sevillana</option> <option value="Seymour One">Seymour One</option> <option value="Shadows Into Light">Shadows Into Light</option> <option value="Shadows Into Light Two">Shadows Into Light Two</option> <option value="Shanti">Shanti</option> <option value="Share">Share</option> <option value="Share Tech">Share Tech</option> <option value="Share Tech Mono">Share Tech Mono</option> <option value="Shojumaru">Shojumaru</option> <option value="Short Stack">Short Stack</option> <option value="Siemreap">Siemreap</option> <option value="Sigmar One">Sigmar One</option> <option value="Signika">Signika</option> <option value="Signika Negative">Signika Negative</option> <option value="Simonetta">Simonetta</option> <option value="Sintony">Sintony</option> <option value="Sirin Stencil">Sirin Stencil</option> <option value="Six Caps">Six Caps</option> <option value="Skranji">Skranji</option> <option value="Slabo 13px">Slabo 13px</option> <option value="Slabo 27px">Slabo 27px</option> <option value="Slackey">Slackey</option> <option value="Smokum">Smokum</option> <option value="Smythe">Smythe</option> <option value="Sniglet">Sniglet</option> <option value="Snippet">Snippet</option> <option value="Snowburst One">Snowburst One</option> <option value="Sofadi One">Sofadi One</option> <option value="Sofia">Sofia</option> <option value="Sonsie One">Sonsie One</option> <option value="Sorts Mill Goudy">Sorts Mill Goudy</option> <option value="Source Code Pro">Source Code Pro</option> <option value="Source Sans Pro">Source Sans Pro</option> <option value="Source Serif Pro">Source Serif Pro</option> <option value="Special Elite">Special Elite</option> <option value="Spicy Rice">Spicy Rice</option> <option value="Spinnaker">Spinnaker</option> <option value="Spirax">Spirax</option> <option value="Squada One">Squada One</option> <option value="Sree Krushnadevaraya">Sree Krushnadevaraya</option> <option value="Stalemate">Stalemate</option> <option value="Stalinist One">Stalinist One</option> <option value="Stardos Stencil">Stardos Stencil</option> <option value="Stint Ultra Condensed">Stint Ultra Condensed</option> <option value="Stint Ultra Expanded">Stint Ultra Expanded</option> <option value="Stoke">Stoke</option> <option value="Strait">Strait</option> <option value="Sue Ellen Francisco">Sue Ellen Francisco</option> <option value="Sumana">Sumana</option> <option value="Sunshiney">Sunshiney</option> <option value="Supermercado One">Supermercado One</option> <option value="Sura">Sura</option> <option value="Suranna">Suranna</option> <option value="Suravaram">Suravaram</option> <option value="Suwannaphum">Suwannaphum</option> <option value="Swanky and Moo Moo">Swanky and Moo Moo</option> <option value="Syncopate">Syncopate</option> <option value="Tangerine">Tangerine</option> <option value="Taprom">Taprom</option> <option value="Tauri">Tauri</option> <option value="Teko">Teko</option> <option value="Telex">Telex</option> <option value="Tenali Ramakrishna">Tenali Ramakrishna</option> <option value="Tenor Sans">Tenor Sans</option> <option value="Text Me One">Text Me One</option> <option value="The Girl Next Door">The Girl Next Door</option> <option value="Tienne">Tienne</option> <option value="Tillana">Tillana</option> <option value="Timmana">Timmana</option> <option value="Tinos">Tinos</option> <option value="Titan One">Titan One</option> <option value="Titillium Web">Titillium Web</option> <option value="Trade Winds">Trade Winds</option> <option value="Trocchi">Trocchi</option> <option value="Trochut">Trochut</option> <option value="Trykker">Trykker</option> <option value="Tulpen One">Tulpen One</option> <option value="Ubuntu">Ubuntu</option> <option value="Ubuntu Condensed">Ubuntu Condensed</option> <option value="Ubuntu Mono">Ubuntu Mono</option> <option value="Ultra">Ultra</option> <option value="Uncial Antiqua">Uncial Antiqua</option> <option value="Underdog">Underdog</option> <option value="Unica One">Unica One</option> <option value="UnifrakturCook">UnifrakturCook</option> <option value="UnifrakturMaguntia">UnifrakturMaguntia</option> <option value="Unkempt">Unkempt</option> <option value="Unlock">Unlock</option> <option value="Unna">Unna</option> <option value="VT323">VT323</option> <option value="Vampiro One">Vampiro One</option> <option value="Varela">Varela</option> <option value="Varela Round">Varela Round</option> <option value="Vast Shadow">Vast Shadow</option> <option value="Vesper Libre">Vesper Libre</option> <option value="Vibur">Vibur</option> <option value="Vidaloka">Vidaloka</option> <option value="Viga">Viga</option> <option value="Voces">Voces</option> <option value="Volkhov">Volkhov</option> <option value="Vollkorn">Vollkorn</option> <option value="Voltaire">Voltaire</option> <option value="Waiting for the Sunrise">Waiting for the Sunrise</option> <option value="Wallpoet">Wallpoet</option> <option value="Walter Turncoat">Walter Turncoat</option> <option value="Warnes">Warnes</option> <option value="Wellfleet">Wellfleet</option> <option value="Wendy One">Wendy One</option> <option value="Wire One">Wire One</option> <option value="Work Sans">Work Sans</option> <option value="Yanone Kaffeesatz">Yanone Kaffeesatz</option> <option value="Yantramanav">Yantramanav</option> <option value="Yellowtail">Yellowtail</option> <option value="Yeseva One">Yeseva One</option> <option value="Yesteryear">Yesteryear</option> <option value="Zeyada">Zeyada</option> </select> </div> </div> <div id="tab6" class="tab"> <h2>Import/Export</h2> <h4>Import</h4> <textarea id="ImportSettings" rows="6" cols="50"></textarea> <h4>Export</h4> <textarea id="ExportSettings" rows="6" cols="50"></textarea> <button id="CopyButton">Copy</button> </div> </div> <div> <table id="SettingsFooter"> <tr> <td><a id="SubmitBug" title="Submit a bug" href="https://gf.qytechs.cn/en/forum/post/discussion?script=29660"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAATCAYAAACQjC21AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAADowaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzExMSA3OS4xNTgzMjUsIDIwMTUvMDkvMTAtMDE6MTA6MjAgICAgICAgICI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgICAgICAgICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICAgICAgICAgIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgICAgICAgICAgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8eG1wOkNyZWF0b3JUb29sPkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE1IChXaW5kb3dzKTwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8eG1wOkNyZWF0ZURhdGU+MjAxNy0wNS0wOVQxNjoyOTozNS0wNTowMDwveG1wOkNyZWF0ZURhdGU+CiAgICAgICAgIDx4bXA6TWV0YWRhdGFEYXRlPjIwMTctMDUtMDlUMTY6Mjk6MzUtMDU6MDA8L3htcDpNZXRhZGF0YURhdGU+CiAgICAgICAgIDx4bXA6TW9kaWZ5RGF0ZT4yMDE3LTA1LTA5VDE2OjI5OjM1LTA1OjAwPC94bXA6TW9kaWZ5RGF0ZT4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+eG1wLmlpZDo0NzIzNjQ4Zi0wZTVmLWQ2NDktYjJjNi02OWNmZGNjZmI0Njk8L3htcE1NOkluc3RhbmNlSUQ+CiAgICAgICAgIDx4bXBNTTpEb2N1bWVudElEPmFkb2JlOmRvY2lkOnBob3Rvc2hvcDo4YjliNGFhYy0zNGZlLTExZTctYjRkMC1lMjlhMmRmYWRjNzE8L3htcE1NOkRvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+eG1wLmRpZDowYmYyMzM3NS1kY2E3LTdkNGItYTYwNi02ZmU4NDRjZTRhZDU8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jcmVhdGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6MGJmMjMzNzUtZGNhNy03ZDRiLWE2MDYtNmZlODQ0Y2U0YWQ1PC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE3LTA1LTA5VDE2OjI5OjM1LTA1OjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoV2luZG93cyk8L3N0RXZ0OnNvZnR3YXJlQWdlbnQ+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5zYXZlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOjQ3MjM2NDhmLTBlNWYtZDY0OS1iMmM2LTY5Y2ZkY2NmYjQ2OTwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxNy0wNS0wOVQxNjoyOTozNS0wNTowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICAgICA8c3RFdnQ6Y2hhbmdlZD4vPC9zdEV2dDpjaGFuZ2VkPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L3htcE1NOkhpc3Rvcnk+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgICAgIDxwaG90b3Nob3A6Q29sb3JNb2RlPjM8L3Bob3Rvc2hvcDpDb2xvck1vZGU+CiAgICAgICAgIDxwaG90b3Nob3A6SUNDUHJvZmlsZT5zUkdCIElFQzYxOTY2LTIuMTwvcGhvdG9zaG9wOklDQ1Byb2ZpbGU+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjIwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjE5PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5meyu1AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAARrSURBVHjajJJJbJVVGIafc/7/9t7b/45t6UBbhTLKDCKIUyAhqCSiEqMREyOEKASjMSwMsmDhEBdOEA2DBBOjrIxxYEFwQBSHRJkJRUBbKJTS0tv2Tv94znHhEF0oPst38eT73rxixeu9hAp8lcSSkk2z1jFjzHF6vHGkimffVLFJm6ulS2f7Lp3H2E3tgdu/yWQyjzfXXtJdlyey5fSreJFFjCoxG6wZd61HGYjJiEqU5Rc1n9nyBDkfVJ2siVWObBS62loYqtweesNPp1rzH9e6uePFkUbe6X2OK5UWHGsIjMCSYEcaIi3vU8palk6VV50bHM2ZrYrpQ0cJX2wczE7vWxobsJYaJdHJENWV3+K9OUA3HfTc2YTjjOCW7LctofdLo3dLrQUCugItV/Yn8q0L+vYys/8ghUr2qcqm8tdhTwaTtrFSoAu1dL+c3NN3JbVxfPEEky//QI9pyvuRXO0rq6ccxJAGsIQ5ZgyEgX6pmsiSCjKJjn5vc11eYzkKowQ6kliOoqHNY/Sw+0LcSzSO2DnCQD2PAWWsb0JlYyMkUhjittrq9qm1P6ZvG3jriUXe5Iv7mHxvmbp8iZqBGtI+JBMBZx8tcKolQ3fdjRs64zd7maGRdTIhdiMECBAPvjaAlOD7Maxq9jG3/aNdp+ftFCKeoHHQcGulwHr7KD1dPluKkziRzlPICpTy6DiznFjP3WvLDG+z7QBtQDzwylVcN01r8ynmzv6APd7hI+ddZqVMmjIWvSLFHNWP3z3EIT9Ps+1Ri8bVFZrS4tyShikTjh5eQn9hJtlU9Y8OLQ9vpJWTA87iq8qb5WgHgSZNyFQ5RK+o5QIpJogiDhECTVLWMuRVxnf2xe6P/A4y2RrS6SRSCrBi7uwrA6MuHzmx7DNEhCUVf6IQZAnIEqAQf+VCKCxb03n8jg97u3MDxgzeYhDIULHc9eOHtcXPatR3WwXGGCO5JkaCAd1waqeMR0cKfYVvS6XqwzKI2CCD3I7rbvhkYcv07dsiv17A/xAC2q/DGfv+rrZp+5Y4sdY3RoaHn7WTdjRfJYq63nFJVue1nzc92Ji/PffvRIS06DnXZ1Pmez/HMwkdF1JKrRPJCl2dD6VPHtywS2qJtL1ryoQMEEZz4dDKHZfOrWoIbRuEMNKSEktISpH3RV6kM/Wi/ljVeIj/uFEAnglwZK7T0ZhS8cwBjCQgjRQCQiXaKoG8aUxDedzMvLOqFGg0+l+VCqj4mpubck92tGfHllx/ioiKE+Mxfp9NNbD2JGLh1WKkeqcmJh9ekGn/9EpYITT/7FIg0MYw6JaZUt/41aTWaV/6drYQr7Eu+JWRvU4sREZaIoT5KZX0VwwVc7iVNu4ZNXbZ3ET9ds+EjOgQjcEA5SjA1Yrpqfy7C9uaF12sZimWHUY1OI8g7QORsbGNsUjYwWqjbSquw6AHORGyINm8ZnQs896vqrzmql9dDFgtidr97U5qx7ik87kkoOra+KGDXWMOpuzagwib3wYAYVQcG6Op2HAAAAAASUVORK5CYII="></a></td> </tr> </table> </div> </div> `); $("#GoogleBar").append('<div class="dropdown"><button class="GoogleBarDropDownButton">More ▾</button><div class="dropdown-content"></div></div>'); $("#GoogleBar").append('<div id="GearIcon">⚙</div>'); GenerateBarLinksFromGetValues(); GenerateBarMenuLinksFromGetValues(); GenerateExportSettings(); GenerateSetBarLinkInput(); GenerateSetBarMenuLinkInputBoxes(); addGoogleFont(GM_getValue("GB_Font")); $("#GoogleBar a,.GoogleBarDropDownButton").css("font-family", GM_getValue("GB_Font")); } CreateGoogleBar(); $(document).ready(function() { var allowedKeys = {37: 'left',38: 'up',39: 'right',40: 'down',65: 'a',66: 'b'}; var konamiCode = ['up', 'up', 'down', 'down', 'left', 'right', 'left', 'right', 'b', 'a']; var konamiCodePosition = 0; // a variable to remember the 'position' the user has reached so far. document.addEventListener('keydown', function(e) { // add keydown event listener var key = allowedKeys[e.keyCode]; // get the value of the key code from the key map var requiredKey = konamiCode[konamiCodePosition];// get the value of the required key from the konami code if (key == requiredKey) { // compare the key with the required key konamiCodePosition++; // move to the next key in the konami code sequence if (konamiCodePosition == konamiCode.length) // if the last key is reached, activate cheats activateCheats(); } else konamiCodePosition = 0; }); function activateCheats() { var OneUpAudio = new Audio('http://themushroomkingdom.net/sounds/wav/smw/smw_1-up.wav'); OneUpAudio.play(); OneUpAudio.addEventListener('ended', function() { this.currentTime = 0; this.play(); }, false); } $('[name=GoogleBarFont]').val(GM_getValue("GB_Font")); RandomizeBarColor(); if (vRandomColorMode === "1") { var ColorCycleFunction = setInterval(RandomizeBarColor, vColCycleDuration); } $('[name=GBMenuDisplay]').change(function() { var c = this.checked ? GM_setValue("GB_MenuDisplay", "0") : GM_setValue("GB_MenuDisplay", "1"); if (GM_getValue("GB_MenuDisplay") === "0") { $(".dropdown").css("display", "none"); } else if (GM_getValue("GB_MenuDisplay") === "1") { $(".dropdown").css("display", "inline-block"); } GenerateExportSettings(); }); $('#GBColRand').change(function() { var c = this.checked ? GM_setValue("GB_RandCol", "1") : GM_setValue("GB_RandCol", "0"); if (GM_getValue("GB_RandCol") === "1") { RandomizeBarColor(); ColorCycleFunction = setInterval(RandomizeBarColor, vColCycleDuration); GM_addStyle(`#GoogleBar a,#GearIcon,.GoogleBarDropDownButton{ color:` + GM_getValue('GB_LColor') + `; ms-transition:color ` + vColCycleDuration + `ms linear; transition:color ` + vColCycleDuration + `ms linear; webkit-transition:color ` + vColCycleDuration + `ms linear;} #GoogleBar,.dropdown-content{ background-color:` + GM_getValue('GB_BGColor') + `; ms-transition:background-color ` + vColCycleDuration + `ms linear; transition:background-color ` + vColCycleDuration + `ms linear; webkit-transition:background-color ` + vColCycleDuration + `ms linear;`); } else { $(".GBLinkBlock,.dropdown-content a,.GoogleBarDropDownButton").hover(function(e) { $(this).css("background-color", e.type === "mouseenter" ? shadeColor(GM_getValue("GB_BGColor"), parseInt(GM_getValue("GB_Hover"))) : "transparent") }); $('#GoogleBar a,#GearIcon,.GoogleBarDropDownButton').css("color", GM_getValue('GB_LColor')); $('#GoogleBar,.dropdown-content').css("background-color", GM_getValue('GB_BGColor')); GM_addStyle(`#GoogleBar a,#GearIcon,.GoogleBarDropDownButton{ color:` + GM_getValue('GB_LColor') + `; ms-transition:color 333ms linear; transition:color 333ms linear; webkit-transition:color 333ms linear;} #GoogleBar,.dropdown-content{ background-color:` + GM_getValue('GB_BGColor') + `; ms-transition:background-color 333ms linear; transition:background-color 333ms linear; webkit-transition:background-color 333ms linear;}`); } GenerateExportSettings(); }); $('input[type=radio][name=group-one]').change(function() { if (this.value === "1") { GM_setValue('GB_LColMode', "1"); GM_setValue('GB_LColor', invertColor(GM_getValue('GB_BGColor'), "")); GM_setValue('GB_BGColor', color.toHexString()); GenerateExportSettings(); $('#GoogleBar a,#GearIcon,.GoogleBarDropDownButton').css("color", invertColor(GM_getValue('GB_BGColor'), "")); $('#GoogleBar,.dropdown-content').css("background-color", color.toHexString()); } else if (this.value === "2") { GM_setValue('GB_LColMode', "2"); GM_setValue('GB_LColor', invertColor(GM_getValue('GB_BGColor'), "BW")); GM_setValue('GB_BGColor', color.toHexString()); GenerateExportSettings(); $('#GoogleBar a,#GearIcon,.GoogleBarDropDownButton').css("color", invertColor(GM_getValue('GB_BGColor'), "BW")); $('#GoogleBar,.dropdown-content').css("background-color", color.toHexString()); } else if (this.value === "3") { GM_setValue('GB_LColMode', "3"); GenerateExportSettings(); } }); $('input[type=number][name=BarLinkNumberInput]').bind('keyup input', function() { GM_setValue("GB_TotalBarLinks", this.value); DestroyAndCreateBarLinksAndSettingInput(); GenerateExportSettings(); }); $('input[type=number][name=vColCycleDuration]').bind('keyup input', function() { GM_setValue("GB_ColorCycleDuration;", this.value); clearTimeout(ColorCycleFunction); vColCycleDuration = this.value; ColorCycleFunction = setInterval(RandomizeBarColor, vColCycleDuration); if (vRandomColorMode === "1") { GM_addStyle(`#GoogleBar a,#GearIcon,.GoogleBarDropDownButton{ color:` + GM_getValue('GB_LColor') + `!important; ms-transition:color ` + vColCycleDuration + `ms linear; transition:color ` + vColCycleDuration + `ms linear; webkit-transition:color ` + vColCycleDuration + `ms linear;} #GoogleBar,.dropdown-content{ background-color:` + GM_getValue('GB_BGColor') + `; ms-transition:background-color ` + vColCycleDuration + `ms linear; transition:background-color ` + vColCycleDuration + `ms linear; webkit-transition:background-color ` + vColCycleDuration + `ms linear;}`); } GenerateExportSettings(); }); $('input[type=number][name=BarMenuNumberInput]').bind('keyup input', function() { GM_setValue("GB_TotalBarMenuLinks", this.value); DestroyAndCreateMoreLinksAndSettingInput(); GenerateExportSettings(); }); $('[name=StickyCheckBox]').change(function() { var c = this.checked ? GM_setValue("GB_Pos", "fixed") : GM_setValue("GB_Pos", "absolute"); if (GM_getValue("GB_Pos") === "fixed") { GM_setValue('GB_Pos', "fixed"); } else { GM_setValue('GB_Pos', "absolute"); } $('#GoogleBar').css("position", GM_getValue("GB_Pos")); GenerateExportSettings(); }); $('[name=GoogleBarFont]').change(function() { var fontID = $('[name=GoogleBarFont]').find(":selected").text(); GM_setValue("GB_Font", fontID); addGoogleFont(fontID); $("#GoogleBar a,.GoogleBarDropDownButton").css("font-family", fontID); GenerateExportSettings(); }); $('#ImportSettings').on('input',function(e){ var ImportedSettings = $('#ImportSettings').val(); if (ImportedSettings.startsWith("|===============Google Bar===============|")){ var ImportedRow = ImportedSettings.split(/\r?\n/); var ImportedBarSettings=ImportedRow[1]; var ImportedBarSettingsCell = ImportedBarSettings.split("|"); GM_setValue("GB_BGColor",ImportedBarSettingsCell[0]); GM_setValue("GB_BColor",ImportedBarSettingsCell[1]); GM_setValue("GB_LColor",ImportedBarSettingsCell[2]); GM_setValue("GB_Pos",ImportedBarSettingsCell[3]); GM_setValue("GB_TotalBarLinks",ImportedBarSettingsCell[4]); GM_setValue("GB_TotalBarMenuLinks",ImportedBarSettingsCell[5]); GM_setValue("GB_LColMode",ImportedBarSettingsCell[6]); GM_setValue("GB_RandCol",ImportedBarSettingsCell[7]); GM_setValue("GB_MenuDisplay",ImportedBarSettingsCell[8]); GM_setValue("GB_Font",ImportedBarSettingsCell[9]); GM_setValue("GB_ColorCycleDuration",ImportedBarSettingsCell[10]); $('#GoogleBar,.dropdown-content').css("background-color", ImportedBarSettingsCell[0]); $(".GBLinkBlock,.dropdown-content a,.GoogleBarDropDownButton").hover(function(e) { $(this).css("background-color", e.type === "mouseenter" ? shadeColor(GM_getValue("GB_BGColor"), parseInt(GM_getValue("GB_Hover"))) : "transparent") }); $('.GBLinkActive').css("borderTop", "2px solid " + ImportedBarSettingsCell[1]); $(".GBLinkBlock").hover(function(e) {$(this).css("borderTop", e.type === "mouseenter" ? "2px solid " + ImportedBarSettingsCell[1] : "2px solid transparent")}); $('#GoogleBar a,#GearIcon,.GoogleBarDropDownButton').css("color", ImportedBarSettingsCell[2]); $('#GoogleBar').css("position", ImportedBarSettingsCell[3]); if (ImportedBarSettingsCell[7] === "1") { RandomizeBarColor(); ColorCycleFunction = setInterval(RandomizeBarColor, ImportedBarSettingsCell[10]); GM_addStyle(`#GoogleBar a,#GearIcon,.GoogleBarDropDownButton{ms-transition:color ` + ImportedBarSettingsCell[10] + `ms linear; transition:color ` + ImportedBarSettingsCell[10] + `ms linear; webkit-transition:color ` + ImportedBarSettingsCell[10] + `ms linear;} #GoogleBar,.dropdown-content{ms-transition:background-color ` + ImportedBarSettingsCell[10] + `ms linear; transition:background-color ` + ImportedBarSettingsCell[10] + `ms linear; webkit-transition:background-color ` + ImportedBarSettingsCell[10] + `ms linear;`); }else{ GM_addStyle(`#GoogleBar a,#GearIcon,.GoogleBarDropDownButton{ms-transition:color 400ms linear; transition:color 400ms linear; webkit-transition:color 400ms linear;} #GoogleBar,.dropdown-content{ms-transition:background-color 400ms linear; transition:background-color 400ms linear; webkit-transition:background-color 400ms linear;`); } DestroyAndCreateBarLinksAndSettingInput(); DestroyAndCreateMoreLinksAndSettingInput(); } GenerateExportSettings(); }); if (vLinkColorMode === "1") { $("#ICol").prop("checked", true) } else if (vLinkColorMode === "2") { $("#BWCol").prop("checked", true) } else if (vLinkColorMode === "3") { $("#HPcol").prop("checked", true) } if (vBarPosition === "fixed") { $("#GBPosA").prop("checked", true) } $("#GBarColorPicker").spectrum({ flat: true, color: GM_getValue('GB_BGColor'), showPalette: false, showButtons: false, containerClassName: 'GBBGCP', move: function(color) {; var vLinkColorMode = GM_getValue('GB_LColMode') $(".GBLinkBlock,.dropdown-content a,.GoogleBarDropDownButton").hover(function(e) { $(this).css("background-color", e.type === "mouseenter" ? shadeColor(GM_getValue("GB_BGColor"), parseInt(GM_getValue("GB_Hover"))) : "transparent") }); if (vLinkColorMode === "1") { GM_setValue('GB_BGColor', color.toHexString()); GM_setValue('GB_LColor', invertColor(GM_getValue('GB_BGColor'), "")); $('#GoogleBar a,#GearIcon,.GoogleBarDropDownButton').css("color", invertColor(GM_getValue('GB_BGColor'), "")); $('#GoogleBar,.dropdown-content').css("background-color", color.toHexString()); } else if (vLinkColorMode === "2") { GM_setValue('GB_BGColor', color.toHexString()); GM_setValue('GB_LColor', invertColor(GM_getValue('GB_BGColor'), "BW")); $('#GoogleBar a,#GearIcon,.GoogleBarDropDownButton').css("color", invertColor(GM_getValue('GB_BGColor'), "BW")); $('#GoogleBar,.dropdown-content').css("background-color", color.toHexString()); } else if (vLinkColorMode === "3") { GM_setValue('GB_BGColor', color.toHexString()); $('#GoogleBar').css("background-color", color.toHexString()); } GenerateExportSettings(); } }); $("#GBarLinkColorPicker").spectrum({ flat: true, color: GM_getValue('GB_LColor'), showPalette: false, showButtons: false, containerClassName: 'GBLCP', move: function(color) {; $('#GoogleBar a,#GearIcon,.GoogleBarDropDownButton').css("color", color.toHexString()); GM_setValue('GB_LColor', color.toHexString()); GenerateExportSettings(); } }); $("#GBarBorderColorPicker").spectrum({ flat:true, color: GM_getValue('GB_BColor'), showPalette: false, showButtons: false, containerClassName: 'GBBCP', move: function(color) {; $('.GBLinkActive').css("borderTop", "2px solid " + GM_getValue("GB_BColor")); $(".GBLinkBlock").hover(function(e) { $(this).css("borderTop", e.type === "mouseenter" ? "2px solid " + GM_getValue("GB_BColor") : "2px solid transparent") }); GM_setValue('GB_BColor', color.toHexString()); GenerateExportSettings(); } }); $("#CopyButton").click(function() { var copyText = document.querySelector("#ExportSettings"); copyText.select(); document.execCommand("Copy"); }); $("#GearIcon,#close_button").click(function() { showsettings(); }); $('.tabs .tab-links a').on('click', function(e) { var currentAttrValue = $(this).attr('href'); GoogleColorBorderIndex++ if (GoogleColorBorderIndex === 1) { GoogleColorBorder = "#3CBA54"; } else if (GoogleColorBorderIndex === 2) { GoogleColorBorder = "#f4c20d"; } else if (GoogleColorBorderIndex === 3) { GoogleColorBorder = "#db3236"; } else if (GoogleColorBorderIndex === 4) { GoogleColorBorder = "#4885ed"; GoogleColorBorderIndex = 0 } // Show/Hide Tabs $('.tabs ' + currentAttrValue).slideDown(250); $('.tabs ' + currentAttrValue).siblings().slideUp(250); $("#GBarLinkColorPicker").spectrum("reflow"); $("#GBarColorPicker").spectrum("reflow"); $("#GBarBorderColorPicker").spectrum("reflow"); // Change/remove current tab to active $(this).parent('li').addClass('active').css('borderBottom', '2px solid ' + GoogleColorBorder).siblings().removeClass('active').css('borderBottom', '2px solid transparent'); e.preventDefault(); }); //loop to set value to all inpot boxes }); GoogleBarSearch("https://www.google.com/webhp#q=", "webhp"); GoogleBarSearch("https://www.google.com/search?site=imghp&tbm=isch&q=", "imghp"); GoogleBarSearch("https://books.google.com/?q=", ""); GoogleBarSearch("https://developers.google.com/s/results/?q=", ""); GoogleBarSearch("https://docs.google.com/document/u/0/?q=", ""); GoogleBarSearch("https://drive.google.com/drive/search?q=", ""); GoogleBarSearch("https://earth.google.com/web/search/", ""); GoogleBarSearch("https://www.google.com/finance?q=", "finance"); GoogleBarSearch("https://groups.google.com/forum/#!search/", ""); GoogleBarSearch("https://mail.google.com/mail/u/0/#search/", ""); GoogleBarSearch("https://inbox.google.com/search/", ""); GoogleBarSearch("https://keep.google.com/#search/text ", ""); GoogleBarSearch("https://maps.google.com/?q=", ""); GoogleBarSearch("https://myactivity.google.com/myactivity?q=", ""); GoogleBarSearch("https://news.google.com/news/section?cf=all&q=", ""); GoogleBarSearch("https://patents.google.com/?q=", ""); GoogleBarSearch("https://plus.google.com/s/", ""); GoogleBarSearch("https://photos.google.com/search/", ""); GoogleBarSearch("https://www.google.com/publicdata/directory#!q=", "publicdata"); GoogleBarSearch("https://scholar.google.com/scholar?hl=en&q=", ""); GoogleBarSearch("https://www.google.com/shopping?q=", "shopping"); GoogleBarSearch("https://support.google.com/search?q=", ""); //not gonna work....\/\/\/ //GoogleBarSearch("https://www.google.com/search?tbm=vid&hl=en&source=hp&q=","vid"); //not gonna work..../\/\/\ GoogleBarSearch("https://www.youtube.com/results?search_query=", ""); GoogleBarSearch("https://www.facebook.com/search/top/?q=", ""); GoogleBarSearch("https://www.reddit.com/search?q=", ""); GoogleBarSearch("https://www.amazon.com/s/?field-keywords=", ""); GoogleBarSearch("https://en.wikipedia.org/wiki/", ""); GoogleBarSearch("https://search.yahoo.com/search;?p=", ""); GoogleBarSearch("https://twitter.com/search?q=", ""); GoogleBarSearch("https://www.netflix.com/search?q=", ""); GoogleBarSearch("http://www.ntd.tv/?s=", ""); GoogleBarSearch("http://craigslist.org/search/sss?query=", ""); GoogleBarSearch("https://www.pinterest.com/search/pins/?q=", ""); GoogleBarSearch("http://www.espn.com/search/results?q=", ""); GoogleBarSearch("https://www.pornhub.com/video/search?search=", ""); GoogleBarSearch("http://www.cnn.com/search/?text=", ""); GoogleBarSearch("https://www.bing.com/search?q=", ""); GoogleBarSearch("http://www.imdb.com/find?q=", ""); GoogleBarSearch("https://query.nytimes.com/search/sitesearch/?&pgtype=Homepage#/", ""); GoogleBarSearch("http://stackoverflow.com/search?q=", ""); GoogleBarSearch("https://github.com/search?q=", ""); GoogleBarSearch("http://www.xvideos.com/?k=", ""); GoogleBarSearch("https://xhamster.com/search.php?q=", ""); GoogleBarSearch("https://gf.qytechs.cn/en/scripts?&q=", ""); GoogleBarSearch("https://support.google.com/websearch/search?q=", ""); //https://research.google.com/bigpicture/music/#s%3Arascal%20flatts //play store //alerts function showsettings() { $("#settings_box").fadeToggle(250); $("#settings_box").css({ "visibility": "visible", "display": "block" }); } $('.GBLinkBlock').eq(0).css("margin-left", "25px") GM_addStyle(` #GoogleBar { height: 29px; position: ` + GM_getValue("GB_Pos") + `; top: 0; left: 0; width: 100%; z-index: 2999999998; } .GBLink, .GoogleBarDropDownButton { font-family: ` + vGoogleBarFontType + `; } #GoogleBar *, #settings_box * { font-size: 13px; text-decoration: none; } #GoogleBar h2 { Background-calendar: #ddd!important; } #GoogleBar ul { white-space: nowrap; margin: 0; padding: 0; } .GBLinkBlock { display: block; float: left; height: 27px; line-height: 27px!important; padding-left: 8px; padding-right: 8px; text-align: center; text-align: left; border-top: 2px solid transparent; } .GBLinkBlock:hover { border-top: 2px solid `+vGoogleBarBorderColor+`; } .GBLinkActive { border-top: 2px solid `+vGoogleBarBorderColor+`; } #GoogleBar, .dropdown-content { background-color: ` + vGoogleBarBackgroundColor + `; ms-transition: background-color 400ms ease; transition: background-color 400ms ease; webkit-transition: background-color 400ms ease; } #GoogleBar a, #GearIcon, .GoogleBarDropDownButton { color: ` + GM_getValue('GB_LColor') + `; ms-transition: color 400ms ease; transition: color 400ms ease; webkit-transition: color 400ms ease; } .GoogleBarDropDownButton { background-color: transparent; height: 29px; padding-left: 8px; padding-right: 8px; text-align: center; cursor: pointer; border: solid 0px transparent; } .dropdown { position: relative; } .dropdown-content { box-shadow: 0px 5px 7px 1px rgba(0, 0, 0, 0.2); display: none; min-width: 100px; position: relative; top: 0px; width: auto; z-index: 2999999998; } .dropdown-content a { color: black; display: block; padding: 10px 12px; text-decoration: none; } .dropdown:hover .dropdown-content { display: block; } #GearIcon { display: block; float: right; height: 29px; line-height: 29px!important; padding-left: 8px; padding-right: 8px; text-align: center; text-align: left; font-size: 20px; cursor: pointer; } #H3Right { float: right!important; width: 50%!important; } #H3Left { float: left!important; width: 50%!important; } #settings_box { background-color: #fff!important; border: 1px solid #acacac!important; box-shadow: rgba(0, 0, 0, .3) 0 4px 16px!important; display: none; position: fixed!important; right: 6px!important; top: 35px!important; visibility: hidden; min-width: 420px!important; max-width: 420px!important; z-index: 11111111111!important; font-family: helvetica, sans-serif; } #settings_box #cancel_button { background-color: grey; border: 1px solid #acacac; border: none; box-shadow: rgba(0, 0, 0, .2) 0 4px 16px; color: white; cursor: pointer; float: right; margin-bottom: 2px!important; margin-right: 2px!important; margin-top: 2px!important; padding: 5px; width: 16px; } #settings_box #info_text { background-color: #eee; clear: both; color: #6E6E6E; padding: 10px!important; } #settings_box h2 { display: block; font-size: 1.5em; font-weight: bold; webkit-margin-after: 0.83em; webkit-margin-before: 0.83em; webkit-margin-end: 0px; webkit-margin-start: 0px; } #settings_box h4 { font-size: 1.5em; font-weight: bold; webkit-margin-after: 0.83em; webkit-margin-before: 0.83em; webkit-margin-end: 0px; webkit-margin-start: 0px; width: 100px; display: table-cell; } #settings_box th, #settings_box td { padding: 0px; background-color: transparent; } #GoogleBarColorLabels { width: 100%; } #GoogleBarColorLabels td { width: 33.333333%; } #SettingsFooter { width: 100%; } #SubmitBug { float: right; } label[for="ICol"] { padding-left: 17px!important; } #settings_box #close_button { color: grey; cursor: pointer; float: right; font-size: 15px; height: 6px; position: relative; width: 11px; } .tabs { display: inline-block; width: 100%; } .tab-links:after { clear: both; content: ''; display: block; } .tab-links { margin: 0; padding: 0; } .tab-links li { float: left; list-style: none; margin: 0px 5px; } .tab-links a { color: #000!important; display: inline-block; font-size: 16px!important; font-weight: 100; padding: 3px 5px!important; padding-bottom: 12px; transition: all linear 0.15s; } .tab-links a:hover { background: #eee; text-decoration: none; } li.active a, li.active a:hover { color: #262626; font-weight: bold; padding-bottom: 18px; font-size: 20px; } .tab-content { background: #fff; border-radius: 3px; box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15); height: auto; max-height: 666px; overflow: auto; padding: 5px; } .tab { display: none; } .tab.active { display: block; } [name="BarLinkNumberInput"], [name="BarMenuNumberInput"] { margin-left: 5px; width: 30px; } [name=vColCycleDuration] { width: 50px; } #ExportSettings, #ImportSettings { font-size: 11px!important; width: 98%; } #CopyButton{float:right;} [name*="barurl"], [name*="DropDownURL"] { color: black!important; margin-right: 5px; margin-top: 2px; width: 280px!important; } [name*="texturl"], [name*="DropDownText"] { color: black!important; margin-right: 5px; margin-top: 2px; width: 100px!important; } /*====reset css====*/ .gb_eg.gb_eg .gb_Q,.gb_fa{display:none!important;} /*===spectrum=====*/ .sp-container { position: absolute; top: 0; left: 0; display: inline-block; *display: inline; *zoom: 1; z-index: 9999994; overflow: hidden } .sp-container.sp-flat { position: relative } .sp-container, .sp-container * { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box } .sp-top { position: relative; width: 100%; display: inline-block } .sp-top-inner { position: absolute; top: 0; left: 0; bottom: 0; right: 0 } .sp-color { position: absolute; top: 0; left: 0; bottom: 0; right: 20% } .sp-hue { position: absolute; top: 0; right: 0; bottom: 0; left: 84%; height: 100% } .sp-clear-enabled .sp-hue { top: 33px; height: 77.5% } .sp-fill { padding-top: 80% } .sp-sat, .sp-val { position: absolute; top: 0; left: 0; right: 0; bottom: 0 } .sp-alpha-enabled .sp-top { margin-bottom: 18px } .sp-alpha-enabled .sp-alpha { display: block } .sp-clear { display: none } .sp-clear.sp-clear-display { background-position: center } .sp-clear-enabled .sp-clear { display: block; position: absolute; top: 0px; right: 0; bottom: 0; left: 84%; height: 28px } .sp-container, .sp-replacer, .sp-preview, .sp-dragger, .sp-slider, .sp-alpha, .sp-clear, .sp-alpha-handle, .sp-container.sp-dragging .sp-input, .sp-container button { -webkit-user-select: none; -moz-user-select: -moz-none; -o-user-select: none; user-select: none } .sp-container.sp-input-disabled .sp-input-container { display: none } .sp-container.sp-buttons-disabled .sp-button-container { display: none } .sp-container.sp-palette-buttons-disabled .sp-palette-button-container { display: none } .sp-palette-only .sp-picker-container { display: none } .sp-palette-disabled .sp-palette-container { display: none } .sp-initial-disabled .sp-initial { display: none } .sp-sat { background-image: -webkit-gradient(linear, 0 0, 100% 0, from(#FFF), to(rgba(204, 154, 129, 0))); background-image: -webkit-linear-gradient(left, #FFF, rgba(204, 154, 129, 0)); background-image: -moz-linear-gradient(left, #fff, rgba(204, 154, 129, 0)); background-image: -o-linear-gradient(left, #fff, rgba(204, 154, 129, 0)); background-image: -ms-linear-gradient(left, #fff, rgba(204, 154, 129, 0)); background-image: linear-gradient(to right, #fff, rgba(204, 154, 129, 0)); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)"; filter: progid: DXImageTransform.Microsoft.gradient(GradientType 1, startColorstr='#FFFFFFFF', endColorstr='#00CC9A81') } .sp-val { background-image: -webkit-gradient(linear, 0 100%, 0 0, from(#000000), to(rgba(204, 154, 129, 0))); background-image: -webkit-linear-gradient(bottom, #000000, rgba(204, 154, 129, 0)); background-image: -moz-linear-gradient(bottom, #000, rgba(204, 154, 129, 0)); background-image: -o-linear-gradient(bottom, #000, rgba(204, 154, 129, 0)); background-image: -ms-linear-gradient(bottom, #000, rgba(204, 154, 129, 0)); background-image: linear-gradient(to top, #000, rgba(204, 154, 129, 0)); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)"; filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#00CC9A81', endColorstr='#FF000000') } .sp-hue { background: -moz-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%); background: -ms-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%); background: -o-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%); background: -webkit-gradient(linear, left top, left bottom, from(#ff0000), color-stop(0.17, #ffff00), color-stop(0.33, #00ff00), color-stop(0.5, #00ffff), color-stop(0.67, #0000ff), color-stop(0.83, #ff00ff), to(#ff0000)); background: -webkit-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%); background: linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%) } .sp-1 { height: 17%; filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#ff0000', endColorstr='#ffff00') } .sp-2 { height: 16%; filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#ffff00', endColorstr='#00ff00') } .sp-3 { height: 17%; filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#00ff00', endColorstr='#00ffff') } .sp-4 { height: 17%; filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#00ffff', endColorstr='#0000ff') } .sp-5 { height: 16%; filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#0000ff', endColorstr='#ff00ff') } .sp-6 { height: 17%; filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#ff00ff', endColorstr='#ff0000') } .sp-hidden { display: none !important } .sp-cf:before, .sp-cf:after { content: ""; display: table } .sp-cf:after { clear: both } .sp-cf { *zoom: 1 } @media (max-device-width: 480px) { .sp-color { right: 40% } .sp-hue { left: 63% } .sp-fill { padding-top: 60% } } .sp-dragger { border-radius: 10px; height: 5px; width: 5px; border: 1px solid #fff; background: rgba(0,0,0,0.3); cursor: pointer; position: absolute; top: 0; left: 0 } .sp-slider { position: absolute; top: 0px; cursor: pointer; height: 3px; left: -1px; right: -1px; border: 1px solid rgba(255,255,255,0.5); background: rgba(0,0,0,0.3); opacity: 1; } .sp-container { border-radius: 0; border: solid 0px #f0c49B; padding: 0 } .sp-container, .sp-container button, .sp-container input, .sp-color, .sp-hue, .sp-clear { font: normal 12px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box } .sp-top { margin-bottom: 3px } .sp-color, .sp-hue, .sp-clear { border: solid 1px #666 } .sp-input-container { float: right; width: 100px; margin-bottom: 4px } .sp-initial-disabled .sp-input-container { width: 100% } .sp-input { font-size: 12px !important; border: 1px inset; padding: 4px 5px; margin: 0; width: 100%; background: transparent; border-radius: 3px; color: #222 } .sp-input:focus { border: 1px solid orange } .sp-input.sp-validation-error { border: 1px solid red; background: #fdd } .sp-picker-container, .sp-palette-container { float: left; position: relative; padding: 1px; padding-bottom: 300px; margin-bottom: -290px } .sp-picker-container { width: 130px; border-left: solid 1px #fff } .sp-palette-container { border-right: solid 1px #ccc } .sp-palette-only .sp-palette-container { border: 0 } .sp-palette .sp-thumb-el { display: block; position: relative; float: left; width: 24px; height: 15px; margin: 3px; cursor: pointer; border: solid 2px transparent } .sp-palette .sp-thumb-el:hover, .sp-palette .sp-thumb-el.sp-thumb-active { border-color: orange } .sp-thumb-el { position: relative } .sp-initial { float: left; border: solid 1px #333 } .sp-initial span { width: 30px; height: 25px; border: none; display: block; float: left; margin: 0 } .sp-initial .sp-clear-display { background-position: center } .sp-palette-button-container, .sp-button-container { float: right } .sp-dd { padding: 2px 0; height: 16px; line-height: 16px; float: left; font-size: 10px } .sp-container { padding-bottom: 0 } .sp-palette span:hover, .sp-palette span.sp-thumb-active { border-color: #000 } .sp-preview, .sp-alpha, .sp-thumb-el { position: relative; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==) } .sp-preview-inner, .sp-alpha-inner, .sp-thumb-inner { display: block; position: absolute; top: 0; left: 0; bottom: 0; right: 0 } .sp-palette .sp-thumb-inner { background-position: 50% 50%; background-repeat: no-repeat } .sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=) } .sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=) } .sp-clear-display { background-repeat: no-repeat; background-position: center; background-image: url(data:image/gif;base64,R0lGODlhFAAUAPcAAAAAAJmZmZ2dnZ6enqKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq/Hx8fLy8vT09PX19ff39/j4+Pn5+fr6+vv7+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAUABQAAAihAP9FoPCvoMGDBy08+EdhQAIJCCMybCDAAYUEARBAlFiQQoMABQhKUJBxY0SPICEYHBnggEmDKAuoPMjS5cGYMxHW3IiT478JJA8M/CjTZ0GgLRekNGpwAsYABHIypcAgQMsITDtWJYBR6NSqMico9cqR6tKfY7GeBCuVwlipDNmefAtTrkSzB1RaIAoXodsABiZAEFB06gIBWC1mLVgBa0AAOw==) }`); //================Keep //================Keep //================Keep $('.GBLinkBlock a').each(function(){ var $this = $(this); // if the current path is like this link, make it active if($this.attr('href')===vCurrentWebpage){ $this.parent().addClass('GBLinkActive'); } }); if (vCurrentWebpage == "https://www.google.com/") { GM_addStyle(` body{position:relative!important; top:29px!important;} `); } else if (/google.{2,14}about\/products/.test(vCurrentWebpage) == true || /google.{2,14}policies\//.test(vCurrentWebpage) == true || /google.{2,14}ads\//.test(vCurrentWebpage) == true || /google.{2,14}safetycenter\//.test(vCurrentWebpage) == true || /google.{2,14}about\//.test(vCurrentWebpage) == true || /.greasyfork.{2,6}/.test(vCurrentWebpage) == true || /calendar.google.{2,6}/.test(vCurrentWebpage) == true || /duo.google.{2,6}/.test(vCurrentWebpage) == true || /google.{2,6}#q=/.test(vCurrentWebpage) == true || /google.{2,6}#safe/.test(vCurrentWebpage) == true || /google.{2,6}?ei=/.test(vCurrentWebpage) == true || /google.{2,6}adsense/.test(vCurrentWebpage) == true || /google.{2,6}adwords/.test(vCurrentWebpage) == true || /google.{2,6}alerts/.test(vCurrentWebpage) == true || /google.{2,6}analytics/.test(vCurrentWebpage) == true || /google.{2,6}business/.test(vCurrentWebpage) == true || /google.{2,6}chrome\//.test(vCurrentWebpage) == true || /google.{2,6}earth\//.test(vCurrentWebpage) == true || /google.{2,6}finance/.test(vCurrentWebpage) == true || /google.{2,6}flights/.test(vCurrentWebpage) == true || /google.{2,6}imghp/.test(vCurrentWebpage) == true || /google.{2,6}preferences/.test(vCurrentWebpage) == true || /google.{2,6}settings/.test(vCurrentWebpage) == true || /google.{2,6}search/.test(vCurrentWebpage) == true || /google.{2,6}shopping/.test(vCurrentWebpage) == true || /google.{2,6}videohp/.test(vCurrentWebpage) == true || /google.{2,6}webhp/.test(vCurrentWebpage) == true || /google.{2,6}$/.test(vCurrentWebpage) == true || /adwords.google.{2,6}/.test(vCurrentWebpage) == true || /classroom.google.{2,6}/.test(vCurrentWebpage) == true || /mail.google.{2,6}/.test(vCurrentWebpage) == true || /myaccount.google.{2,6}/.test(vCurrentWebpage) == true || /privacy.google.{2,6}/.test(vCurrentWebpage) == true || /play.google.{2,6}music/.test(vCurrentWebpage) == true || /support.google.{2,6}/.test(vCurrentWebpage) == true || /translate.google.{2,6}/.test(vCurrentWebpage) == true ) { GM_addStyle(` body{position:relative!important; top:29px!important;} `); } else if (/google.{2,14}about\/products/.test(vCurrentWebpage) == true) { GM_addStyle(` .products .glue-sticky.glue-sticky-active{top:98px!important;} .fixed-nav{top:29px!important;} body{position:relative!important; top:29px!important;} `); } else if (/google.{2,6}maps/.test(vCurrentWebpage) == true) { GM_addStyle(` #omnibox, .gb_6f{top:29px!important;} `); } else if (/news.google.{2,6}/.test(vCurrentWebpage) == true) { GM_addStyle(` body{position:relative!important; top:29px!important;} .gb_qd{top:29px!important;} `); } else if (/google.{2,6}express/.test(vCurrentWebpage) == true) { GM_addStyle(` body{position:relative!important; top:29px!important;} .header,.stickyMobileHeader .mobileSearchWrapper,.mobileNavHeader{top:29px!important;} #GoogleBar{position:fixed!important;} `); } else if (/google.{2,6}forms/.test(vCurrentWebpage) == true || /google.{2,6}slides/.test(vCurrentWebpage) == true || /google.{2,6}sheets/.test(vCurrentWebpage) == true || /google.{2,6}docs/.test(vCurrentWebpage) == true || /google.{2,6}services/.test(vCurrentWebpage) == true || /google.{2,6}cloudprint/.test(vCurrentWebpage) == true ) { GM_addStyle(` body{position:relative!important; top:29px!important;} .header,.stickyMobileHeader .mobileSearchWrapper,.mobileNavHeader{top:29px!important;} #GoogleBar{position:fixed!important;} `); } else if (/store.google.{2,6}/.test(vCurrentWebpage) == true) { GM_addStyle(` body{position:relative!important; top:29px!important;} .sticky-stacky,.nav-panel{top:29px!important;} #GoogleBar{position:fixed!important;} `); } else if (/photos.google.{2,6}/.test(vCurrentWebpage) == true) { GM_addStyle(` body{position:relative!important; top:29px!important;} .SmZ4Wd,.scwMhd{top:29px;} #GoogleBar{position:fixed!important;} `); } else if (/docs.google.{2,6}/.test(vCurrentWebpage) == true) { GM_addStyle(` body{position:relative!important; top:29px!important;} .gb_qd{top:29px;} #GoogleBar{position:fixed!important;} `); } else if (/drive.google.{2,6}/.test(vCurrentWebpage) == true) { GM_addStyle(` body{position:relative!important; top:20px!important;} .a-D-Pe-Q{top:29px!important;} .a-s-tb-Pe-Q{top:8px!important;} #GoogleBar{position:fixed!important;} `); } else if (/keep.google.{2,6}/.test(vCurrentWebpage) == true) { GM_addStyle(` body{position:relative!important; top:29px!important;} .gb_qd{top:29px!important;} #GoogleBar{position:fixed!important;} `); } else if (/contacts.google.{2,6}/.test(vCurrentWebpage) == true) { GM_addStyle(` body{position:relative!important; top:29px!important;} #GoogleBar{position:fixed!important;} `); } else if (/books.google.{2,6}/.test(vCurrentWebpage) == true) { GM_addStyle(` .gb_6f{top:29px!important;} `); } else if (/voice.google.{2,6}/.test(vCurrentWebpage) == true || /.google.{2,6}voice/.test(vCurrentWebpage) == true) { GM_addStyle(` body{position:relative!important; top:29px!important;} `); } else if (/youtube.{2,6}/.test(vCurrentWebpage) == true) { GM_addStyle(` #masthead-positioner,#appbar-guide-menu{top:29px!important;} #guide-spacer,#page-manager { margin-top: var(--ytd-masthead-height, 85px) !important;} #GoogleBar{position:fixed!important;} `); } else if (/youtube.{2,6}watch/.test(vCurrentWebpage) == true) { GM_addStyle(` #masthead-container,#contentContainer.app-drawer{top:29px!important;} `); } else if (/plus.google.{2,6}/.test(vCurrentWebpage) == true) { GM_addStyle(` .Wxeofe, /*Google Plus Images*/ .KXqTuf{top:29px!important;} .u5oEgd{top:120px!important;} #GoogleBar{position:fixed!important;} `); } else if (/google.{2,20}chromecast/.test(vCurrentWebpage) == true || /allo.google.{2,6}/.test(vCurrentWebpage) == true || /google.{2,20}chromebook/.test(vCurrentWebpage) == true ) { GM_addStyle(` header{top:29px!important;} body{position:relative!important; top:29px!important;} #GoogleBar{position:fixed!important;} `); } else if (/google.{2,10}chrome\/newtab/.test(vCurrentWebpage) == true) { GM_addStyle(` body{position:relative!important; top:10px!important;} `); } else if (/play.google.{2,6}store/.test(vCurrentWebpage) == true) { var vBarPosition = GM_getValue('GB_Pos'); //play nested if if (vBarPosition === "fixed") { GM_addStyle(` body{position:relative!important; top:29px!important;} .sticky,.action-bar{top:29px!important;} `); } GM_addStyle(` body{position:relative!important; top:29px!important;} `); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址