diff --git a/README.md b/README.md
index c196ecd..47049d6 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ However, the server sided script can still be implemented to this day. I recomme
Section Name | Can Extract? | Clean? | Deepscan Extraction?
:----------------- | :----------------- | :----------------- | :------------------
*profile data* | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark:
-*experience section*| :x: | :x: | :heavy_check_mark:
+*experience section*| :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark:
*education section*| :x: | :x: | :x:
*certifications* | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark:
*volunteer experience*| :x: | :x: | :x:
@@ -37,6 +37,13 @@ I strive to make the code as general as possible but the extractor tool may not
I will keep posting timed updates here. In future will shift these somewhere else if I have time
+#### Update(dated: 29th December, 2022)
+
+- I have fixed the extraction of `experience section`. It is working fine for 30 LinkedIn profile pages I verified it with.
+- I have added a `clear text` button to clear textbox content.
+- Removed the old, redundant code with new code or deleted it entirely.
+- Will start working on writing code for scraping other sections that are left.
+
#### Update(dated: 27th December, 2022)
Apparently, the HTML code for `experience section` has been changed by a slight. But that is huge since experience section was hardest to generalize for me. It will take time to make further correction to it. The deepscan extraction still works for this section since the HTML document for all of them new pages is same and not changed.
diff --git a/css/content.css b/css/content.css
index d3534c8..d5e4eb4 100644
--- a/css/content.css
+++ b/css/content.css
@@ -91,6 +91,12 @@
transform: translateY(4px);
}
+.sticky_buttons {
+ position: sticky;
+ display: block;
+ font-size: 16px;
+ margin: 15px 25px 0px 15px;;
+}
#deepscan {
padding: 10px;
diff --git a/scripts/content.js b/scripts/content.js
index 47ef3b8..25de02a 100644
--- a/scripts/content.js
+++ b/scripts/content.js
@@ -22,10 +22,15 @@ function main() {
///////// VARIABLES //////////
// define any VARIABLES below here
- var data = {};
+
// Edit this string to edit the slider popup
+ /*
+ NOTE: Unable to access the slider.html file even after using troubleshoot
+ steps from google. So I am using the content script to inject the
+ slider file into the webpage.
+ */
// (appears on clicking extension
// icon)
var sliderInnerHTMLString = "\
@@ -35,6 +40,8 @@ function main() {
\
\
\
+
Clear Text?
\
+ \
\
\
\
@@ -43,7 +50,8 @@ function main() {
\
\
\
- \
+ This textbox extracts if you scroll.\
+ \
\
Education Section
\
\
@@ -80,78 +88,63 @@ function main() {
//////////VARIABLES END///////////
- //expand page sections
- //expandButtons();
- //generate the DOM nodes below
-
+
+ // generate the DOM nodes below //
sliderGen(sliderInnerHTMLString);
- //DOM node generators above//
+ // DOM node generators above //
//listener to trigger action - which is to push in/out
- //the slider
+ //the slider toggle works with the service_worker file
chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
if(msg.todo == "toggle") {
slider();
}
});
-
-
-
- //Added this as a temporary solution
- //Issue: The page doesn't fully load and content script
- // runs only once
- //Resolution: Added trigger through window.onscroll
- // function to register extraction everytime
- // a user scrolls on the webpage.
-
- data = extract();
- var bodycontainer = document.getElementById("slider").querySelector("#sbodycontainer");
- bodycontainer = bodycontainer.querySelector("#objectvalue")
- bodycontainer.value = JSON.stringify(data)
- bodycontainer = document.getElementById("slider").querySelector("#sheaderheader");
- var uname = document?.querySelector('div.pv-text-details__left-panel > div > h1') || null;
- uname = uname?.textContent || "";
- bodycontainer.innerHTML = "