Sleazy Fork is available in English.

自动跳转到琉璃神社

基于acg.gy实现,再也不怕假神社了

// ==UserScript==
// @name         自动跳转到琉璃神社
// @namespace    https://greasyfork.org/zh-CN/users/12293-wcx19911123
// @version      0.5
// @description  基于acg.gy实现,再也不怕假神社了
// @author       wcx19911123
// @include      http://acg.gy*
// @include      https://acg.gy*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    var eventId = setInterval(function(){
        var url = document.getElementsByTagName("a")[0].href;
        if(url && url.indexOf('acg') > -1){
            clearInterval(eventId)
        }
        var href = window.location.href;
        if(href.indexOf("?") > -1){
            href = href.substring(href.indexOf("?") + 1);
            window.location.href = url + href;
        }else{
            window.location.href = url;
        }
    }, 100);
})();