惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News and Events Feed by Topic
Stack Overflow Blog
Stack Overflow Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
量子位
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
F
Full Disclosure
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
A
About on SuperTechFans
G
Google Developers Blog
U
Unit 42
腾讯CDC
雷峰网
雷峰网
爱范儿
爱范儿
H
Help Net Security
Engineering at Meta
Engineering at Meta
Vercel News
Vercel News
Cloudbric
Cloudbric
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Secure Thoughts
有赞技术团队
有赞技术团队
Jina AI
Jina AI
L
LINUX DO - 最新话题
Martin Fowler
Martin Fowler
C
Cybersecurity and Infrastructure Security Agency CISA
V
Visual Studio Blog
TaoSecurity Blog
TaoSecurity Blog
F
Fortinet All Blogs
S
Security @ Cisco Blogs
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
IT之家
IT之家
T
The Blog of Author Tim Ferriss
K
Kaspersky official blog
N
News | PayPal Newsroom
美团技术团队
月光博客
月光博客
PCI Perspectives
PCI Perspectives
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Google Online Security Blog
Google Online Security Blog
L
LINUX DO - 热门话题
Help Net Security
Help Net Security
Recent Announcements
Recent Announcements
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
Latest news
Latest news
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

北门清燕

🎙️ 科技热文播报 - 2026-03-14 【vscode扩展】apis-tester Notion工具人bot VPS橱窗 - 一个简单的哪吒面板主题 ios17.0可以安装Trollstore了 windows服务器安装mysql踩坑指北 为哪吒面板增加视频背景 继续折腾astro serv00部署FreshRSS 【原创】油猴脚本:哪吒VPS橱窗后台脚本 哪吒面板终极进化之VPS橱窗 Typecho二开魔改简单指北 【原创】油猴脚本:论坛快捷回帖 简单米表:Typecho-Simple-Mibiao Windows 11 23H2更新遇到下载错误解决方法 Microsoft 365 E5开发者订阅管理员双重认证丢失解决方法 Virtualbox安装Ubuntu不完全指北 一剑开天门 将chrome谷歌浏览器轻松打造成rss阅读器 地震云 罗刹海市 关于笑果我觉得还是罗翔老师说的好 推荐正在玩的游戏:SimpleMMO,附游戏助手SMMOHelper 集成Elog使用notion数据库 【原创】ios捷径:法定工作日打卡提醒 测试AI 再次折腾hexo docker部署freshrss apifox自动导入apidoc接口数据 node项目部署到ftp vite项目使用tinymce插件axupimgs实现多图片上传 tomcat服务器上utf8编码的文件乱码解决方法 快捷指令:图床 七牛上传视频获取视频封面和缩略图 注销网站得慎重 【原创】ios捷径:捷径库 【原创】ios捷径:自动壁纸 【原创】ios捷径:倒班闹钟 idea找回执行git pull操作后,被覆盖的本地未提交的代码 altserver跳坑指北 吐一吐三丰云免费服务器 Microsoft Store中的应用软件如何备份数据 卖盘 利用frp实现微软远程桌面管理内网电脑之不完全指北 apicloud用tortoisesvn管理代码,实现按不同分支编译打包app vscode插件提示:command 'extension.updateSettings' not found解决方法 apicloud使用alipayplus支付宝支付模块注意事项 【原创】越狱插件安装注意事项 api.closeFrameGroup的一些注意事项 【原创】ios捷径:我的心愿单 【原创】ios捷径:一键获取urlscheme 【原创】ios捷径:一键签到 【原创】ios捷径:qq群一键签到 【原创】ios捷径:百度搜索风云榜2.1.0 【原创】ios捷径:一键天气预报 【原创】ios捷径:微博热搜榜2.0强势更新 ios捷径:bmqy捷径库 自定义IntelliJ IDEA配置和插件的存放目录,以方便同步idea配置 wordpress平台next主题 vscode本地调试asp ajaxFileUpload上传成功也执行error方法 更换回wordpress。。。 一键收取熊猫守护者威力值 vscode软件窗口标题栏显示文件完整路径 微信小程序“支付签名验证失败”问题的解决参考 “idea已连接上ftp但看不到文件”的解决办法 js格式化时间显示 js实现中文转换成拼音 h5移动端ios输入法软键盘导致fixed布局bug的解决方案 生命不息,折腾不止之“hexo” echarts中tooltips自定义数据结构与样式 淘米辅助工具 聚名网辅助工具 仿站制作6 wordpress新添加页面显示评论 华为mate8(b584)root过程简要记录 asp解析json的方法 为子主题增加主题选项功能 自制chrome扩展:百度云分享链接一键登录 清燕的云集小店 Google play下载app状态栏进度显示异常的应对方法 吐槽百度翻译之离线翻译包 现在只有人民才是真正的为人民 吐槽腾讯大王卡 wordpress添加twentysixteen子主题 idea配置less自动编译 使用chrome浏览器调试移动端web页面 idea编译less并使用autoprefixer sublime自动编译less2css插件,保存时提示系统找不到指定文件 吐一吐中信的升白金 Android手机下输入框获取焦点时, 输入法挡住输入框bug的解决方法 wordpress头像不显示解决方法 用子主题functions.php添加自定义功能后访问网站报错解决方法 ueditor百度编辑器添加自定义模板并设为默认 仿站制作5 读老树画画随感 VMware-workstation 12 安装 Mac OS X 10.10 做梦想 再咏咳 webstorm10配置less编译环境
哪吒面板default主题小鸡底部增加购买同款按钮
bmqy · 2024-05-08 · via 北门清燕

