Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Help me leave BLF
- // @version 1.0
- // @description Remove posting capability without logging out
- // @author Steve5451
- // @match https://forum.blockland.us/*
- // @namespace http://thepotato.tk/
- // @updateURL https://pastebin.com/raw/cRse87Ey
- // @downloadURL https://pastebin.com/raw/cRse87Ey
- // @grant none
- // ==/UserScript==
- var url = window.location.href;
- if(url.includes("topic=")) {
- var quickReply = document.getElementById("quickReplyExpand"),
- replyButton = document.querySelectorAll("img[src*='reply.gif']");
- if(quickReply)
- quickReply.parentNode.parentNode.parentNode.parentNode.parentNode.style.display = "none";
- if(replyButton) {
- for(var i = 0, n = replyButton.length; i < n; ++i) {
- replyButton[i].style.display = "none";
- }
- }
- } else if(url.includes("action=post")) {
- var textbox = document.getElementsByClassName("editor")[0];
- if(!textbox) return;
- textbox.parentNode.parentNode.parentNode.style.display = "none";
- } else if(url.includes("board=")) {
- var topicButtons = document.querySelectorAll("img[src*='new_']");
- for(var i = 0, n = topicButtons.length; i < n; ++i) {
- topicButtons[i].style.display = "none";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment