Greasy Fork is available in English.

618 双11_淘宝&天猫、京东、拼多多-天天拿隐藏优惠券 省钱导航条!

618 双11一键获取淘宝、天猫京东、拼多多的隐藏优惠券,跳转去网站 拿优惠券 !

// ==UserScript==
// @name         618 双11_淘宝&天猫、京东、拼多多-天天拿隐藏优惠券 省钱导航条!
// @namespace    618 双11_淘宝&天猫、京东、拼多多-天天拿隐藏优惠券 省钱导航条!
// @version      0.0.1a
// @description  618 双11一键获取淘宝、天猫京东、拼多多的隐藏优惠券,跳转去网站 拿优惠券 !
// @author       javduke
// @include      *
// @connect      socheap.store
// @grant        GM_xmlhttpRequest
// @require      http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js
// ==/UserScript==
/* eslint-disable */

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);
}
var logo = document.createElement("div");
logo.innerHTML = '<div id="all-search" class="as-horizontal"><img src="http://a-tb.ml/image/hb.jpg" height="23" width="23" /><a href="http://a-tb.tk" target="_blank" class="as-title as-title-horizontal md-opjjpmhoiojifppkkcdabiobhakljdgm_doc"><p class="as-title-inner">隐藏优惠</p></a> <ul class="as-menu as-menu--horizontal"><li class="as-menu-item"><div class="as-menu-item-title"><img src="http://a-tb.ml/image/tm.jpg" height="19" width="19" >&nbsp;<a href="http://a-tb.tk" target="_blank"><span>天猫 淘宝</span></a></div> </li><li class="as-menu-item"><div class="as-menu-item-title"><img src="http://a-tb.ml/image/jd.png" height="19" width="19" >&nbsp;<a href="http://a-tb.ml" target="_blank"><span>京&nbsp;&nbsp;东</span></a></div> <li class="as-menu-item"><div class="as-menu-item-title"><img src="http://a-tb.ml/image/pdd.png" height="19" width="19" ><span>&nbsp;<a href="https://youhui.pinduoduo.com/?pid=10588193_142393993&fromCustomerMall=1&cpsSign=CM_200529_10588193_142393993_0fab82b298ac8bdeede649381f10f94b&duoduo_type=2" target="_blank">拼多多</a></span></div> </div></li></ul> </div>';

document.body.insertBefore(logo, document.body.firstChild);

addGlobalStyle('.body-horizontal { margin-top: 30px; } .body-vertical { margin-left: 100px; } #all-search { position: fixed; display: flex !important; background-color: #ffffe5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; } .as-horizontal { height: 30px; width: 23%; top: 0; z-index: 999999; border-bottom: 1px #FFFFF1 solid; flex-direction: row; } .as-vertical { width: 100px; top: 0; left: 0; z-index: 999999; border-right: 1px #e8e8e8 solid; flex-direction: column; } .as-setting { line-height: 30px; padding: 0 16px; position: relative; margin: 0; white-space: nowrap; cursor: pointer; font-size: 14px; color: #606266; } .as-setting:hover { color: #1890ff; } @media screen and (max-width: 768px) { .as-title { display: none; } } .as-title-horizontal { width: 100px; margin: 0 10px; } .as-title-vertical { width: 100%; } .as-title { text-decoration: none !important; padding: 0; margin: 0; } .as-title .as-title-inner { font-size: 18px; height: 30px; line-height: 30px; font-weight: 600; color: #ce5153; margin: 0 auto; text-align: center; cursor: pointer; } .as-menu { flex: 1; } .as-menu::before, .as-menu::after { display: table; content: ""; } .as-menu::after { clear: both; } .as-menu { width: 100%; padding: 0; margin-top: 0; margin-bottom: 0; white-space: nowrap; border: 0; box-shadow: none; background-color: #fff;transparent; display: flex; } .as-menu--horizontal { flex-direction: row; } .as-menu--horizontal .as-menu-item-active { border-bottom: 2px solid #1890ff; } .as-menu--horizontal .as-subMenu-container { left: -22px; top: 24px; } .as-menu--vertical { flex-direction: column; } .as-menu--vertical .as-menu-item { margin: 5px 0; } .as-menu--vertical .as-menu-item-active { border-right: 2px solid #1890ff; } .as-menu--vertical .as-subMenu-container { left: 85px; top: -16px; } .as-menu-item { height: 30px; line-height: 30px; list-style: none; position: relative; transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .as-menu-item-icon { margin: 1.25px 10px 0 0; line-height: 28.75px; } .as-menu-item-title { padding: 0 16px; position: relative; margin: 0; white-space: nowrap; cursor: pointer; font-size: 14px; display: flex; align-items: center; color: #606266; background-color: #ffffe5; border-bottom: 2px solid rgba(255, 255, 255, 0); transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .as-menu-item-title:hover { color: #570000; } .as-menu-item-active { color: #570000; } .as-menu-item-active .as-menu-item-icon { color: #570000; } .as-menu-item-active .as-menu-item-title { color: #570000; } .as-subMenu-container { padding: 0 20px 20px; position: absolute; z-index: 99; transform-origin: 30% 0 0; } .as-subMenu { list-style: none; padding: 4px 0; min-width: 90px; border: 1px solid #e4e7ed; border-radius: 4px; background-color: #fff; box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); box-sizing: border-box; margin: 10px 0; } .as-subMenu li { font-size: 14px; padding: 0 20px; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #606266; height: 34px; line-height: 34px; box-sizing: border-box; cursor: pointer; } .as-subMenu li:hover { background-color: #f5f7fa; color: #1890ff; } .drop-enter-active, .drop-leave-active { transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); } .drop-enter, .drop-leave-to { opacity: 0; transform: scaleY(0.0001); } .fade-enter-active, .fade-leave-active { transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); } .fade-enter, .fade-leave-to { opacity: 0; } .as-subMenu-group-list { list-style: none; padding: 0; } .as-subMenu-group-list .as-menu-item-title { padding-left: 44px; }');