开启时会模糊预览图,关闭后正常显示

TLDR; I make software with AI and talk about it. Serial internet biz builder with multiple 6 & 7 figure exits. Always learning.


Building digital assets Founder of: 💸 https://t.co/25luMOeurc 📧 https://t.co/R5XVHCie1Z 🔎 https://t.co/zQs9wdGD4c 🏟️ https://t.co/2YDuZxDKM8


Built Tweet Hunter, Taplio (sold $8m) Growing https://t.co/OyNJ8ZUyOh - https://t.co/jS9GQJ5Ps8 - https://t.co/EFUcKeBbpU - https://t.co/JkVOl1O0S1 - https://t.co/KG9PgxJabg Sharing weekly tips about growth: https://t.co/ereQodN3Ov


💡 挖掘开源的价值 🧑🏻💻 坚持分享 GitHub 上高质量、有趣、实用的教程、AI工具、前沿 AI 技术 🧐 A list cool, interesting projects of GitHub. ✏️ 公众号:GitHubDaily

![// ==UserScript==
// @name 小宇宙播客倍速播放
// @namespace https://t.co/EcRyuxlHjq
// @version 1.1
// @description 为小宇宙网页版添加播放倍速控制功能
// @author You
// @match https://t.co/oV7FDA6DLX*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// 等待音频元素加载
function waitForAudio() {
const audio = document.querySelector('audio');
if (audio) {
addSpeedControl(audio);
} else {
setTimeout(waitForAudio, 500);
}
}
// 添加倍速控制
function addSpeedControl(audio) {
// 创建倍速控制容器
const speedContainer = document.createElement('div');
https://t.co/NnVY7mFfir.cssText = `
position: fixed;
top: 80px;
right: 20px;
background: white;
border-radius: 8px;
padding: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
z-index: 1000;
display: flex;
flex-direction: column;
gap: 8px;
`;
// 倍速选项
const speeds = [0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0];
// 创建标题
const title = document.createElement('div');
title.textContent = '播放倍速';
https://t.co/kkc695BtY1.cssText = `
font-size: 12px;
color: #666;
text-align: center;
margin-bottom: 5px;
`;
speedContainer.appendChild(title);
// 创建倍速按钮
speeds.forEach(speed => {
const btn = document.createElement('button');
btn.textContent = `${speed}x`;
https://t.co/5ZBU1WBy4L.cssText = `
padding: 8px 15px;
border: 1px solid #ddd;
border-radius: 5px;
background: white;
cursor: pointer;
font-size: 14px;
transition: all 0.2s;
`;
// 设置当前倍速的样式
if (speed === 1.0) {
https://t.co/5ZBU1WBy4L.background = 'var(--theme-color, #25B4E1)';
https://t.co/5ZBU1WBy4L.color = 'white';
https://t.co/5ZBU1WBy4L.borderColor = 'var(--theme-color, #25B4E1)';
}
btn.addEventListener('click', () => {
audio.playbackRate = speed;
// 更新所有按钮样式
speedContainer.querySelectorAll('button').forEach(b => {
https://t.co/kqnhnypYTa.background = 'white';
https://t.co/kqnhnypYTa.color = 'black';
https://t.co/kqnhnypYTa.borderColor = '#ddd';
});
// 高亮当前按钮
https://t.co/5ZBU1WBy4L.background = 'var(--theme-color, #25B4E1)';
https://t.co/5ZBU1WBy4L.color = 'white';
https://t.co/5ZBU1WBy4L.borderColor = 'var(--theme-color, #25B4E1)';
});
btn.addEventListener('mouseenter', () => {
if (audio.playbackRate !== speed) {
https://t.co/5ZBU1WBy4L.background = '#f5f5f5';
}
});
btn.addEventListener('mouseleave', () => {
if (audio.playbackRate !== speed) {
https://t.co/5ZBU1WBy4L.background = 'white';
}
});
speedContainer.appendChild(btn);
});
// 添加到页面
document.body.appendChild(speedContainer);
// 添加快捷键支持
document.addEventListener('keydown', (e) => {
// 使用数字键 1-7 快速切换倍速
if (e.key >= '1' && e.key <= '7') {
const index = parseInt(e.key) - 1;
if (speeds[index]) {
audio.playbackRate = speeds[index];
// 触发对应按钮的点击效果
speedContainer.querySelectorAll('button')[index + 1].click();
}
}
});
console.log('倍速控制已添加!可使用数字键1-7快速切换倍速');
}
// 开始监听
waitForAudio();
})(); // ==UserScript==
// @name 小宇宙播客倍速播放
// @namespace https://t.co/EcRyuxlHjq
// @version 1.1
// @description 为小宇宙网页版添加播放倍速控制功能
// @author You
// @match https://t.co/oV7FDA6DLX*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// 等待音频元素加载
function waitForAudio() {
const audio = document.querySelector('audio');
if (audio) {
addSpeedControl(audio);
} else {
setTimeout(waitForAudio, 500);
}
}
// 添加倍速控制
function addSpeedControl(audio) {
// 创建倍速控制容器
const speedContainer = document.createElement('div');
https://t.co/NnVY7mFfir.cssText = `
position: fixed;
top: 80px;
right: 20px;
background: white;
border-radius: 8px;
padding: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
z-index: 1000;
display: flex;
flex-direction: column;
gap: 8px;
`;
// 倍速选项
const speeds = [0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0];
// 创建标题
const title = document.createElement('div');
title.textContent = '播放倍速';
https://t.co/kkc695BtY1.cssText = `
font-size: 12px;
color: #666;
text-align: center;
margin-bottom: 5px;
`;
speedContainer.appendChild(title);
// 创建倍速按钮
speeds.forEach(speed => {
const btn = document.createElement('button');
btn.textContent = `${speed}x`;
https://t.co/5ZBU1WBy4L.cssText = `
padding: 8px 15px;
border: 1px solid #ddd;
border-radius: 5px;
background: white;
cursor: pointer;
font-size: 14px;
transition: all 0.2s;
`;
// 设置当前倍速的样式
if (speed === 1.0) {
https://t.co/5ZBU1WBy4L.background = 'var(--theme-color, #25B4E1)';
https://t.co/5ZBU1WBy4L.color = 'white';
https://t.co/5ZBU1WBy4L.borderColor = 'var(--theme-color, #25B4E1)';
}
btn.addEventListener('click', () => {
audio.playbackRate = speed;
// 更新所有按钮样式
speedContainer.querySelectorAll('button').forEach(b => {
https://t.co/kqnhnypYTa.background = 'white';
https://t.co/kqnhnypYTa.color = 'black';
https://t.co/kqnhnypYTa.borderColor = '#ddd';
});
// 高亮当前按钮
https://t.co/5ZBU1WBy4L.background = 'var(--theme-color, #25B4E1)';
https://t.co/5ZBU1WBy4L.color = 'white';
https://t.co/5ZBU1WBy4L.borderColor = 'var(--theme-color, #25B4E1)';
});
btn.addEventListener('mouseenter', () => {
if (audio.playbackRate !== speed) {
https://t.co/5ZBU1WBy4L.background = '#f5f5f5';
}
});
btn.addEventListener('mouseleave', () => {
if (audio.playbackRate !== speed) {
https://t.co/5ZBU1WBy4L.background = 'white';
}
});
speedContainer.appendChild(btn);
});
// 添加到页面
document.body.appendChild(speedContainer);
// 添加快捷键支持
document.addEventListener('keydown', (e) => {
// 使用数字键 1-7 快速切换倍速
if (e.key >= '1' && e.key <= '7') {
const index = parseInt(e.key) - 1;
if (speeds[index]) {
audio.playbackRate = speeds[index];
// 触发对应按钮的点击效果
speedContainer.querySelectorAll('button')[index + 1].click();
}
}
});
console.log('倍速控制已添加!可使用数字键1-7快速切换倍速');
}
// 开始监听
waitForAudio();
})();](/_next/image?url=https%3A%2F%2Fpbs.twimg.com%2Fprofile_images%2F1960882043249942533%2Fh4J39ERy_400x400.jpg&w=3840&q=75)
喜欢摇滚乐、爱钓鱼的PM 网站:https://t.co/vnUpLt752o


// ==UserScript== // @name 小宇宙播客倍速播放 // @namespace https://t.co/EcRyuxlHjq // @version 1.1 // @description 为小宇宙网页版添加播放倍速控制功能 // @author You // @match https://t.co/oV7FDA6DLX* // @grant none // ==/UserScript== (function() { 'use strict'; // 等待音频元素加载 function waitForAudio() { const audio = document.querySelector('audio'); if (audio) { addSpeedControl(audio); } else { setTimeout(waitForAudio, 500); } } // 添加倍速控制 function addSpeedControl(audio) { // 创建倍速控制容器 const speedContainer = document.createElement('div'); https://t.co/NnVY7mFfir.cssText = ` position: fixed; top: 80px; right: 20px; background: white; border-radius: 8px; padding: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000; display: flex; flex-direction: column; gap: 8px; `; // 倍速选项 const speeds = [0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0]; // 创建标题 const title = document.createElement('div'); title.textContent = '播放倍速'; https://t.co/kkc695BtY1.cssText = ` font-size: 12px; color: #666; text-align: center; margin-bottom: 5px; `; speedContainer.appendChild(title); // 创建倍速按钮 speeds.forEach(speed => { const btn = document.createElement('button'); btn.textContent = `${speed}x`; https://t.co/5ZBU1WBy4L.cssText = ` padding: 8px 15px; border: 1px solid #ddd; border-radius: 5px; background: white; cursor: pointer; font-size: 14px; transition: all 0.2s; `; // 设置当前倍速的样式 if (speed === 1.0) { https://t.co/5ZBU1WBy4L.background = 'var(--theme-color, #25B4E1)'; https://t.co/5ZBU1WBy4L.color = 'white'; https://t.co/5ZBU1WBy4L.borderColor = 'var(--theme-color, #25B4E1)'; } btn.addEventListener('click', () => { audio.playbackRate = speed; // 更新所有按钮样式 speedContainer.querySelectorAll('button').forEach(b => { https://t.co/kqnhnypYTa.background = 'white'; https://t.co/kqnhnypYTa.color = 'black'; https://t.co/kqnhnypYTa.borderColor = '#ddd'; }); // 高亮当前按钮 https://t.co/5ZBU1WBy4L.background = 'var(--theme-color, #25B4E1)'; https://t.co/5ZBU1WBy4L.color = 'white'; https://t.co/5ZBU1WBy4L.borderColor = 'var(--theme-color, #25B4E1)'; }); btn.addEventListener('mouseenter', () => { if (audio.playbackRate !== speed) { https://t.co/5ZBU1WBy4L.background = '#f5f5f5'; } }); btn.addEventListener('mouseleave', () => { if (audio.playbackRate !== speed) { https://t.co/5ZBU1WBy4L.background = 'white'; } }); speedContainer.appendChild(btn); }); // 添加到页面 document.body.appendChild(speedContainer); // 添加快捷键支持 document.addEventListener('keydown', (e) => { // 使用数字键 1-7 快速切换倍速 if (e.key >= '1' && e.key <= '7') { const index = parseInt(e.key) - 1; if (speeds[index]) { audio.playbackRate = speeds[index]; // 触发对应按钮的点击效果 speedContainer.querySelectorAll('button')[index + 1].click(); } } }); console.log('倍速控制已添加!可使用数字键1-7快速切换倍速'); } // 开始监听 waitForAudio(); })();