javascript

<script>
window.onload = function(){
	const affLinks = {
		crunchbits: 'https://get.crunchbits.com/order/lblk-yearly-kvm-ssd-vps/84',
		rainyun: 'https://www.rainyun.com/MjYzMTk=_',
		colocrossing: 'https://cloud.colocrossing.com/aff.php?aff=316',
		racknerd: 'https://my.racknerd.com/aff.php?aff=9727',
	}
	const extraData = {
	  2: {
	    pid: 0,
	    price: '$27.38/Year',
	    expire: '08/13/2024'
	  },
	  15: {
	    pid: 0,
	    price: '$22.69/Year',
	    expire: '04/08/2024'
	  },
	  10: {
	    pid: 358,
	    price: '$10.98/Year',
	    expire: '11/14/2024'
	  },
	  12: {
	    pid: 23,
	    price: '$10.00/Year',
	    expire: '02/13/2025'
	  },
	  13: {
	    pid: 0,
	    price: '¥245/Year',
	    expire: '08/09/2024'
	  },
	  14: {
	    pid: 0,
	    price: '1500P/Week',
	    expire: '-'
	  },
	}
	const cats = document.querySelectorAll('.ui.accordion');
	cats.forEach((e, i)=>{
	  let $catsTitle = e.querySelector('.title');
	  let ct = $catsTitle.innerText;
	  ct = ct.trim();	
	  if(ct === '默认'){
	    return;
	  }
	  
	  let $itemCard = e.querySelectorAll('.ui.card');
	  $itemCard.forEach((ee, ii)=>{
	    let $content = ee.querySelector('.content');
	    let $descriptionGrid = ee.querySelector('.description .ui.grid');
	    let $itemTitle = $content.querySelector('.header');
	    let id = ee.getAttribute('id');
	    let pid = extraData[id].pid;
	    pid = parseInt(pid);
	    let price = extraData[id].price;
	    let expire = extraData[id].expire;
	    let $aLinkBox = document.createElement('div');
			$aLinkBox.setAttribute('style', 'margin-top: 10px;position: absolute;bottom: 5px;right: 10px;');
			let $aLink = document.createElement('a');
			$aLink.setAttribute('style', 'background-color: rgb(10, 148, 242);color:white;padding: 3px 10px;border-radius: 5px;');
			$aLink.setAttribute('target', '_blank');
	    $aLink.innerHTML = '购买同款';
	    $aLink.href = affLinks[ct];
	    if(pid){
	      $aLink.href += '&pid='+ pid;
	    }
	    if(price){
	      let $priceL = document.createElement('div');
	      $priceL.setAttribute('class', 'three wide column');
	      $priceL.innerHTML = '价格';
	      $descriptionGrid.insertBefore($priceL, $descriptionGrid.childNodes[$descriptionGrid.childNodes.length-3]);
	      let $priceR = document.createElement('div');
	      $priceR.setAttribute('class', 'thirteen wide column');
	      $priceR.innerHTML = '<i class="bi-cash-coin icon" style="color: rgb(228, 30, 16);"></i>'+ price;
	      $descriptionGrid.insertBefore($priceR, $descriptionGrid.childNodes[$descriptionGrid.childNodes.length-3])
	    }
	    if(expire){
	      let $expireL = document.createElement('div');
	      $expireL.setAttribute('class', 'three wide column');
	      $expireL.innerHTML = '到期';
	      $descriptionGrid.insertBefore($expireL, $descriptionGrid.childNodes[$descriptionGrid.childNodes.length-3])
	      let $expireR = document.createElement('div');
	      $expireR.setAttribute('class', 'thirteen wide column');
	      $expireR.innerHTML = '<i class="bi-calendar-x icon" style="color: rgb(228, 30, 16);"></i>'+ expire;
	      $descriptionGrid.insertBefore($expireR, $descriptionGrid.childNodes[$descriptionGrid.childNodes.length-3])
	    }
	    $aLinkBox.append($aLink);
	    $content.append($aLinkBox);
	  });
	});
}
</script>

javascript

$aLinkBox.setAttribute('style', 'position: absolute;bottom: 23px;right: 10px;');
$aLink.setAttribute('style', 'background-color: #21ba45f0;color: #fff;padding: 3px 10px;border-radius: 100px;box-shadow: 0 1px 2px 0 rgba(34, 36, 38, .15), 0 0 0 1px rgba(34, 36, 38, .15)');