您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
检测京东搜索关键词,自动添加 【自营】,顺便去掉各种返利追踪等尾巴
// ==UserScript== // @name 京东只选自营 // @description 检测京东搜索关键词,自动添加 【自营】,顺便去掉各种返利追踪等尾巴 // @namespace https://greasyfork.org/zh-CN/scripts/369241 // @version 0.5 // @author lqzh // @copyright lqzh // @include http*://search.jd.com/Search?keyword=* // @grant none // ==/UserScript== (function() { 'use strict'; var key = getUrlParam('keyword'); if (key.indexOf("自营")==-1){ window.location.href= "https://search.jd.com/Search?keyword=" +key +"%20自营" + "&enc=utf-8"; } function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r != null) { return decodeURI(r[2]); } return null; } })();