├── screenshot.jpg ├── README.md ├── pixiv-search-unlock.user.js └── pixiv-search-filter.user.js /screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/soruly/Pixiv-Search-Result-Unlocker/HEAD/screenshot.jpg -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Pixiv-Search-Result-Unlocker 2 | Unlock some search result in Pixiv, allows you to click on blocked pictures 3 | Support Tampermonkey on Chrome 4 | 5 | # Installation 6 | After installing Tampermonkey 7 | Go to Tampermonkey Settings -> Utilities -> Paste the URL below and Import 8 | https://raw.githubusercontent.com/soruly/Pixiv-Search-Result-Unlocker/master/pixiv-search-unlock.user.js 9 | 10 | # Screenshot 11 | This script removes the block as shown below 12 | ![screenshot](https://github.com/soruly/Pixiv-Search-Result-Unlocker/blob/master/screenshot.jpg) 13 | -------------------------------------------------------------------------------- /pixiv-search-unlock.user.js: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // @name Pixiv Search Result Unlocker 3 | // @namespace https://github.com/soruly/Pixiv-Search-Result-Unlocker 4 | // @version 0.4 5 | // @description Unlock some search result in Pixiv, allows you to click on blocked pictures 6 | // @author soruly 7 | // @match *://www.pixiv.net/search.php?* 8 | // @grant none 9 | // ==/UserScript== 10 | 11 | if(document.querySelector("div.popular-introduction-overlay")){ 12 | document.querySelector("div.popular-introduction-overlay").style.display = "none"; // Remove popular section overly blocker 13 | } 14 | if(document.querySelector("a.upload.ad-printservice.hover-item")){ 15 | document.querySelector("a.upload.ad-printservice.hover-item").style.display = "none"; // Remove pixiv premium ads 16 | } 17 | -------------------------------------------------------------------------------- /pixiv-search-filter.user.js: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // @name Pixiv Search Result Filter 3 | // @namespace https://github.com/soruly/Pixiv-Search-Result-Unlocker 4 | // @version 0.3 5 | // @description Filter out less popular images from pixiv 6 | // @author soruly 7 | // @match *://www.pixiv.net/search.php?* 8 | // @grant none 9 | // ==/UserScript== 10 | 11 | (function() { 12 | 'use strict'; 13 | 14 | var observer = new MutationObserver(function(mutations) { 15 | mutations.forEach(function(mutation) { 16 | if(document.querySelector("#js-react-search-mid").querySelectorAll("figure").length > 0){ 17 | if(document.querySelector('.popular-introduction')) { 18 | document.querySelector('.popular-introduction').style.position = 'initial'; 19 | document.querySelectorAll(".column-search-result .image-item")[5].style.marginBottom = '-500px'; 20 | } 21 | document.querySelectorAll("figure").forEach( 22 | function(image){ 23 | var count = image.querySelector(".bookmark-count"); 24 | if(!count || parseInt(count.text,10) < 300) { 25 | image.style.display = 'none'; 26 | image.parentNode.style.margin = 0; 27 | } 28 | } 29 | ); 30 | } 31 | }); 32 | }); 33 | observer.observe(document.querySelector("#js-react-search-mid"), { attributes: true, childList: true, characterData: true }); 34 | }()); 35 | --------------------------------------------------------------------------------