NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Reactor Fix // @namespace https://openuserjs.org/scripts/Borgulio/Reactor_Fix // @version 0.3.2 // @description ... // @author Borgulio // @include *reactor.cc* // @include *joyreactor.cc* // @include *jr-proxy.com* // @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js // @grant none // @updateURL https://openuserjs.org/meta/Borgulio/Reactor_Fix.meta.js // @downloadURL https://openuserjs.org/src/scripts/Borgulio/Reactor_Fix.user.js // @license MIT // @copyright 2018, Borgulio (https://openuserjs.org/users/Borgulio) // @run-at document-start // ==/UserScript== (function($) { 'use strict'; var Tag_Info_Base64_Pic='iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAQAAAAm93DmAAAACXBIWXMAAC4jAAAuIwF4pT92AAA7MmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMwNjcgNzkuMTU3NzQ3LCAyMDE1LzAzLzMwLTIzOjQwOjQyICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgog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QaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj40MDwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+71/IAQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAABhUlEQVR42uyV23GDMBBFjzNuQCmBlEALtIBLUErAJagFXAIuQZSAS1BKgBI2HxIEB2Nh8OTHWT54aDizq13duxOeG2+8HBAZXSRXr4KQP8rYX610HAHQJOHpa1uGfVhkLePPm6KoaBEqVPiSYhFaCix2+sM+CoQjCgMcgARLxydQkFCv3cMUSwtAhZAAfiLsDUYUWF4ttzSjXOzjTSnRHHjnNNqCTWPTZ9F/sUPJ6bqSG4QCMyxnCA5NgVsHTGgQLAYJ5WY0CI78EeCSSBHMFLgbY3ZxjKKipkOhUXzQeWCsKfGT01KG5mzMcGZSXtoC/gAot1RuCEMbcZrJ2NwDFggl+mdglpyUe0CHe66nJHEXnAdaLPkgBF6hvdqUqKA2DjNRyNmSLS0tBoNDyAAdpMvbVInGIDjUsj20AeN1pRqtFQg65KMRiuV76F3t8kv6M+Acns/h/amD3W0F1jCMdj7UsdDob8WJnJKUCymaenDEaJdlchz7uwq9d94EZgX2Xw9XxfcAE/5OjH/Kgt4AAAAASUVORK5CYII='; /* Changelog 0.3.2 - задержка функций увеличена с 1 до 8 0.3.1 - css устанавливается после 'head'(поставил after вместо append) */ AddMainCss(); AddHideCss(); document.addEventListener('DOMContentLoaded', function(){ setTimeout(function (){ RemoveEmptySpace(); //remove empty space after pics AddPostButton(); AddMenuButton(); MoveElements(); //перенос строки поиска, ссылки на бездну, ссылки на коменты юзера и описание сути реактора AddScrollTopButton(); //var ChangeLinksActive = false; //заменил на MutationTest, но функцию пока оставил на всякий случай //BACKUP_ChangeLinks(0); //заменил на MutationTest, но функцию пока оставил на всякий случай RemoveShareButtons(); HideTagInfo(); MutationTest(); ChangeLinks(); }, 8); }); //========================================================================= //--------------------------Functions--------------------------// function ChangeLinks(){ $('a.top_logo').attr('href','/all'); $('a[href*=joyreactor]').each(function(){ var NewLink = $(this).attr("href").replace("joyreactor", "reactor"); $(this).attr("href", NewLink); }); } function MutationTest(){ // подключаем mutation observer // выбираем целевой элемент var target = $('.post_comment_list'); // создаём экземпляр MutationObserver var observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { if (!mutation.target.matches('[class*=post_comment]')) return; if (!mutation.addedNodes.length) return; if ( !~$(mutation.addedNodes[0]).html().indexOf('joyreactor') ) return; //console.log(mutation.target.matches('[class*=post_comment]')); //console.log(mutation.addedNodes.length); //console.log('Mutation test log: '); //console.log(mutation); //console.log(mutation.target); //console.log(mutation.addedNodes); //console.log(mutation.addedNodes[0]); //console.log( $(mutation.addedNodes[0]).html() ); //console.log( ~$(mutation.addedNodes[0]).html().indexOf('joyreactor') ); //console.log( $(mutation.addedNodes[0]).find('a[href*=joyreactor]') ); var ReplacedHtml = $(mutation.addedNodes[0]).html().replace(/:\/\/joyreactor/g, '://reactor'); $(mutation.addedNodes[0]).html( ReplacedHtml ) }); }); // конфигурация нашего observer: var config = { childList: true, subtree: true }; // передаём в качестве аргументов целевой элемент и его конфигурацию target.each(function(){ observer.observe(this, config); }); // позже можно остановить наблюдение //observer.disconnect(); } function HideTagInfo(){ // #tagArticle прячется через css if ( !~location.href.indexOf('/tag/') ) return; $('#contentinner').prepend('<button id="btaginfo" style="position: absolute; left: 0px; float: left; border-radius: 21px; outline: none;" onclick="return false"></button>'); $('#btaginfo').after('<div id="btagfavbuttons"></div>'); $('#btagfavbuttons').css('border-bottom','2px solid #FDDA97'); $('#breadCrumb').find('div.sideheader.taginfo').clone().css({ 'margin-left':'5px' }).appendTo('#btagfavbuttons');//tag chain $('#blogFavroiteLinks').find('.add_to_fav').clone().css({'float':'left','margin-left':'5px','margin-right':'15px','text-transform':'capitalize'}).appendTo('#btagfavbuttons');//ADD TO FAV $('#blogFavroiteLinks').find('.remove_from_fav').clone().css({ 'float':'left','margin-left':'5px','margin-right':'15px','text-transform':'capitalize' }).appendTo('#btagfavbuttons');//REMOVE FROM FAV $('#blogFavroiteLinks').find('.add_to_unpopular').clone().css({ 'text-transform':'capitalize' }).appendTo('#btagfavbuttons');//BLOCK TAG $('#blogFavroiteLinks').find('.remove_from_unpopular').clone().css({ 'text-transform':'capitalize' }).appendTo('#btagfavbuttons');//UNBLOCK TAG $('#btaginfo').css({ 'background-image':'url(data:image/png;base64,'+Tag_Info_Base64_Pic+')', 'background-repeat': 'no-repeat', 'background-position':'center, center', 'background-size':'85%' }); $('#btaginfo').click(function(){ $('#tagArticle').toggle(100); $('#btagfavbuttons').toggle(100); }); } function RemoveShareButtons(){ $('a.share_twitter').remove(); $('a.share_fb').remove(); $('a.share_vk').remove(); } function AddScrollTopButton(){ var Scroll_To_Top_On_Click = true; var SavedPosition = 0; var Is_Hidden = true; var Trigger_Number = 500; $("#pageinner").prepend('<button id="BorgulioUpBtn" class="commentnum toggleComments">↑</button>'); $('#BorgulioUpBtn').on("click", function(){ if ( Scroll_To_Top_On_Click ){ SavedPosition = $(document).scrollTop(); $(document).scrollTop(0); Scroll_To_Top_On_Click = false; $('#BorgulioUpBtn').text('↓'); return; } if ( !Scroll_To_Top_On_Click ){ $(document).scrollTop(SavedPosition); Scroll_To_Top_On_Click = true; $('#BorgulioUpBtn').text('↑'); return; } }); //Is_Hidden func $( document ).scroll(function() { if ($(document).scrollTop() > Trigger_Number && SavedPosition === 0 && Is_Hidden){ $('#BorgulioUpBtn').fadeIn( "slow" ); Is_Hidden = false; return; } if ($(document).scrollTop() <= Trigger_Number && SavedPosition === 0 && !Is_Hidden){ $('#BorgulioUpBtn').fadeOut( "slow" ); Is_Hidden = true; return; } }); //change pointer func $( document ).scroll(function() { if ($(document).scrollTop() <= Trigger_Number && Scroll_To_Top_On_Click && SavedPosition > 0){ Scroll_To_Top_On_Click = false; $('#BorgulioUpBtn').text('↓'); return; } if ($(document).scrollTop() > Trigger_Number && !Scroll_To_Top_On_Click){ Scroll_To_Top_On_Click = true; $('#BorgulioUpBtn').text('↑'); return; } }); } function BACKUP_ChangeLinks(counter){ if (counter == 0){ $(document).click(function() { ChangeLinks(1); }); counter = 1; } if (ChangeLinksActive && counter == 1) return; if (!ChangeLinksActive) ChangeLinksActive = true; console.log('ChangeLinks counter: '+counter); setTimeout(function(){ if ( !~location.href.indexOf('://reactor') ) return; $("a").each(function(){ var StandartLink = $(this).attr("href"); if (StandartLink === undefined) return true; if ( ~StandartLink.indexOf('joyreactor') ){ var FixedLink = StandartLink.replace("joyreactor", "reactor"); $(this).attr("href", FixedLink); } }); counter++; if (counter <= 3) { ChangeLinks(counter); } else { ChangeLinksActive = false; return; } }, 1000); } function AddPostCreateForm(){ $('<div id="BorgCreate"></div>').insertBefore('#post_list'); $("#BorgCreate").load("/all #add_post_holder"); } function AddPostButton(){ $('div.submenuitem:nth-last-of-type(1)').after('<div class="submenuitem"><a id="BorgAddpost" href="" onclick="return false;">Создать новый пост</a></div>'); if ( !$("#add_post_holder").length ) AddPostCreateForm();//подгрузить форму создания поста, если ее нет изначально $('#BorgAddpost').click(function(){ $('#add_post_holder').toggle(100); } ); } function AddMenuButton(){ $('a.top_logo').after('<a id="HideMenus" href="" onclick="return false;" style="margin-left:25px;">Меню</a>'); $('#HideMenus').click(function(){ $('#navcontainer').toggle(100); $('#searchBar').toggle(100); } ); } function MoveElements(){ //SEARCH MOVE document.querySelector(".topbar_inner").appendChild(document.getElementById('searchmenu')); document.getElementById("searchmenu").style.marginTop = "3px"; document.querySelector(".post_random").style.float = "right"; //ABYSS LINK MOVE $("a").each( function(){ if ( $(this).text() != "Бездна") return true; $(".topbar_inner").append(this); $(this).css( "marginLeft", "25px" ); } ); //COMMENTS LINK MOVE if ( ~location.href.indexOf('/user/') ){ $("a").each( function(){ if ($(this).text() != "Комментарии") return true; $(".topbar_inner").append(this); $(this).css( "marginLeft", "25px" ); } ); } //DESCRIPTION MOVE var desc = $("#header").find('.description'); $(desc).prependTo('#sidebar'); $(desc).css({"border-bottom":"2px solid #FDDA97","text-align":"center"}); } function RemoveEmptySpace(){ $.each([ 1, 2, 3 ], function( index, value ) { $(document).find('.post_content').each(function(){ var IsThereAnyText = false; var Last_BR = $(this).find('br:last'); if ( !Last_BR.length ) return; if ( Last_BR.parent().is('p') ){ Last_BR.parent().nextAll().each(function(){ if ( $(this).text().length ) IsThereAnyText = true; //console.log( 'RemoveEmptySpace log: '+$(this).text() ); }); } Last_BR.nextAll().each(function(){ if ( $(this).text().length ) IsThereAnyText = true; //console.log( 'RemoveEmptySpace log: '+$(this).text() ); }); if ( !IsThereAnyText ) Last_BR.remove(); }); $(document).find('.post_content').each(function(){ var DIV = $(this).children(); if ( DIV.text()==' ' ){ var REPLACED = DIV.html().replace(/ /g, ''); DIV.html(REPLACED); } }); }); } function AddNewCSS(NewCssId,NewCssText){ $("head").after('<style type="text/css" id="FixReactor_'+NewCssId+'">'+NewCssText+'</style>'); } function AddHideCss(){ AddNewCSS(AddHideCss.name,` #add_post_holder, #showCreatePost, #navcontainer, #searchBar, #header, div.mainheader, #tagArticle /* Скрываем информацию о теге,которая занимает до 500 пикселей */{ display:none; } `); } function AddMainCss(){ AddNewCSS(AddMainCss.name,` .comment { margin-bottom: 2px; padding: 0px 20px; border-radius: 15px; } /* */ .comments_bottom { margin-top: -4px; margin-bottom: -5px; } /* Уменьшае высоту конопки "Ответить" в коментах */ .article .ufoot span a.response { line-height: 25px; } .article .ufoot .txt span.comment_rating { zoom: 80%; } /* Закругленные края кнопок */ #blogHeader .add_to_fav a, .pagination a, .pagination span, .pagination .current, .pagination .next, .pagination .prev, .pagination_toggler, input[type="submit"]{ border-radius: 21px; } #pageinner { padding-top: 3px; } /* Уменьшаем аватарку */ .avatar { zoom: 55%; } /* Ровняем теги с ником и убираем отступ */ .article .uhead { height: auto; margin-bottom: 0px; } /* Привязка автарки и ника к левой стороне, отступ перед тегами и серый фон */ div.uhead_nick { float: left; margin-right: 5px; background-color: #e2e2e2; border-radius: 12px; padding: 0 5px 0 0; } /* Убираем пустоту между постами и добавляем разделитель */ .article { margin: 0px 0 0px; border-bottom: 2px solid #FDDA97; } /* Добавляем небольшой отступ перед кнопками переключения страниц */ .pagination { margin-top: 3px; } /* Уменьшаем панель с датой, рейтом и кнопкой Комент */ .article .ufoot .ufoot_first { zoom:80%; font-size:17px; /* Компенсируем увелицивая шрифт */ } /* Убираем отступ после содержимого поста */ .article .post_content { margin-bottom:0px; } /* Опускаем зеленое окошко с количеством новых постов */ .commentnumDelta { top:0px; } /* Компенсируем увелицивая шрифт */ .commentnum { font-size:17px; } /* Увеличиваем размер шрифта в коментах */ .article .ufoot { font-size:16px; } /* Убираем бесполезный отступ перед картинкой в посте */ .post_content .image, .post_comment_list .image { padding: 0px 0 0; } /* Убираем какой-то рандомный отступ после картинки в посте */ .post_content .image+p, .post_comment_list .image+p { padding: 0px 0 0; } /* Кнопка "Вверх" */ #BorgulioUpBtn { display: none; opacity: 0.85; position: fixed; left: inherit; bottom: 15px; padding: 200px 10px; line-height: 0px!important; height: 0; width: 35px; margin-left: -36px; outline: none; } #BorgulioUpBtn:hover { opacity: 1; } /* Чуть сдвинуть вправо нижнее меню "о проекте", "правила" и т.д. */ #tagList { margin-left: 2px; } `); } })(jQuery);