├── LICENSE ├── README.md ├── Screenshot_2.png └── script.js /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Roman Davydov 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # mipped.com-up-thread 2 | ![](https://img.shields.io/github/license/rdavydov/mipped.com-up-thread?style=for-the-badge&logo=github&color=purple&logoColor=thistle) 3 | ![](https://img.shields.io/greasyfork/dt/455241?style=for-the-badge&logo=tampermonkey&color=darkblue&logoColor=aquamarine) 4 | 5 | Up thread button - mipped.com (XenForo-based forum) 6 | 7 | https://greasyfork.org/en/scripts/455241-up-thread-button-mipped-com?locale_override=1 8 | 9 | ![](https://github.com/rdavydov/mipped.com-up-thread/blob/main/Screenshot_2.png?raw=true) 10 | -------------------------------------------------------------------------------- /Screenshot_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rdavydov/mipped.com-up-thread/5dc77a458efe8e8a3a8b65dbd65b11e4892076ae/Screenshot_2.png -------------------------------------------------------------------------------- /script.js: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // @name Up thread button - mipped.com 3 | // @namespace Violentmonkey Scripts 4 | // @match https://mipped.com/f/threads/* 5 | // @grant none 6 | // @version 1.3 7 | // @license MIT 8 | // @icon https://www.google.com/s2/favicons?sz=64&domain=mipped.com 9 | // @author rdavydov 10 | // @description https://greasyfork.org/en/scripts/455241-up-thread-button-mipped-com 11 | // ==/UserScript== 12 | 13 | var btnGroup = document.getElementsByClassName('buttonGroup'); 14 | 15 | var upBtn = document.createElement('a'); 16 | upBtn.href = document.URL + '/up'; 17 | upBtn.innerHTML = 'Поднять'; 18 | upBtn.className = 'button--link button rippleButton'; 19 | upBtn.style = 'background: green; color: white;'; 20 | btnGroup[0].parentNode.insertBefore(upBtn, btnGroup[0].previousSibling); 21 | --------------------------------------------------------------------------------