The easiest Custom New Tab page for the browser!
The 'CT' in the name stands for 'Custom Tab' :)
Check it out: CTTab Website
Works on Firefox, Chrome, and possibly more!
- Features - Explains the Awesome Features!
- Setup - How to set up on browser
- Contributing - How to contribute to the project
- Issues - How to submit an issue
Fully customizable shortcuts to commonly visited sites!
- Click the Edit button to change the link and title of each shortcut
- Remove by entering blank text into the URL input box
- Icon will automatically be fetched
- Change the amount of shortcuts shown in the top bar 'Change shortcuts'
Class: sc
(sc.js
)
Easy notepads for taking short notes in an instant!
- Create a new note in the top bar 'Add note'
- Type some text
- Create multiple notes at once!
- Delete the note with the trash icon
Class: notes
(main.js
)
Create any sort of dynamic background, with random colours and images!
- Open the background editor in the top bar 'Change background'
- Choose how to change the background
Class: bg
(bg.js
)
Change all the background to default solid colour #202038
- Change the solid background color
- If an image is enabled with a transparent background, the colour will be the background
- Add any CSS compatible colour, hex codes (
#XXXXXX
), rgb (rgb(xx, xx, xx)
), or hsl (hsl(xx, xx, xx)
, NOThsv
), - Add
$
to represent default colour - Add multiple colours by seperating by space - Colour will be chosen randomly each load
- Add randomly generated colour with
?
- Any text after the
?
will be used as parameters for generated colours, as follows: - To change the HSV requirements, use
a=n
,a<n
,a>n
syntax, witha
being a letter ofh
(hue),s
(saturation), orv
(value), andn
being a number between0-360
for hue, or0-100
for saturation and value - To change the weight (chance) of the generated colour being chosen, use
w=n
orW=n
withn
being a number from0-Infinity
-w
(Lowercase) represents weight relative to the amount of other colours given, whereasW
(Uppercase) represents absolute weight
- Any text after the
Eg. red #F0F $ rgb(50, 200, 100) ? s>50 v=100 W0.5
This represents the following:
50%
chance of getting a random colour (W0.5
- Absolute weight)- Generated colour saturation will be greater than
50%
(s>50
) - Generated colour value (lightness) will be
100%
always (v=100
) - Non-generated colours will be randomly selected between:
red
- (#F00
)#F0F
- Magenta (magenta
)$
- Default colour - Grey blue (#202038
)rgb(50, 200, 100)
- Light green (#32C864
)
- Note that
rgb(50, 200, 100)
is parsed as one colour, even if it includes spaces
hsv
and hsl
support coming soon! Maybe!
Add the URL of multiple local image files, or online links to images, separated by a space.
Eg. C:/Desktop/troll_face.jpg https://dxrcy.dev/cttab/image/icon/256.png $
To use Image of the Day from the NASA API, set the background image to $
, and it will be automatically fetched. Use 'Image Info' button above footer to view the description.
If you like a randomly generated colour, you can use this option to select the current background colour (Also works with custom colours)
Change the Header bar and the Title (Seen in Tabs, Bookmarks, ect.)!
- Click the header to edit, very easy and simple!
Class: header
(main.js
)
Instant confetti celebration with one simple click!
This is a secret feature, can you find it? It is also available through console commands, if you are a little baby.
Class: confettiHandler
(main.js
) (object confetti
is the imported API)
Save and load settings to a JSON file on your computer! Back up your shortcuts!
- Export settings and save to
cttab.json
in the top bar 'Export' - Import settings from a file in the top bar 'Import'
- Settings are saved to
localStorage
Class: ls
(ls.js
)
Choose between TWO languages! (English and Esperanto)
If you can translate into more languages, please consider contributing to to this project!
Class: language
(NOT lang
) (language.js
)
Choose the API URL for the random Garfield comic.
Date is chosen automatically, and substituted into url with {YYYY}
, {MM}
, and {DD}
string variables.
See EveryGarf Comic Downloader for information on downloading Garfield comics.
$
- Use default API (gocomics.com)- Example of online link:
https://example.com/garfield/{YYYY}-{MM}-{DD}.png
- Example of local link:
file:///home/gangstaperson/Pictures/garfield/{YYYY}-{MM}-{DD}.png
Type garf.showRecent()
in the terminal to show dates of recent comics!
If you run into any problems, Submit an Issue for this repo and I will try to help.
- Download options:
- Bash (Linux)
- Powershell (Windows)
- Manually
Make sure you have Git installed.
# Navigate to desired location - Example as Documents folder
cd ~/Documents
# Clone repository as ./cttab folder in current location, navigate into folder
git clone https://github.com/dxrcy/cttab.git
cd cttab
# Delete GitHub files
# OPTIONAL - Only do this if you have no interest of making changes to the files
rm -rf .git
# Open file in default program
xdg-open index.html
Make sure you have Git installed.
# Navigate to desired location - Example as Documents folder
cd C:/Users/$env:UserName/Documents
# Clone repository as ./cttab folder in current location, navigate into folder
git clone https://github.com/dxrcy/cttab.git
cd cttab
# Delete GitHub files
# OPTIONAL - Only do this if you have no interest of making changes to the files
rm -Recurse -Force .git
# Open file in default program
start index.html
Follow the steps below to open automatically (Below manual download)
This has been tested in Windows 10, but it should work with systems.
- Open a browser to https://github.com/dxrcy/cttab
- Click the bright green 'Code' button
- Click 'Download ZIP'
- Save to a location on your computer
- Once downloaded, right click on the
.zip
foler in Explorer and click 'Extract All...' - Click 'Extract' in the popup
- Open the extracted folder and find
index.html
- That is the location to the file! You can open it in the browser, or follow the steps below to open automatically
These methods also work with Firefox forks such as LibreWolf.
- Open Firefox and click the ☰ hamburger icon in the top right
- Click 'Options' from the drop-down menu
- Select 'Home' on the left panel
- Beside 'Homepage and new windows', select 'Custom URLs' from the list.
- Input 'https://dxrcy.dev/cttab' in the text box
Easier option, but less easy to use long term.
- Download 'New Tab Redirect' from Firefox addons
- Click the ☰ hamburger icon in the top right
- Press 'Addons and Themes' from the drop-down menu
- Find and click 'Custom New Tab Page' from the list
- Click 'Options' on the top bar under the name
- Input 'https://dxrcy.dev/cttab' in the text box
- Scroll down and press 'Save'
Easy!
Simply run sh ./install firefox
or sh ./install librewolf
This will automate the steps shown below.
Difficult to set up, but the optimal option overall.
Note: Copy/pasting of files is done because of Windows' weird permission system.
Linux users can avoid this by running as root (or installing automatically as shown above)
- Follow instructions to download files
- Create a text file one your Desktop and name it
autoconfig.cfg
- Insert this code:
// First line must be comment! Do not delete this line!
var {classes:Cc,interfaces:Ci,utils:Cu} = Components;
try { Cu.import("resource:///modules/AboutNewTab.jsm");
var newTabURL = "file:///C:/Users/yourname/yourfile.html";
AboutNewTab.newTabURL = newTabURL;
} catch(e){Cu.reportError(e);} // report errors in the Browser Console
- Replace
file:///C:/Users/yourname/yourfile.html
with the path to the local file. Example:file:///C:/Users/gangstaperson/Documents/cttab/index.html
- Save the file and Copy and Paste it into the root Firefox program folder. You need to copy + paste because the folder usually has permissions that restrict editing of files.
- For Windows (Firefox):
C:/Program Files/Mozilla Firefox
- For Linux (Firefox):
/usr/lib/firefox
- For Linux (LibreWolf):
/usr/lib/librewolf
- For Windows (Firefox):
- Create a new file called
autoconfig.js
and save it to Desktop - Insert this code:
// First line must be comment! Do not delete this line!
pref("general.config.filename", "autoconfig.cfg");
pref("general.config.obscure_value", 0);
pref("general.config.sandbox_enabled", false);
- Copy and Paste that file into
defaults/pref
in the Firefox program folder used before. - Disable any extensions that interfere with the tabs
- Then restart Firefox.
To open on a new window, follow the steps under the above guide, with the file path the same as the new tab path.
- Download 'New Tab Redirect' from Chrome Web Store
- Click on the icon and press 'Options'
- Type the url ('https://dxrcy.dev/cttab') in the text box
- Follow instructions to download files
- Follow the instructions above, with the path to the
index.html
file as the URL. Example:file:///C:/Users/gangstaperson/Documents/cttab/index.html
Try the method for Google Chrome, possibly using a ported extension.
Please use a different browser, this is not 2010
If you are using a browser that is not supported, try the method with Chrome or Firefox. If it is not working, Submit an Issue
Make sure you have Git installed.
This has been tested in Windows 10 with PowerShell, but it should work for other systems and command interfaces.
If you run into any problems, Submit an Issue for this repo and I will try to help.
# Navigate to desired location - Example Documents folder
cd ~/Documents
# Clone repository as ./cttab folder in current location, navigate into folder
git clone https://github.com/dxrcy/cttab.git
cd cttab
# ... make an awesome change to the files ...
# Add and commit files
git add .
git commit -m "detailed commit message"
# Create pull request
git push -u origin main
Submit an Issue - Choose a template and follow the steps - I will try to fix it as soon as possible
TODO List - View issues being worked on