GithubHelp home page GithubHelp logo

sakuyaa / mynewtabmod Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 2.0 3.47 MB

修改myNewTab这个扩展,使其在火狐41上实现新标签页和扩展签名

Home Page: https://sakuyaa.github.io/myNewTabMod/

JavaScript 80.69% HTML 5.81% CSS 13.49%
firefox-addon newtab new-tab firefox-extension bing-wallpaper

mynewtabmod's Introduction

myNewTabMod by sakuyaa

该扩展的WebExtension版本myNewTabWE正在开发中。由于API的限制,部分功能无法实现,新的扩展需要重新进行配置。

首先感谢一下原作者defptywzhaiqi👏, 这个扩展是根据myNewTab这个扩展修改而成的

主要的不同之处

  1. 实现火狐41上设置为新标签页
  • 将参数存放在火狐preferences里面
  • 将导航配置、壁纸等可能有改动的文件设置在profile文件夹内,实现扩展签名
  • 扩展重装后不会覆盖配置
  • 替换日历算法为我自己编写的算法,从而准确显示父亲节:man:、母亲节:woman:这样的节日
  • 可在扩展数据文件夹内自定义网页css
  • 神秘的代码:underage:

可能造成不便的地方

  1. 存放导航网址的数据文件data.txt中,为网址指定本地图标文件时需要以斜杠/开头
  • 我写的农历算法由于是使用公式自动计算的缘故,可能会出现一些错误(已修复2010-2020年存在的误差)
  • Bing壁纸的命名还是采取日期+壁纸的信息,不会自动删除,需要注意壁纸会一直累积下去
  • 默认的导航网址中有返利链接
  • 在火狐配置文件目录里的扩展数据文件夹中的自定义css文件并不会随着扩展目录的chrome\skin文件夹的默认css文件更新
  • 扩展数据文件夹中自定义style.css文件优先级高于默认css文件,weather.css文件将直接覆盖默认css文件

扩展图文

  • 扩展主界面,左上角的天气可以在附加组件管理器中该扩展选项界面设置其URL 国历和农历日期会以不同颜色显示当天的节假日和节气信息
  • 参数设置
  • 将参数存放在火狐preferences里面
  • 储存的Bing壁纸

尚未解决(能力有限…)

  • 由于使用了css3 transform移动来使主界面居中(这样才能保证每行的宽度不超过最大宽度时,导航宽度会自动适应),导致导航右边框消失。同时,当拖动导航网址时,链接并不会出现在鼠标上,而是鼠标右侧 已使用marginLeft替代transform使界面居中
  • chrome页面似乎用不了localStorage?
  • 加载天气网页缓慢时会影响主页面的加载

mynewtabmod's People

Contributors

kelo007 avatar sakuyaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

yy1984 youmuyou

mynewtabmod's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.