GithubHelp home page GithubHelp logo

termtab's Introduction

TermTab

Chromium Extension for customizing new tab page.

Another random things that HN the Dev made for fun. I really hope you enjoy this... none master piece... .Ye ty <3

Some randoms things that i use

  • The manifest.json that i borrow from some random website idk :D it should look something like this:
{
  "name": "TermTab",
  "version": "1.0",
  "description": "Changes the new tab page",
  "manifest_version": 3,
  "chrome_url_overrides" : {
	"newtab": "newtab.html"
  }
}

i know it okay for beginners but damn i did it so good, no?

  • Next is the big text that i got from patorjk.com and it super awesome and customizable :D:
  _    _                           _   _                              
 | |  | |                         | \ | |                             
 | |__| | ___   __ _ _ __   __ _  |  \| | __ _ _   _ _   _  ___ _ __  
 |  __  |/ _ \ / _` | '_ \ / _` | | . ` |/ _` | | | | | | |/ _ \ '_ \ 
 | |  | | (_) | (_| | | | | (_| | | |\  | (_| | |_| | |_| |  __/ | | |
 |_|  |_|\___/ \__,_|_| |_|\__, | |_| \_|\__, |\__,_|\__, |\___|_| |_|
                            __/ |         __/ |       __/ |           
                           |___/         |___/       |___/            
  • in the Javascript things, i created a DAMN GOOD function:
function createFade(name, time_wait, speed) {
  var MainObj = document.getElementById(name);
  setTimeout(function() {
    var Inter = setInterval(function() {
      currentOpacity = Number(window.getComputedStyle(MainObj).getPropertyValue("opacity"));
      if (currentOpacity < 1) {
        currentOpacity += speed;
        MainObj.style.opacity = currentOpacity;
      } else {
        clearInterval(Inter);
      }
    },50)
  },time_wait)
}

that would carry me for the whole newtab page ngl

  • and then a timer function that i got somewhere on the youtube:
function checkTime(i) {
    if (i < 10) {
      i = "0" + i;
    }
    return i;
  }
  
  function startTime() {
    var today = new Date();
    var h = today.getHours();
    var m = today.getMinutes();
    // add a zero in front of numbers<10
    m = checkTime(m);
    document.getElementById('timing').innerHTML = h + ":" + m;
    t = setTimeout(function() {
      startTime()
    }, 5000);
  }
startTime();
  • style.css file is the the file that i self-created. I have to make a lot of changes based on this and also the Colors that i take from the COLOR.txt file:
{
  "name": "Apple Classic",
  "black": "#000000",
  "red": "#c91b00",
  "green": "#00c200",
  "yellow": "#c7c400",
  "blue": "#0225c7",
  "purple": "#ca30c7",
  "cyan": "#00c5c7",
  "white": "#c7c7c7",
  "brightBlack": "#686868",
  "brightRed": "#ff6e67",
  "brightGreen": "#5ffa68",
  "brightYellow": "#fffc67",
  "brightBlue": "#6871ff",
  "brightPurple": "#ff77ff",
  "brightCyan": "#60fdff",
  "brightWhite": "#ffffff",
  "background": "#2c2b2b",
  "foreground": "#d5a200",
  "selectionBackground": "#6b5b02",
  "cursorColor": "#c7c7c7"
}

it based on some website that i found on internet so idk the source :< ctto anyways :D.

  • now about this README.md file that u reading right now... i make it from Make a README website. It basically tells me anything :D.

Everything that i create is from myself, searching and combine all together. U can make change to this extensions as well :D

Screenshots

First one

pretty cool right :D

Installation

  1. Open your web browser and press the 3 dots on the top right of the screen
  2. Hit that "Extensions" menu
  3. Hit the Manage Extensions
  4. Turn on the developer mode (which located in the top right of the window)
  5. Click load unpacked then choose the folder that u downloaded and extracted which is this code
  6. DONE now u can use it

termtab's People

Contributors

hnthedev avatar

Watchers

 avatar

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.