@yucho,我讨厌这垃圾网站。
小尾巴华为Mate XTs非凡鸡佬版
不明白为什么程序员或公司开源程序都喜欢放这个垃圾网站上,极品垃圾网站,一个共享平台非要搞得那么复杂,直接压缩包包或程序安装包下载得了,和国内网站一样页面介绍程序功能,下面直接显示下载按钮,这垃圾就不是。
小尾巴华为Mate XTs非凡鸡佬版
@MK,因为GitHub的定位就不是软件下载平台,其核心功能只有软件源代码的共享。因此哪怕开发者完全不提供下载链接而要求你自己编译安装,那也是合情合理的
@老虎会游泳 怎么打上virtio驱动啊,虚拟机动不动就卡死
@残缘,我知道了,分隔符是分号,不是空格。这样就可以了:
<iframe class="useriframe" id="user_iframe_1" srcdoc="嵌入的网页代码" seamless="seamless" width="100%" height="300" style="border: none" allow="fullscreen; local-fonts" sandbox="allow-forms allow-orientation-lock allow-pointer-lock allow-popups allow-presentation allow-scripts"></iframe>https://www.thewebmaster.com/html/attributes/allow/
<iframe src="[insert source]" allow="camera 'none'; microphone 'none'"></iframe>
导入网页插件:html所有预览功能新窗口打开(当前用户:1,总安装次数:1)<script> document.addEventListener('DOMContentLoaded', function() { // 获取目标 <a> 元素 const targetLink = document.querySelector('a.useriframelink'); if (!targetLink) return; // 创建按钮元素 const previewBtn = document.createElement('button'); previewBtn.textContent = '新窗口预览'; previewBtn.style.cssText = 'margin-left: 10px; cursor: pointer;'; // 在 <a> 元素后面插入按钮 targetLink.insertAdjacentElement('afterend', previewBtn); // 解码 HTML 实体的函数 const decodeEntities = (html) => { const txt = document.createElement('textarea'); txt.innerHTML = html; return txt.value; }; // 点击事件处理 previewBtn.addEventListener('click', () => { const iframe = document.querySelector('.useriframe'); if (!iframe) return; // 解码 srcdoc 内容 const decodedContent = decodeEntities(iframe.srcdoc); // 创建新窗口 const newWindow = window.open('', 'Preview', 'width=800,height=600'); if (!newWindow) { alert('请允许弹出窗口'); return; } // 写入解码后的内容 newWindow.document.open(); newWindow.document.write(` <!DOCTYPE html> <html> <head> <title>预览</title> <base target="_blank"> <style>body { margin: 10px }</style> </head> <body>${decodedContent}</body> </html> `); newWindow.document.close(); }); }); </script>
可以加个是否打开新窗口二次手动确认
@老虎会游泳,单独写allow="local-fonts"是可以的,但是allow="fullscreen local-fonts"不行。
我已经加了
allow="local-fonts"但没效果,谁知道怎么正确添加权限?<iframe class="useriframe" id="user_iframe_1" srcdoc="嵌入的网页代码" seamless="seamless" width="100%" height="300" style="border: none" allow="fullscreen local-fonts" sandbox="allow-forms allow-orientation-lock allow-pointer-lock allow-popups allow-presentation allow-scripts"></iframe>
在
[html]标签的 sandbox iframe 里没有访问字体的权限,要测试可以前往这个页面:
移动端浏览器都不支持Font Access API
@上善若水,谢谢
虎友高配版(绿色)
@无名啊,加精了
@tasy5kg,咦,你的帖子怎么有🔥标志的
@童真再见,把系统盘U盘插到别的电脑之后,可以把启动盘设为U盘,然后启动你U盘上的系统。
如果找不到启动项或者启动失败,还可以在你正常的系统里用bootice这个软件编辑BCD,新增启动项,把U盘里的Windows作为第二启动项,然后重启选系统。
@童真再见,客服懂个几把毛
小米MIX2s(白)
@上善若水,可自动填充密码时,没有需要输入锁屏密码呀。。
@无名啊,有锁屏密码应该加密,因为查看密码要输入密码
一加ace2Pro(灰|24+1024)
@童真再见,Chrome 好像不加密这些数据的吧。。
能不能把 Chrome 所有用到的目录(本体+数据),拷贝到新电脑,再正常打开呢。。
或者直接在新电脑启动这个硬盘里的系统?(我好像试过,安装在 10 年前 i7-4790 的 Win11,也能在 3 年前 6900HX 上正常启动。。)
@童真再见,你直接进入这个u盘里面的系统不就好了
一加ace2Pro(灰|24+1024)
