Delete Site Data through command line in Google Chrome?

Even after searching on Google a lot I am not able to find the solution to my problem. I am looking for an alternative to the following button through command line which delete service worker, cache and all other stored data for a specific website or web application.

In Google Chrome Dev Tools –> Goto Application –> Clear storage –> Clear Site Data

Delete Site data in Chrome Dev Tools

Are there any specific file/folder in this location to delete? Or just simply, using a switch with some parameters while opening Chrome can do this?

I already visited this link but it suggests to clear all the data instead for a specific website.

Kindly show me the path !!

launch DevTools for Node from command-line

I wondering how to launch “Open dedicated DevTools for Node” directly from the (windows or linux) command-line, without using chrome://inspect url then Open dedicated DevTools for Node button ?

Javascript Automate Button

I’m just getting started with Javascript and I was wondering if anyone could help me out.

As a template, I downloaded a highlighting extension for chrome and am using it’s code to start off. I wanted to automate one of the features in the plugin, which is that in order to start highlighting you have to type a word and press “save” in the options page.

I was able to automatically insert the words in the text box so you don’t have type them in, but you still have to press the save button. Does anyone know how to automate this feature so you don’t have to do that? Thank you!


function loadOptions() {
    if ("undefined" != typeof localStorage) {
        document.getElementById("textareaKeywords").value = "wikipedia";
        document.getElementById("colorForeground").value = "#000000";
        document.getElementById("colorBackground").value = "#ff0000";

        var showOccurrences = false;
        showOccurrences = "true" == showOccurrences || null == showOccurrences;
        document.getElementById("checkboxShowOccurrences").checked = showOccurrences;

function saveOptions() {
    if ("undefined" != typeof localStorage) {
        localStorage.setItem("keywords", document.getElementById("textareaKeywords").value);
        localStorage.setItem("foreground", document.getElementById("colorForeground").value);
        localStorage.setItem("background", document.getElementById("colorBackground").value);
        localStorage.setItem("showOccurrences", document.getElementById("checkboxShowOccurrences").checked);


document.addEventListener("DOMContentLoaded", function() {

    document.getElementById("buttonReset").addEventListener("click", function() {

    document.getElementById("buttonSave").addEventListener("click", function() {


function keywordsHighlighter(options, remove) {
    var occurrences = 0;

    // Based on "highlight: JavaScript text higlighting jQuery plugin" by Johann Burkard.
    function highlight(node, pos, keyword, options) {
        var span = document.createElement("span");
        span.className = "highlighted"; = options.foreground; = options.background;

        var highlighted = node.splitText(pos);
        /*var afterHighlighted = */highlighted.splitText(keyword.length);
        var highlightedClone = highlighted.cloneNode(true);

        highlighted.parentNode.replaceChild(span, highlighted);


    function addHighlights(node, keywords, options) {
        var skip = 0;

        var i;
        if (3 == node.nodeType) {
            for (i = 0; i < keywords.length; i++) {
                var keyword = keywords[i].toLowerCase();
                var pos =;
                if (0 <= pos) {
                    highlight(node, pos, keyword, options);
                    skip = 1;
        else if (1 == node.nodeType && !/(script|style|textarea)/i.test(node.tagName) && node.childNodes) {
            for (i = 0; i < node.childNodes.length; i++) {
                i += addHighlights(node.childNodes[i], keywords, options);

        return skip;

    function removeHighlights(node) {
        var span;
        while (span = node.querySelector("span.highlighted")) {
            span.outerHTML = span.innerHTML;

        occurrences = 0;

    if (remove) {

    var keywords = options.keywords.split(",");
    delete options.keywords;
    addHighlights(document.body, keywords, options);

        "message": "showOccurrences",
        "occurrences": occurrences

chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
    if ("returnOptions" == request.message) {
        if ("undefined" != typeof request.keywords && request.keywords) {
                    "keywords": request.keywords,
                    "foreground": request.foreground,
                    "background": request.background

    "message": "getOptions",
    "remove": false

I apologize if I just put WAY too much code in here, I didn't know what or how much I would need to change or where.

Javascript – Detecting Opinionated Text

I’m trying write a script that detects, and highlights, opinionated strings in web pages. I can highlight the text just fine, but I’m having trouble detecting the opinionated text. As an alpha version, maybe simply putting in a list of strings (ei: I think, This is, etc) and if it detects those strings, highlighting the entire sentence they’re in. I’m not sure how complicated the code will have to be to make this, but currently I’m not sure how to even test this current function because I don’t know how to execute it, to make it running every time you open a new web page. Would I put it in background.js? This code is currently in a file named algorithm.js. Thanks!

 var result;
 var scanned;
 function opinion(); {
     if (
    document.documentElement.textContent || document.documentElement.innerText
  ).indexOf('I think', 'This is', 'He is', 'She is') > -1
) {
  var result = 1;
  console.log('Detected Opinion');