Skip to content

Commit

Permalink
v1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
adokseo committed Sep 14, 2021
1 parent c13d6be commit ccdf85d
Show file tree
Hide file tree
Showing 38 changed files with 1,244 additions and 4,012 deletions.
14 changes: 14 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"caseSensitive": {
"message": "Case sensitive"
},
"next": {
"message": "Next"
},
"previous": {
"message": "Previous"
},
"regularExpression": {
"message": "Regular expression"
}
}
14 changes: 14 additions & 0 deletions _locales/ru/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"caseSensitive": {
"message": "Чувствительность к регистру"
},
"next": {
"message": "Следующий"
},
"previous": {
"message": "Предыдущий"
},
"regularExpression": {
"message": "Регулярное выражение"
}
}
Binary file removed assets/fonts/OpenSans-Regular.ttf
Binary file not shown.
Binary file removed assets/fonts/OpenSans-SemiBold.ttf
Binary file not shown.
Binary file removed assets/icons/128.png
Binary file not shown.
Binary file removed assets/icons/16.png
Binary file not shown.
Binary file removed assets/icons/32.png
Binary file not shown.
Binary file removed assets/icons/48.png
Binary file not shown.
56 changes: 56 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*--------------------------------------------------------------
>>> BACKGROUND
----------------------------------------------------------------
# Global variables
# Runtime
# On connect
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# GLOBAL VARIABLES
--------------------------------------------------------------*/

var tabs = {};


/*--------------------------------------------------------------
# RUNTIME
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# ON CONNECT
--------------------------------------------------------------*/

chrome.runtime.onConnect.addListener(function(port) {
if (port.name === 'popup') {
port.onDisconnect.addListener(function() {
chrome.tabs.query({}, function (tabs) {
for (var i = 0, l = tabs.length; i < l; i++) {
chrome.tabs.sendMessage(tabs[i].id, {
type: 'reset'
});
}
});
});

port.onMessage.addListener(function (message, port) {
if (message && message.type === 'tab') {
port.postMessage({
type: 'tab',
value: tabs[message.id]
});
}
});
}
});


/*--------------------------------------------------------------
# ON MESSAGE
--------------------------------------------------------------*/

chrome.runtime.onMessage.addListener(function (message, sender) {
if (message && message.type === 'background') {
tabs[sender.tab.id] = true;
}
});
23 changes: 0 additions & 23 deletions build.py

This file was deleted.

18 changes: 0 additions & 18 deletions config.json

This file was deleted.

Loading

0 comments on commit ccdf85d

Please sign in to comment.