Last active
December 17, 2015 11:49
-
-
Save uu59/5605146 to your computer and use it in GitHub Desktop.
Pixiv Header jama
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifest_version": 2, | |
"name": "Pixiv Header jama", | |
"version": "1.0.0", | |
"description": "Remove Pixiv header if you are not logged in", | |
"permissions": [ "http://www.pixiv.net/*"], | |
"content_scripts": [ | |
{ | |
"matches": [ "http://www.pixiv.net/*"], | |
"js": ["remover.js"] | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTimeout(function(){ | |
var header = document.querySelector('.introduction-container') | |
if(!header) return; | |
if(location.pathname === "/") return; | |
header.style.display = "none"; | |
var login = document.querySelector('.newindex-signin'); | |
var container = document.querySelector('.newindex-inner'); | |
login.style.position = "static"; | |
container.insertBefore(login, container.firstChild); | |
}, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment