全球主机交流论坛
标题:
关于知乎登录弹窗的简单解决方式(不需要油猴)
[打印本页]
作者:
vagrantear
时间:
2020-12-2 11:58
标题:
关于知乎登录弹窗的简单解决方式(不需要油猴)
只需要f12以后Disable JavaScript
然后再刷新一波就行了
作者:
ABCHINA
时间:
2020-12-2 12:06
你知道javascript是啥吗?
你这样小白搞不好要重装浏览器的
作者:
深巷老猫i
时间:
2020-12-2 12:07
给个脚本 方便
// ==UserScript==
// [url=home.php?mod=space&uid=5839]@name[/url] 知乎免登录
// @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')[0]){
const model = document.getElementsByClassName('Modal-wrapper')[0]
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
时间:
2020-12-2 12:12
更简单同时不影响正常浏览
||static.zhihu.com/heifetz/main.signflow.*.js$script,domain=www.zhihu.com
复制代码
作者:
angelbaby
时间:
2020-12-2 12:31
#屏蔽知乎登录框
#屏蔽知乎登录框
#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:40
本帖最后由 夢見りあむ 于 2020-12-2 12:41 编辑
回错了
作者:
木易酱
时间:
2020-12-2 13:13
深巷老猫i 发表于 2020-12-2 12:07
给个脚本 方便
用户脚本无效
作者:
liloli
时间:
2020-12-2 13:20
不用就行了
作者:
IDC_Global
时间:
2020-12-2 13:22
墙裂建议mjj出个鸡呼吧。。。。反正广东话知乎=鸡呼,你鸡姆鸡啊?=你知不知道啊?
我做个后勤总监就可以了
作者:
vagrantear
时间:
2020-12-2 16:41
ABCHINA 发表于 2020-12-2 12:06
你知道javascript是啥吗?
你这样小白搞不好要重装浏览器的
放心,小白就直接登录了,不知道怎么关,不需要你那么操心、
作者:
vagrantear
时间:
2020-12-2 16:42
ABCHINA 发表于 2020-12-2 12:06
你知道javascript是啥吗?
你这样小白搞不好要重装浏览器的
我肯定不知道什么是JavaScript,我是fw。只有你这样的大佬才配知道
作者:
liuming
时间:
2020-12-2 20:31
来个大神把知乎采集了以后就不用去知乎了
欢迎光临 全球主机交流论坛 (https://d.168530.xyz/)
Powered by Discuz! X3.4