净化掘金
当前为
// ==UserScript==
// @name Pure_掘金
// @namespace https://juejin.cn/*
// @match https://juejin.cn/*
// @grant none
// @version 0.2
// @author 13号寄信人
// @description 净化掘金
// @license MIT
// ==/UserScript==
(function () {
'use strict';
appendStyle(buildCss())
function buildCss() {
if (browserDetection() !== "PC") {
//------------------------移动端------------------------
return ``
} else {
//------------------------桌面端------------------------
return `
.recommend-box .global-component-box .article-end {
display: none !important;
}
.view {
display: flex !important;
justfy-content: center !important;
}
`
}
}
function appendStyle(css) {
let styleNode = document.createElement("style");
styleNode.appendChild(document.createTextNode(css));
(document.querySelector("head") || document.documentElement).appendChild(styleNode);
}
function browserDetection() {
const userAgent = window.navigator.userAgent.toLowerCase();
let browser = null;
if (userAgent.match(/ipad/i)) {
browser = 'ipad';
} else if (userAgent.match(/iphone os/i)) {
browser = 'iphone';
} else if (userAgent.match(/midp/i)) {
browser = 'midp'
} else if (userAgent.match(/rv:1.2.3.4/i)) {
browser = 'rv:1.2.3.4';
} else if (userAgent.match(/ucweb/i)) {
browser = 'ucweb';
} else if (userAgent.match(/android/i)) {
browser = 'android';
} else if (userAgent.match(/windows ce/i)) {
browser = 'windowsCe';
} else if (userAgent.match(/windows mobile/i)) {
browser = 'windowsMobile';
} else {
browser = 'PC'
}
return browser;
}
})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址