您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
remove all but #image
// ==UserScript== // @name fakku // @version 1.0.0 // @description remove all but #image // @namespace https://greasyfork.org/users/3159 // @include http*://www.fakku.net/*/*/read* // ==/UserScript== document.location.hash = "#page=1"; i = document.getElementById('image'); t = document.title; document.body.innerHTML = ''; document.head.innerHTML = '<title>' + t + '</title><style>body{margin:0;overflow:hidden}.current-page{height:100vh !important;position:absolute;margin-left:auto;margin-right:auto;left:0;right:0}</style>'; document.body.appendChild(i); document.addEventListener("keydown", function (e) { switch (e.which) { case 39: if (i.style.display != "none") { n = document.location.hash.split('=')[1].valueOf(); n++; document.location.hash = "page=" + n; } break; case 37: history.go(-1); break; } });