// ==UserScript== // @name DuckDuckMenu // @description Extends DuckDuckGo by adding a customizable list of additional search engines for making fast searches from other engines. // @namespace greasyfork.org/users/3926-jguer // @homepage https://github.com/Jguer/DuckduckGo-Mextended // @icon https://raw.githubusercontent.com/Jguer/DuckduckGo-Mextended/master/resources/large.png // @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=joaogg3@hotmail.com&item_name=Kickass+24+donation // @include *://duckduckgo.com/?q=* // @match http://mycroftproject.com/* // @require //ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js // @grant GM_getValue // @grant GM_setValue // @grant GM_xmlhttpRequest // @license MIT // @version 3.0.1 Build 292 // @author Jguer // @downloadURL https://update.greasyfork.icu/scripts/3658/DuckDuckMenu.user.js // @updateURL https://update.greasyfork.icu/scripts/3658/DuckDuckMenu.meta.js // ==/UserScript== //Styles function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head') [0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } //Main Menu Style addGlobalStyle('.ddgm { background-color: #24272A; height: auto; display: inline-block;width: 100%; }'); //Button Style addGlobalStyle('.ddgmbtn { background-color: #24272A; height: 25px; width: auto; text-align: center; display: inline-block; vertical-align: middle;padding-top: 6px;padding-bottom: 6px; font-family: inherit; font-size: 1.2em; font-weight: 600; color: white; border-width: 3px; border-bottom-width: 0px; border-color: #24272A; padding-left: 4px; padding-right: 4px; border-style: solid;}'); addGlobalStyle('.ddgmbtn:hover { background-color: #5A6269; color: white; text-decoration:none;}'); addGlobalStyle('.ddgmbtn:visited {color: white;}'); //Custom Engine Style addGlobalStyle('.cddgmbtn { background-color: #24272A;}'); //Engine Add Style addGlobalStyle('.addengine { float: right;}'); addGlobalStyle('.addengine:hover { background-color: #5A6269; color: white; text-decoration:none;}'); addGlobalStyle('.addengine:visited {color: white;}'); //Edit Menu Style addGlobalStyle('.enginedit { float: right;}'); addGlobalStyle('.enginedit:hover { background-color: #5A6269; color: white; text-decoration:none;}'); addGlobalStyle('.enginedit:visited {color: white;}'); addGlobalStyle('.removex { color: red;font-family: inherit; font-weight: bold; position:relative; top:-5px;}'); addGlobalStyle('.removex:visited {color: red;}') addGlobalStyle('.removex:hover { color: white; text-decoration:none;}'); addGlobalStyle('.ddgem { background-color: #24272A; height: 20px; }'); addGlobalStyle('.ddgembtn { float: right; background-color: #24272A; height: 14px; width: auto; text-align: center; display: inline-block; vertical-align: middle;padding-top: 3px;padding-bottom: 3px; font-family: inherit; font-size: 0.8em; font-weight: 600; color: white; border-width: 3px; border-bottom-width: 0px;border-top-width: 0px; border-color: #24272A; padding-left: 4px; padding-right: 4px; border-style: solid;position:relative; top:-2px;}'); addGlobalStyle('.ddgembtn:hover { background-color: #5A6269; color: white; text-decoration:none;}'); addGlobalStyle('.ddgembtn:visited {color: white;}'); //News Style addGlobalStyle('.ddgmnews {color: white; background-color: #DE5833;text-align: center;-o-text-overflow: ellipsis;text-overflow: ellipsis;width: auto;height: auto; padding: 5px;margin: 0;overflow: visible;display: block;float: none;z-index: auto;-webkit-box-sizing: content-box;-moz-box-sizing: content-box;box-sizing: content-box;position: static;opacity: 1;cursor: default;border: none;-webkit-border-radius: 0 0 20px 20px;border-radius: 0 0 20px 20px;}'); //-DDG-// function ddm() { //Create Menu var searchVal = $('#search_form_input').val(); $('