Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions stackOverflow/expand_doc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
In first two lines we create mouse events and initiate mouse click events.
Then we declare a total variable which tells about total comments on page,
it is initialized to 0.
Then we create a function clickComment.
We then retrieve all elements that have class as "comment-click".
Then we loop all the comments and expand the the comments which have "expand" as the first string.
Then we call the function clickComment().
11 changes: 11 additions & 0 deletions stackOverflow/manifest_doc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
This manifest is nothing more than a metadata file in JSON format that contains properties like your extension's name,
description, version number and so on.
At a high level, we will use it to declare to Chrome what the extension is going to do,
and what permissions it requires in order to do those things.
"content_scripts.js":
"js": tells about the js file to be executed.
"matches": here we have given regex to give urls for those content script to be executed.
"icons": This gives the icon to be displayed in browser window when this extension is activated.
"description": This gives description of extension.
"version": Version of extebnsion is 0.1.
"name": This gives name of extension.