您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
将电脑版页面改为手机版,让新闻内容居中,隐藏推荐新闻
当前为
// ==UserScript== // @name 快资讯美化 // @namespace http://tampermonkey.net/ // @version 0.5 // @description 将电脑版页面改为手机版,让新闻内容居中,隐藏推荐新闻 // @author AN drew // @match *://www.360kuai.com/* // @match *://360kuai.com/* // @run-at document-start // @grant none // ==/UserScript== (function() { 'use strict' var u0 = window.location.href; var u1,u2,u3,u4; if(u0.indexOf("/pc/?sign=360") > -1) //news.360.com return; if(u0.indexOf("mob") == -1) //非手机版 { if(u0.indexOf("pc/detail") > -1) //电脑版 { window.location.pathname="/mob/transcoding"; } else { if(u0.indexOf("www") > -1) //www.360kuai.com { u1 = u0.substr(0,24) //.com之前 u2 = u0.substr(24,17) //pathname } else //360kuai.com { u1 = u0.substr(0,20) //.com之前 u2 = u0.substr(20,17) //pathname } if(u2=="") return; else if(u2.indexOf("pc/home") == -1 && u2.indexOf("pc/?") == -1 && u2.indexOf("pc/zmt") == -1 && u2.indexOf("pc/wallet") == -1 && u2.indexOf("pc/event") == -1 ) //非电脑版首页,非关注页,非钱包页,非专题页 { if(u2.indexOf("pc") > -1)//路径pc { u2 = u0.substr(27,17) if(u2=="") return; u3 = u0.substr(45,u0.length-45) u4 = u1+"mob/transcoding?url="+u2+"&"+u3; window.location.href = u4 } else //无前缀 { u3 = u0.substr(42,u0.length-42) u4 = u1+"mob/transcoding?url="+u2+"&"+u3; window.location.href = u4 } } } } setInterval(function(){ $("#rel_news").hide(); $("#aside").hide(); $(".vs-block--relate").hide(); }) var timer = setInterval(function(){ if($(".vs-content .vs-content__info").length>0 ) { $(".vs-content .vs-content__info").prependTo($(".vs-content")); clearInterval(timer); } }) $("#hd_usernav").on('mouseenter', function () { var url=window.location.href; if(url.indexOf("pc/zmt") > -1 || url.indexOf("pc/wallet") > -1) { $("#user-follow").attr("target","_self"); $(".my-wallet").attr({ "href":"https://www.360kuai.com/pc/wallet", "target":"_self" }); } else { $(".my-wallet").attr({ "target":"_self" }); } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址