Reddit Mobile Enhancer

Remove annoying reminder when using reddit mobile webpage!

目前为 2022-12-26 提交的版本。查看 最新版本

// ==UserScript==
// @name         Reddit Mobile Enhancer
// @namespace    https://gf.qytechs.cn/users/28298
// @version      0.8
// @description  Remove annoying reminder when using reddit mobile webpage!
// @author       Jerry
// @match        *://www.reddit.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @license      GNU GPLv3
// @require      https://gf.qytechs.cn/scripts/456410-gmlibrary/code/GMLibrary.js
// ==/UserScript==

(function() {
    'use strict';

    // setTimeout(function() {
    //   var button = findx('//button[text()="Continue"]'); 
    //   if (button !== null) {
    //     button.click();
    //     // triggerevent(button,'click');  // weird, not working.
    //   }
    // }, 2000);

    // a better solution, inspired by
    // https://gf.qytechs.cn/en/scripts/36031-view-reddit-in-the-app-mobile-pop-up-remover/code
    localStorage.setItem('xpromo-consolidation', new Date());
    document.querySelector('.XPromoBottomBar.m-consolidate').style="display: none !important; visibility:hidden !important; max-height: 0 !important; max-width: 0 !important; height: 0 !important; width: 0 !important;";

    // var links = document.getElementsByClassName('bti-job-detail-link');
    // var links = document.links;
    // for (var i = 0; i < links.length; i++){
    //     links[i].target="_blank";
    // }
    // document.documentElement.innerHTML

})(); // end of main function

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址