您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
- // ==UserScript==
- // @name New Userscript
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://www.zhihu.com/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var style = document.createElement("style");
- style.innerHTML = `a {
- color: hsl(31, 80%, 84%);
- }
- .zu-top {
- background: -webkit-linear-gradient(top,hsl(35, 27%, 98%),hsl(31, 26%, 85%));
- border-bottom: 1px solid hsl(31, 26%, 73%);
- }
- .zu-top-add-question {
- background: linear-gradient(to bottom,hsl(32, 23%, 98%),hsl(31, 23%, 89%));
- border: 1px solid hsl(31, 27%, 84%);
- }
- .zu-top-nav-li.current {
- background: linear-gradient(to bottom,hsl(31, 26%, 86%),hsl(31, 24%, 84%));
- }
- .zu-top-search-input {
- border: 1px solid hsl(31, 27%, 84%);
- }
- .zu-top-search-form .zu-top-search-button {
- background: linear-gradient(to bottom,hsl(32, 23%, 98%),hsl(31, 23%, 89%));
- border: 1px solid hsl(31, 27%, 84%);
- }`;
- console.log("run!");
- document.getElementsByTagName('head')[0].appendChild(style);
- document.getElementById('q').placeholder = '搜索你感兴趣的床单...';
- // Your code here...
- })();