hao123

hao123导航精简

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         hao123
// @namespace    http://tampermonkey.net/
// @version      0.2
// @icon         https://www.hao123.com/favicon.ico
// @description  hao123导航精简
// @author       Mirror
// @match        https://www.hao123.com/
// @grant        none
// ==/UserScript==

(function() {
  var rigth = document.querySelector(".layout-right");
  var left = document.querySelector(".layout-left");
  var script = document.querySelectorAll("script");
  var hotsearchCon = document.querySelector(".hotsearchCon");
  var notice = document.querySelector(".notice");
  var suggest = document.querySelector(".suggest");
  var hotword = document.querySelector(".hotword");
  var spread = document.querySelector(".spread");
  left.parentNode.removeChild(left);
  rigth.parentNode.removeChild(rigth);
  hotsearchCon.parentNode.removeChild(hotsearchCon);
  hotword.parentNode.removeChild(hotword);
  notice.parentNode.removeChild(notice);
  spread.click();
  script.forEach( item => {
      item.parentNode.removeChild(item);
  });
})();