Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account for chrome-extensions #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Tab-Organizer-Extension.zip
Binary file not shown.
4 changes: 3 additions & 1 deletion Tab-Organizer-Extension/bg.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
//utility function to obtain base URL from a given URL string
function baseURL(url){
if (url.indexOf("chrome-extension://") != -1){
url = url.split(/chrome-extension\:\/\/.*?\//).slice(1,2).join();
}
if (url.indexOf("http") != -1){
var temp = url.split("//").slice(1,2).join().toLowerCase();
if (url.indexOf("/") != -1){
Expand All @@ -12,7 +15,6 @@ function baseURL(url){

//sorting algorithm
function sortTabs(tabs){
console.log("Hit the browser on click.");
var baseURLs = {};
var URLOrder = [];
var lastPinned = 0;
Expand Down
2 changes: 1 addition & 1 deletion Tab-Organizer-Extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Tab Organizer",
"version": "1.0",
"version": "1.1.0",
"manifest_version": 2,
"description": "Organizes and Rearranges tabs by URL.",
"background": {
Expand Down