跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 关于知乎登录弹窗的简单解决方式(不需要油猴)
未分類
2 12 月 2020

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

vagrantear 大佬有话说 :

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

只需要f12以后Disable JavaScript
然后再刷新一波就行了

ABCHINA 大佬有话说 :

你知道javascript是啥吗?
你这样小白搞不好要重装浏览器的

深巷老猫i 大佬有话说 :

给个脚本 方便
// ==UserScript==
// @name         知乎免登录
// @namespace    http://tampermonkey.net/
// @version      0.7
// @description垃圾知乎既然逼着电脑端用短信登陆,那爷就不登陆了
// @author       You
// @match      https://www.zhihu.com/*
// @grant      none
// ==/UserScript==

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

function htmlObservation(mutationList,observer){
    for(let mutation of mutationList){
      if(‘attributes’ === mutation.type && ‘style’ === mutation.attributeName){
      if(document.body.parentNode.style.overflow !== ‘auto’){
          document.body.parentNode.style.overflow = ‘auto’
      }
      }
    }
}

function bodyObservation(mutationList,observer){
    if(document.getElementsByClassName(‘signFlowModal’)){
      const model = document.getElementsByClassName(‘Modal-wrapper’)
      if(model){
      model.parentNode.removeChild(model)
      }
    }
}

document.body.parentNode.style.overflow = ‘auto’
const htmlObserverConfig = {attributes:true}
const htmlObserver = new MutationObserver(htmlObservation)
htmlObserver.observe(document.body.parentNode,htmlObserverConfig)

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

})();

mix 大佬有话说 :

更简单同时不影响正常浏览
||static.zhihu.com/heifetz/main.signflow.*.js$script,domain=www.zhihu.com

angelbaby 大佬有话说 :

#屏蔽知乎登录框
#屏蔽知乎登录框
#zhihu.com##.Modal-wrapper
zhihu.com##html:style(overflow: auto !important)
zhihu.com##.Modal-wrapper:has(.signFlowModal)
||static.zhihu.com/heifetz/main.signflow*.js

夢見りあむ 大佬有话说 :

本帖最后由 夢見りあむ 于 2020-12-2 12:41 编辑

回错了

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具