geekhub更换logo

try to take over the world!

目前为 2020-09-17 提交的版本。查看 最新版本

// ==UserScript==
// @name         geekhub更换logo
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       夜幕下的尖椒
// @match        https://geekhub.com/**
// @grant        none
// @require      https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js
// ==/UserScript==

(function() {
    'use strict';
     //获取该对象
    var logo = $("header div div a")[0];
    logo.style.background="url(https://i.loli.net/2020/09/15/uNbf24htM3dQzev.png)";
    logo.style.width = '350px';
    logo.style.height = '100px';
    //logo.style.background-size = '50%';
    logo.innerHTML="";
    // Your code here...
})();