Skip to content

Instantly share code, notes, and snippets.

@uu59
Last active December 17, 2015 11:49
Show Gist options
  • Save uu59/5605146 to your computer and use it in GitHub Desktop.
Save uu59/5605146 to your computer and use it in GitHub Desktop.
Pixiv Header jama
{
"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"]
}
]
}
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