about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--js/sentiment/sentiment/index.html6
-rw-r--r--js/sentiment/sentiment/sentiment.browser.js13
2 files changed, 4 insertions, 15 deletions
diff --git a/js/sentiment/sentiment/index.html b/js/sentiment/sentiment/index.html
index 5c6569f..90698e4 100644
--- a/js/sentiment/sentiment/index.html
+++ b/js/sentiment/sentiment/index.html
@@ -4,11 +4,11 @@
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>Sentiment Analyzer</title>
-    <link href="./PressStart2P-Regular.ttf" rel="stylesheet">
+    <link href="https://smallandnearlysilent.com/sentiment/PressStart2P-Regular.ttf" rel="stylesheet">
     <style>
         @font-face {
             font-family: 'Press Start 2P';
-            src: url('./PressStart2P-Regular.ttf') format('truetype');
+            src: url('https://smallandnearlysilent.com/sentiment/PressStart2P-Regular.ttf') format('truetype');
             font-weight: normal;
             font-style: normal;
         }
@@ -236,7 +236,7 @@
 
     <footer>
         <p>
-            <a href="https://eli.li/_assets/bin/sentiment.browser.js" target="_blank">VIEW THE SCRIPT</a>
+            <a href="sentiment.browser.js" target="_blank">VIEW THE SCRIPT</a>
         </p>
     </footer>
 
diff --git a/js/sentiment/sentiment/sentiment.browser.js b/js/sentiment/sentiment/sentiment.browser.js
index e12f72f..e909594 100644
--- a/js/sentiment/sentiment/sentiment.browser.js
+++ b/js/sentiment/sentiment/sentiment.browser.js
@@ -1,10 +1,4 @@
-/**
- * Browser-friendly Web Sentiment Analyzer
- * Simplified version optimized for bookmarklet use
- */
-
 const createWebSentimentAnalyzer = (config = {}) => {
-    // Simplified default config with core sentiment words
     const defaultConfig = {
         positiveWords: new Set([
             'love', 'joy', 'happy', 'excited', 'peaceful', 'wonderful', 'fantastic',
@@ -137,7 +131,6 @@ const createWebSentimentAnalyzer = (config = {}) => {
             }
         }
         
-        // Fallback to body text if no content found
         if (!content) {
             content = document.body.textContent || '';
         }
@@ -208,13 +201,9 @@ const createWebSentimentAnalyzer = (config = {}) => {
     };
 };
 
-// Bookmarklet-friendly function
 const analyzePage = () => {
     const analyzer = createWebSentimentAnalyzer();
     const content = analyzer.extractPageContent();
     const analysis = analyzer.analyzeText(content);
     analyzer.createResultsOverlay(analysis);
-};
-
-// For testing in browser console
-// analyzePage(); 
\ No newline at end of file
+};
\ No newline at end of file