Twitter Move Community UI to bottom

move ui

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

// ==UserScript==
    // @name         Twitter Move Community UI to bottom
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  move ui
    // @author       You
    // @match        https://twitter.com/*
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=twitter.com
    // @grant        none
    // @license      MIT
    // ==/UserScript==

    //alert('ha');

    document.addEventListener("DOMContentLoaded", ready);
    function ready() {
        //alert('DOM is ready');
        /*var x= document.querySelectorAll("a [href='/_R0NNI/communities']");
        x.remove();*/

        function fuckyou(){
            var element = document.querySelector('[aria-label="社群"]');;
        element.setAttribute('style', 'order:1;')}

        setTimeout(fuckyou,1000);
    }

    var zNode = document.createElement('div');
    zNode.innerHTML = '<button id="myButton" type="button" style=z-index:10;>'
        + 'For Pete\'s sake, don\'t click me!</button>'
        ;
    zNode.setAttribute('id', 'myContainer');
    zNode.setAttribute('style', 'z-index: 9999;position: absolute;top:0;left:0;display:none;');

    document.body.appendChild(zNode);

    //document.getElementsByClassName('css-1dbjc4n r-1pi2tsx r-1wtj0ep r-1rnoaur r-1e081e0 r-f9dfq4')[0].appendChild (zNode);

    //--- Activate the newly added button.
    document.getElementById("myButton").addEventListener(
        "click", ready, false
    );
    document.getElementById("myButton").click();

/*
    function ButtonClickAction(zEvent) {
        // For our dummy action, we'll just add a line of text to the top of the screen.
        var zNode = document.createElement('p');
        zNode.innerHTML = 'The button was clicked.';
        document.getElementById("myContainer").appendChild(zNode);
    }


    (function () {
        'use strict';
        var x = document.querySelectorAll("a [href='/notifications']");
        x[0].style.backgroundColor = "red";
        x.remove();
        // Your code here...
    })();*/

QingJ © 2025

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