Simplify link jumping on pahe websites (Intercelestial and Linegee).
当前为
// ==UserScript==
// @name Simple Redirection Buttons for Pahe
// @namespace https://naeembolchhi.github.io/
// @version 0.58
// @description Simplify link jumping on pahe websites (Intercelestial and Linegee).
// @author NaeemBolchhi
// @match https://intercelestial.com/*
// @match https://linegee.net/*
// @license GPL-3.0-or-later
// @icon https://pahe.li/wp-content/uploads/2017/12/favicon.ico
// @require https://greasyfork.org/scripts/456228/code/456228.js?version=1125944
// @run-at document-body
// @grant none
// ==/UserScript==
(function() {
'use strict';
function addStyle(css) {
var head, style;
head = document.querySelector('head');
if (!head) {
window.location.reload();
}
style = document.createElement('style');
style.innerHTML = css;
head.appendChild(style);
}
if (window.location.hostname == "linegee.net") {
addStyle(`.btn.btn-primary.btn-xs {
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 2147483647 !important;
opacity: 1 !important;
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
border-radius: 0;
}
#backdrop {
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 2147483646 !important;
background: black;
opacity: 1;
}
* {
overflow: hidden;
}`);
} else if (window.location.hostname == "intercelestial.com") {
addStyle(`.qc-cmp2-persistent-link {
z-index: 0;
}
#qc-cmp2-container {
display: none;
}
img[src$='png'] {
display: none;
}
img[id*='human-verif'] {
position: fixed;
left: 0;
top: 0;
height: 100%;
width: 100%;
z-index: 2147483646 !important;
background: green;
opacity: 1 !important;
}
#lite-start-sora-a > img {
display: none;
}
#lite-start-sora-a {
position: fixed;
height: 100%;
width: 50%;
z-index: 2147483646 !important;
background: red;
opacity: 1 !important;
}
#lite-end-sora-button {
position: fixed;
height: 100%;
width: 50%;
z-index: 2147483646 !important;
background: blue;
opacity: 1 !important;
}
@media only screen and (orientation: landscape) {
#lite-start-sora-a {
left: 0;
}
#lite-end-sora-button {
right: 0;
}
#lite-start-sora-a, #lite-end-sora-button {
top: 0;
height: 100%;
width: 50%;
}
}
@media only screen and (orientation: portrait) {
#lite-start-sora-a {
top: 0;
}
#lite-end-sora-button {
bottom: 0;
}
#lite-start-sora-a, #lite-end-sora-button {
left: 0;
height: 50%;
width: 100%;
}
}
#backdrop {
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 2147483645 !important;
background: black;
opacity: 1;
}
#soralink-human-verif-main-cxxd {
display: none;
}
* {
overflow: hidden;
}`);
}
const makeZERO = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 0 0' xml:space='preserve'></svg>";
setInterval(function() {
try {
document.querySelector("#lite-human-verif-button").src = makeZERO;
} catch {}
try {
document.querySelector("#lite-end-sora-button").src = makeZERO;
} catch {}
}, 200);
try {
let element;
element = document.createElement("div");
element.id = "backdrop";
document.body.appendChild(element);
} catch {}
})();