码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 谷歌浏览器自定义标签页 newtab


    创建一个文件夹, 里面放置信息:

    在这里插入图片描述

    其中, manifest.json 不能变, home.html 是新的标签页信息

    manifest.json 内容:

    {
       "chrome_url_overrides": {
          "newtab": "home.html"
       },
    	"manifest_version": 2,
       "name": "myextension_newtab",
       "version": "2.2.0"
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8

    对 home.html 即新的标签页进行处理:

    
    DOCTYPE html>
    <html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <meta charset="utf-8">
        <title>岳泽霖,加油噢title>
        <meta name="Keywords" content="两个蝴蝶飞,岳建立,岳叔叔教你背古诗,岳泽霖">
        <meta name="Description" content="两个蝴蝶飞,岳建立,岳叔叔教你背古诗,岳泽霖">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="https://www.yueshushu.top/favicon.ico" rel="shortcut icon" type="image/x-icon" data-width="88px"/>
        <style>
    	* {
    		margin: 0;
    		padding: 0;
    	}
    
    	.show {
    		margin-top: 200px;
    		margin-left: 600px;
    		font-size: 90px;
    		color: red;
    	}
    	.formshow {
    		margin-top: 30px;
    		margin-left: 600px;
    	}
    	.s_input{
    		width: 512px;
    		height: 16px;
    		padding: 12px 16px;
    		font-size: 16px;
    		margin: 0;
    		vertical-align: top;
    		outline: 0;
    		box-shadow: none;
    		border-radius: 10px 0 0 10px;
    		border: 2px solid #c4c7ce;
    		background: #fff;
    		color: #222;
    		overflow: hidden;
    		box-sizing: content-box;
    		-webkit-tap-highlight-color: transparent;
    	}
    	.s_bd{
    	cursor: pointer;
        width: 108px;
        height: 44px;
        line-height: 45px;
        line-height: 44px\9;
        padding: 0;
        background: 0 0;
        background-color: #4e6ef2;
        border-radius: 0 10px 10px 0;
        font-size: 17px;
        color: #fff;
        box-shadow: none;
        font-weight: 400;
        border: none;
        outline: 0;
    	}
        style>
    head>
    <body class="page-bg" id='top'>
    <div class="row show">
      南无阿弥陀佛
    div>
    <div class="row formshow">
    <form action="https://www.bing.com/search" target="_blank">
    	<div>
    	<a href="http://www.yueshushu.top">
    			Logo
    	a>
    	div>
    	<div style="margin-top:-40px;">
    	<input name=tn type=hidden value=baidu>
    	<input name=PC type=hidden value=U316>
    	<input name=FORM type=hidden value=CHROMN>
    	<input type=text name=q size=50 class="s_input">
    	<input type="submit" value="必应一下" class="s_bd">
    	div>
    form>
    div>
    body>
    html>
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86

    在这里插入图片描述
    在这里插入图片描述

    在这里插入图片描述
    自定义 标签页成功.

    地址: www.yueshushu.top/soft/chrometab.zip

    参考链接: https://zhuanlan.zhihu.com/p/380131956

  • 相关阅读:
    车联网安全入门之仿真一辆车的通信网络
    操作系统4小时速成:进程同步,临界资源,互斥,信号量的作用,死锁产生的四个条件,安全状态,银行家算法
    汽车租赁管理系统的设计与实现(JSP+SqlServer在线租车网站)
    ABAP datum_range中的四个组件的作用
    分类预测 | Matlab实现PSO-LSTM粒子群算法优化长短期记忆神经网络的数据多输入分类预测
    NosQL之Redis配置与优化
    java小游戏-java小游戏-黄金矿工
    learn to Adapt for Generalized Zero-shot Text Classification
    基于红外传感器人体测温系统设计(STC89C51单片机)
    Qt中事件的处理
  • 原文地址:https://blog.csdn.net/yjltx1234csdn/article/details/128011101
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号