全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2350|回复: 14

[疑问] 关于知乎登录弹窗的简单解决方式(不需要油猴)

[复制链接]
发表于 2020-12-2 11:58:49 | 显示全部楼层 |阅读模式
只需要f12以后Disable JavaScript
然后再刷新一波就行了
发表于 2020-12-2 12:06:16 | 显示全部楼层
你知道javascript是啥吗?
你这样小白搞不好要重装浏览器的
发表于 2020-12-2 12:07:01 | 显示全部楼层
给个脚本 方便
  1. // ==UserScript==
  2. // [url=home.php?mod=space&uid=5839]@name[/url]         知乎免登录
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.7
  5. // @description  垃圾知乎既然逼着电脑端用短信登陆,那爷就不登陆了
  6. // @author       You
  7. // @match        https://www.zhihu.com/*
  8. // @grant        none
  9. // ==/UserScript==

  10. (function () {
  11.   "use strict";
  12.   if (document.location.href.indexOf("/signin?") > -1) {
  13.     window.location.href = "//zhihu.com/search?";
  14.   }


  15.   function htmlObservation(mutationList,observer){
  16.     for(let mutation of mutationList){
  17.       if('attributes' === mutation.type && 'style' === mutation.attributeName){
  18.         if(document.body.parentNode.style.overflow !== 'auto'){
  19.           document.body.parentNode.style.overflow = 'auto'
  20.         }
  21.       }
  22.     }
  23.   }

  24.   function bodyObservation(mutationList,observer){
  25.     if(document.getElementsByClassName('signFlowModal')[0]){
  26.       const model = document.getElementsByClassName('Modal-wrapper')[0]
  27.       if(model){
  28.         model.parentNode.removeChild(model)
  29.       }
  30.     }
  31.   }

  32.   document.body.parentNode.style.overflow = 'auto'
  33.   const htmlObserverConfig = {attributes:true}
  34.   const htmlObserver = new MutationObserver(htmlObservation)
  35.   htmlObserver.observe(document.body.parentNode,htmlObserverConfig)

  36.   const bodyObserverConfig = {childList:true,subtree:true}
  37.   const bodyObserver = new MutationObserver(bodyObservation)
  38.   bodyObserver.observe(document.body,bodyObserverConfig)

  39.   
  40. })();
复制代码

点评

感谢大佬给出其他解决方案  发表于 2020-12-2 16:45
发表于 2020-12-2 12:12:20 | 显示全部楼层
更简单同时不影响正常浏览
  1. ||static.zhihu.com/heifetz/main.signflow.*.js$script,domain=www.zhihu.com
复制代码

点评

感谢大佬给出其他解决方案  发表于 2020-12-2 16:46
发表于 2020-12-2 12:31:20 | 显示全部楼层
#屏蔽知乎登录框
  1. #屏蔽知乎登录框
  2. #zhihu.com##.Modal-wrapper
  3. zhihu.com##html:style(overflow: auto !important)
  4. zhihu.com##.Modal-wrapper:has(.signFlowModal)
  5. ||static.zhihu.com/heifetz/main.signflow*.js
复制代码

点评

感谢大佬给出其他解决方案  发表于 2020-12-2 19:27
发表于 2020-12-2 13:13:29 | 显示全部楼层

用户脚本无效
发表于 2020-12-2 13:20:18 来自手机 | 显示全部楼层
不用就行了
发表于 2020-12-2 13:22:23 | 显示全部楼层
墙裂建议mjj出个鸡呼吧。。。。反正广东话知乎=鸡呼,你鸡姆鸡啊?=你知不知道啊?

我做个后勤总监就可以了
 楼主| 发表于 2020-12-2 16:41:46 | 显示全部楼层
ABCHINA 发表于 2020-12-2 12:06
你知道javascript是啥吗?
你这样小白搞不好要重装浏览器的

放心,小白就直接登录了,不知道怎么关,不需要你那么操心、
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-6 16:12 , Processed in 0.080888 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表