インスタグラムで黒背景の段階を飛ばす
// ==UserScript== // @name insta_open_blackout_curtain // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://www.instagram.com/* // @exclude https://www.instagram.com/p/* // @grant none // ==/UserScript== var result = document.evaluate('//article//a', document, null, 7, null); for (var i = 0; i < result.snapshotLength; i++) { result.snapshotItem(i).addEventListener('click', sample, false); result.snapshotItem(i).dataset.href = result.snapshotItem(i).href; result.snapshotItem(i).href = "javascript:void(0);"; } function sample() { //ダミーの履歴を追加 history.pushState(null, null, "#"); location.href = this.dataset.href; }