manifest.json
{
"manifest_version": 2,
"name": "Helper2",
"version": "1.0",
"description": "Helper2",
"content_scripts": [
{
"matches": ["https://blog.csdn.net/*"],
"run_at": "document_start",
"js": ["content.js"]
}
]
}
content.js
1 document.addEventListener("DOMContentLoaded", fireContentLoadedEvent, false); 2 3 function fireContentLoadedEvent() { 4 var habElement = document.getElementsByClassName("hide-article-box text-center")[0]; 5 6 habElement.parentNode.removeChild(habElement); 7 8 document.getElementById("article_content").removeAttribute("style"); 9 }
Link:https://addons.mozilla.org/zh-CN/firefox/addon/remove-readmore/
