Skip to content

Commit

Permalink
Version 1.8.5
Browse files Browse the repository at this point in the history
- Added possibility to scan a part of the page #29
- Fixed bugs
- Minor changes
  • Loading branch information
WaldiPL committed Nov 16, 2018
1 parent 0432b1a commit 8116f7c
Show file tree
Hide file tree
Showing 17 changed files with 715 additions and 78 deletions.
18 changes: 18 additions & 0 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -442,5 +442,23 @@
},
"shortcutLabel": {
"message": "Shortcut opening sidebar"
},
"inspectText": {
"message": "Selected element. Changes will be detected only inside this element."
},
"inspectRetry": {
"message": "Pick another element"
},
"paritialMode": {
"message": "Scan a part of the page"
},
"selectorCSS": {
"message": "CSS Selector"
},
"inspectElement": {
"message": "Pick an element from the page"
},
"ok": {
"message": "OK"
}
}
18 changes: 18 additions & 0 deletions src/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -442,5 +442,23 @@
},
"shortcutLabel": {
"message": "Raccourci pour ouvrir le panneau latéral"
},
"inspectText": {
"message": "L'élément a été sélectionné. Les changements seront détectés seulement à l'intérieur de cet élément."
},
"inspectRetry": {
"message": "Sélectionner un autre élément"
},
"paritialMode": {
"message": "Scanner une partie de la page"
},
"selectorCSS": {
"message": "Le sélecteur CSS"
},
"inspectElement": {
"message": "Sélectionner un élément de la page"
},
"ok": {
"message": "OK"
}
}
18 changes: 18 additions & 0 deletions src/_locales/pl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -442,5 +442,23 @@
},
"shortcutLabel": {
"message": "Skrót otwierający panel boczny"
},
"inspectText": {
"message": "Wybrano element. Zmiany będą wykrywane wyłącznie wewnątrz tego elementu."
},
"inspectRetry": {
"message": "Wskaż inny element"
},
"paritialMode": {
"message": "Skanuj część strony"
},
"selectorCSS": {
"message": "Selektor CSS"
},
"inspectElement": {
"message": "Wskaż element na stronie"
},
"ok": {
"message": "OK"
}
}
5 changes: 3 additions & 2 deletions src/bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,14 @@ let delayCurrentId,
lastWindowId;

browser.runtime.onMessage.addListener(run);
function run(m){
if(m.addThis)rqstAdd(m.url,m.title,"m0",8,m.btn,m.favicon,m.addBookmark);
function run(m,s){
if(m.addThis)rqstAdd(m.url,m.title,"m0",8,m.btn,m.favicon,m.addBookmark,m.cssSelector);
if(m.scanSites)scanSites(0,true,true);
if(m.openSites)openSite("webpagesScannertrue");
if(m.addToContextMenu!==undefined)showContext(m.addToContextMenu);
if(m.period)browser.alarms.create("webpageScanner",{periodInMinutes:m.period});
if(m.openSitesDelay){delayCurrentId=0;delayTime=m.openSitesDelay;delayLinksId=m.linksId;lastWindowId=-1;openSitesDelay(m.openWindow);}
if(m.closeTab){browser.tabs.remove(s.tab.id);}
}

function showContext(e){
Expand Down
4 changes: 4 additions & 0 deletions src/changelog.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
"use strict";

let changelog=`[
{"version":"1.8.5",
"changes":["Added possibility to scan a part of the page #29","Fixed bugs","Minor changes"],
"changesPL":["Dodano możliwość skanowania części strony #29","Naprawiono błędy","Drobne zmiany"]
},
{"version":"1.8.1",
"changes":["New view - 'Raw data'","Updated interface","Fixed bugs","Minor changes"],
"changesPL":["Nowy widok - 'Surowe dane'","Zaktualizowano interfejs","Naprawiono błędy","Drobne zmiany"]
Expand Down
1 change: 1 addition & 0 deletions src/icons/select.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
133 changes: 133 additions & 0 deletions src/inspect.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
#__wps{
background-color:#ffe900;
border:1px dashed #003eaa !important;
opacity:.45 !important;
position:absolute !important;
z-index:2147483646 !important;
pointer-events:none !important;
display:inline-block !important;
box-sizing:border-box !important;
font-size:16px !important;
font-weight:bold !important;
line-height:18px !important;
white-space:nowrap !important;
color:#000 !important;
overflow:hidden !important;
padding-left:3px !important;
}

#__wps_popup{
background-color:#f5f6f7 !important;
width:350px !important;
padding:0 !important;
display:block !important;
position:fixed !important;
top:calc(50% - 85px) !important;
left:calc(50% - 175px) !important;
z-index:2147483647 !important;
border-radius:0 !important;
border:1px solid #ccc !important;
box-shadow:0px 0px 10px #888 !important;
font-family:Segoe UI,Tahoma,Helvetica Neue,Lucida Grande,Ubuntu,sans-serif !important;
font-size:14px !important;
font-style:normal !important;
font-weight:400 !important;
line-height:20px !important;
margin:0 !important;
opacity:1 !important;
overflow:visible !important;
outline:0 !important;
transform:none !important;
visibility:visible !important;
}

#__wps_popup x-button{
border-radius:2px !important;
box-shadow:none !important;
box-sizing:border-box !important;
cursor:pointer !important;
display:inline-block !important;
font-family:Segoe UI,Tahoma,Helvetica Neue,Lucida Grande,Ubuntu,sans-serif !important;
font-size:12px !important;
font-style:normal !important;
font-weight:400 !important;
height:auto !important;
line-height:18px !important;
margin:0 2px !important;
padding: 4px 8px 6px !important;
opacity:1 !important;
overflow:visible !important;
outline:0 !important;
position:static !important;
text-align:center !important;
text-shadow:none !important;
text-transform:none !important;
visibility:visible !important;
width:auto !important;
min-width:60px !important;
white-space:normal !important;
}

#__wps_popup .neutral{
border:1px solid #ccc !important;
color:#000 !important;
background-color:#f9f9fa !important;
}
#__wps_popup .neutral:hover{
background-color:#0c0c0d1a !important;
}
#__wps_popup .neutral:active{
background-color:#0c0c0d33 !important;
}

#__wps_popup .negative{
border:1px solid #d70022 !important;
background-color:#ff0039 !important;
color:#fff !important;
}
#__wps_popup .negative:hover{
background-color:#d70022 !important;
border-color:#d70022 !important;
}

#__wps_popup .positive{
border:1px solid #0060df !important;
background-color:#0078d7 !important;
color:#fff !important;
}
#__wps_popup .positive:hover{
background-color:#0060df !important;
}

#__wps_popup x-button.neutral{
background-image:url("icons/select.svg") !important;
background-repeat:no-repeat !important;
background-position:7px 6px !important;
padding-left:30px !important;
}

#__wps_popup x-titlebar{
background-image:url("icons/icon.svg") !important;
background-repeat:no-repeat !important;
height:42px !important;
display: block !important;
background-size: 32px 32px !important;
background-position: 5px 5px !important;
padding-left:42px !important;
font-size: 15px !important;
line-height: 40px !important;
font-weight: bold !important;
font-style: italic !important;
border-bottom:1px solid #ccc !important;
}

#__wps_popup x-span{
display:block !important;
padding:8px !important;
}

#__wps_popup x-footer{
display:block !important;
padding:8px 6px !important;
float:right !important;
}
Loading

0 comments on commit 8116f7c

Please sign in to comment.