馃洜 住拽专讬驻讟 Tampermonky | 讛讜住驻转 住专讙诇 讻诇讬诐 馃洜
-
@谞-谞讞 讗诪专 讘 住拽专讬驻讟 Tampermonky | 讛讜住驻转 住专讙诇 讻诇讬诐 :
let panel = document.createElement('div'); let title = document.createElement('div'); panel.id = 'movePanel'; panel.style.zIndex = '7'; panel.style.cursor = 'move'; panel.style.boxShadow = '0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)' panel.style.position = 'fixed'; panel.style.width = '60px'; panel.style.height = '555px'; panel.style.left = '17px'; panel.style.bottom = '2%'; panel.style.paddingTop = '12px'; panel.style.paddingBottom = '8px'; panel.style.flexDirection = 'column'; panel.style.alignItems = 'center'; panel.style.justifyContent = 'center'; panel.style.borderRadius = '10px'; panel.style.backgroundColor = 'rgb(255, 255, 190)'; panel.ondblclick = function () { if (panel.style.height === '555px') { $('.images').css('display', 'none'); panel.style.height = '60px'; } else { $('.images').css('display', 'block'); panel.style.height = '555px'; }} title.style.display = 'block'; title.style.textAlign = 'center'; title.style.fontSize = '25px'; title.style.color = '#357BB8'; title.innerHTML = '讻诇讬诐'; panel.appendChild(title); let deletingChanges = document.createElement('img'); deletingChanges.src = '/assets/uploads/files/1617365157713-deletingchanges.png'; deletingChanges.title = '诪讞讬拽转 讛砖讬谞讜讬讬诐'; deletingChanges.style.cursor = 'pointer'; deletingChanges.style.display = 'block'; deletingChanges.style.margin = 'auto';deletingChanges.style.width = '20px'; deletingChanges.style.marginBottom = '20px'; deletingChanges.style.marginTop = '5px'; deletingChanges.onclick = function () { var confirmation = confirm("讗转讛 讘讟讜讞 砖讘专爪讜谞讱 诇诪讞讜拽 讗转 讛砖讬谞讜讬讬诐?"); if (confirmation == true) { localStorage.removeItem('allParagraphsColor'); localStorage.removeItem('customBackgroundImage'); localStorage.removeItem('hideForumLogo'); localStorage.removeItem('emojisize'); location.reload(); }} let image1 = document.createElement('img'); image1.src = '/assets/uploads/files/1616637195056-img.png'; image1.title = '讬讞住 诪讜谞讬讟讬谉 诇驻讜住讟'; image1.style.cursor = 'pointer'; image1.onclick = function () { var result = (app.user.reputation) / app.user.postcount; app.alert({ title: '<h4 style="color: #4caf50;">讞讬砖讜讘 驻讜住讟讬诐 VS 诪讜谞讬讟讬谉</h4>', message: '诪住驻专 讛驻讜住讟讬诐 砖讻转讘转 讛讜讗 ' + app.user.postcount + '<br>诪讗讬讚讱 诪住驻专 讛诇讬讬拽讬诐 砖拽讘诇转 讛讜讗 ' + app.user.reputation + '<hr style="border-top: 2px solid #838694;">讘转\'讻诇住 讬讞住 讛诇讬讬拽讬诐 诇驻讜住讟 讛讜讗: <h3 style="color: #4caf50; text-align: center;">' + result.toFixed(4), timeout: 5000 }) } image1.style.display = 'block'; image1.style.margin = 'auto'; image1.style.width = '37px'; image1.style.marginBottom = '15px'; let image2 = document.createElement('img'); image2.src = '/assets/uploads/files/1616631561115-asset-2.png'; image2.title = '注专讬讻转 讛驻讜专讜诐'; image2.style.cursor = 'pointer'; image2.onclick = function () { if (document.designMode == 'off') { image2.src = '/assets/uploads/files/1616627933907-asset-1.png'; app.alert({ title: '注专讬讻转 讛驻讜专讜诐', message: '注专讜讱 讗转 讛讗转专 讻专爪讜谞讱!', type: 'success', timeout: 2500 }) document.designMode = 'on' } else { document.designMode = 'off' image2.src = '/assets/uploads/files/1616631561115-asset-2.png'; app.alert({ title: '注专讬讻转 讛驻讜专讜诐', message: '讛注专讬讻讛 讛住转讬讬诪讛', timeout: 2500 }) } } image2.style.display = 'block'; image2.style.margin = 'auto'; image2.style.width = '37px'; image2.style.marginBottom = '15px'; let image3 = document.createElement('img'); image3.src = 'https://讙讜讙诇-讘驻讜专讜诪讬诐.tk/unnamed.png'; image3.title = '讞讬驻讜砖 讙讜讙诇 讘驻讜专讜诪讬诐 讛讞专讚讬讬诐'; image3.style.cursor = 'pointer'; image3.style.display = 'block'; image3.style.margin = 'auto'; image3.style.width = '37px'; image3.style.marginBottom = '15px'; image3.onclick = function () { var search = prompt("诪讛 讗转讛 专讜爪讛 诇讞驻砖 讘驻讜专讜诪讬诐?"); if (search != null && search != "") { search = encodeURIComponent(search.trim()); var link = "https://讙讜讙诇-讘驻讜专讜诪讬诐.tk/#gsc.tab=0&gsc.q=" + search; function linkb(href) { Object.assign(document.createElement('a'), { target: '_blank', href, }).click(); } linkb(link); } } let image4 = document.createElement('div'); image4.title = '砖讬谞讜讬 爪讘注 讟拽住讟'; let colorInput = document.createElement('input'); colorInput.id = 'colorPostInput'; colorInput.type = 'color'; colorInput.value = '#333333'; colorInput.style.position = 'absolute'; colorInput.style.right = '-8px'; colorInput.style.top = '-8px'; colorInput.style.width = '56px'; colorInput.style.height = '56px'; colorInput.style.border = 'none'; colorInput.style.cursor = 'pointer'; if (localStorage.allParagraphsColor) { document.body.style.color = localStorage.allParagraphsColor; colorInput.value = localStorage.allParagraphsColor; } colorInput.addEventListener('input', (event) => { localStorage.allParagraphsColor = colorInput.value; document.body.style.color = colorInput.value; }); image4.style.cursor = 'pointer'; image4.style.display = 'block'; image4.style.margin = 'auto'; image4.style.position = 'relative'; image4.style.overflow = 'hidden'; image4.style.width = '40px'; image4.style.height = '40px'; image4.style.border = 'solid 2px #ddd'; image4.style.borderRadius = '40px'; image4.style.marginBottom = '15px'; let image5 = document.createElement('img'); image5.src = '/assets/uploads/files/1617339003540-images.png'; image5.title = '讛讜住驻转 转诪讜谞转 专拽注 诪讜转讗诪转 讗讬砖讬转'; image5.style.cursor = 'pointer'; if (localStorage.customBackgroundImage) { let myStyle = document.createElement('style'); myStyle.appendChild(document.createTextNode('li { background-color: white; opacity: 0.9; border-radius: 10px; }')); myStyle.appendChild(document.createTextNode('.breadcrumb, .topic-list-header, .input-group { opacity: 0.95; border-radius: 10px; }')); document.getElementsByTagName('head')[0].appendChild(myStyle); $('body').css('background-image', `url(${localStorage.customBackgroundImage})`); $('body').css('background-attachment', 'fixed'); $('body').css('background-size', 'cover'); } image5.onclick = function () { let backgroundUrl = prompt('讛讻谞住 讗转 讛拽讬砖讜专 诇转诪讜谞转 讛专拽注'); if (backgroundUrl != null && backgroundUrl != "") { let myStyle = document.createElement('style'); myStyle.appendChild(document.createTextNode('li { background-color: white; opacity: 0.9; border-radius: 10px; }')); myStyle.appendChild(document.createTextNode('.breadcrumb, .topic-list-header, .input-group { opacity: 0.95; border-radius: 10px; }')); document.getElementsByTagName('head')[0].appendChild(myStyle); $('.breadcrumb').css('border-radius', '10px'); $('body').css('background-image', `url(${backgroundUrl})`); $('body').css('background-attachment', 'fixed'); $('body').css('background-size', 'cover'); localStorage.customBackgroundImage = backgroundUrl; }} image5.style.display = 'block'; image5.style.margin = 'auto'; image5.style.width = '37px'; image5.style.marginBottom = '15px'; if (localStorage.hideForumLogo) { if (localStorage.hideForumLogo === "hide") { $('.forum-logo').css("display", "none"); } else { $('.forum-logo').css("display", "block"); } } let image6 = document.createElement('img'); image6.src = '/favicon.ico'; image6.title = '讛住转专转 讛诇讜讙讜 砖诇 讛驻讜专讜诐'; image6.style.cursor = 'pointer'; image6.onclick = function () { if (localStorage.hideForumLogo) { if (localStorage.hideForumLogo === "show") { localStorage.hideForumLogo = "hide"; $('.forum-logo').css("display", "none"); } else { localStorage.hideForumLogo = "show"; $('.forum-logo').css("display", "block"); } } else { localStorage.hideForumLogo = "hide"; $('.forum-logo').css("display", "none"); } } image6.style.display = 'block'; image6.style.margin = 'auto'; image6.style.width = '37px'; image6.style.marginBottom = '15px'; if (localStorage.emojisize) { for (var i = 0; i < document.getElementsByClassName('emoji').length; i++) { document.querySelector('head').innerHTML += `<style>.emoji { width: ${localStorage.emojisize}px; height: ${localStorage.emojisize}px; }</style>`; } } let image7 = document.createElement('img'); image7.src = '/plugins/nodebb-plugin-emoji/emoji/apple/1f642.png?v=a54dqpiknn4'; image7.title = '砖讬谞讜讬 讙讜讚诇 讗讬诪讜讙\'讬诐'; image7.style.cursor = 'pointer'; image7.onclick = function () { var emojisize = prompt("诇讗讬讝讛 讙讜讚诇 诇砖谞讜转 讗转 讛讗讬诪讜讙'讬诐? (讘驻讬拽住诇讬诐)"); if (emojisize != null && emojisize != "") { emojisize = encodeURIComponent(emojisize.trim()); localStorage.emojisize = emojisize; for (var i = 0; i < document.getElementsByClassName('emoji').length; i++) { var emojis = document.getElementsByClassName('emoji')[i]; emojis.style.width = emojisize + 'px'; emojis.style.height = emojisize + 'px' } } } image7.style.display = 'block'; image7.style.margin = 'auto'; image7.style.width = '37px'; image7.style.marginBottom = '15px'; let image8 = document.createElement('img'); image8.src = '/assets/uploads/files/1616992426113-link.png'; image8.title = '驻讜专讜诪讬诐'; image8.style.cursor = 'pointer'; image8.onclick = function () { app.alert({ type: 'success', timeout: 10000, title: '<h3 style="text-align: center;">驻讜专讜诪讬诐</h3>', message: '<hr><a href="https://tchumim.com" target="_blank"><img width="40px" title="转讞讜诪讬诐" src="/assets/uploads/files/1616989719968-1.png"></a>' + '<a href="https://诪拽爪讜注讜转.com/" target="_blank"><img width="40px" title="诪拽爪讜注讜转" src="/assets/uploads/files/1616989719998-2.png"></a>' + '<a href="https://www.prog.co.il" target="_blank"><img width="40px" title="驻专讜讙" src="/assets/uploads/files/1616989720025-3.png"></a>' + '<a href="https://forum-office.ml" target="_blank"><img width="40px" title="驻讜专讜诐 讗讜驻讬住" src="/assets/uploads/files/1616989720045-4.png"></a>' + '<a href="https://f2.freeivr.co.il" target="_blank"><img width="40px" title="驻讜专讜诐 讬诪讜转 讛诪砖讬讞" src="/assets/uploads/files/1616989720065-5.png"></a>' + '<br><br><a href="https://www.tora-forum.co.il" target="_blank"><img width="40px" title="驻讜专讜诐 诇转讜专讛" src="/assets/uploads/files/1616989720081-6.png"></a>' + '<a href="https://meatzvim.cf" target="_blank"><img width="40px" title="诪注爪讘讬诐" src="/assets/uploads/files/1616989720101-7.png"></a>' + '<a href="https://www.techno-tech.cf" target="_blank"><img width="40px" title="转讻谞讜讟拽" src="/assets/uploads/files/1616989720122-8.png"></a>' + '<a href="http://forum.netfree.link" target="_blank"><img width="40px" title="驻讜专讜诐 谞讟驻专讬" src="/assets/uploads/files/1617018043234-9.png"></a>' }) } image8.style.display = 'block'; image8.style.margin = 'auto'; image8.style.width = '37px'; image8.style.marginBottom = '15px'; let image9 = document.createElement('img'); image9.src = '/assets/uploads/files/1616992426113-link.png'; image9.title = '讛拽讬砖讜专讬诐 砖诇讬'; image9.style.cursor = 'pointer'; image9.onclick = function () { app.alert({ type: 'success', timeout: 10000, title: '<h3 style="text-align: center;">驻讜专讜诪讬诐</h3>', message: '<hr><a href="https://tchumim.com" target="_blank"><img width="40px" title="转讞讜诪讬诐" src="/assets/uploads/files/1616989719968-1.png"></a>' + '<a href="https://诪拽爪讜注讜转.com/" target="_blank"><img width="40px" title="诪拽爪讜注讜转" src="/assets/uploads/files/1616989719998-2.png"></a>' + '<a href="https://www.prog.co.il" target="_blank"><img width="40px" title="驻专讜讙" src="/assets/uploads/files/1616989720025-3.png"></a>' + '<a href="https://forum-office.ml" target="_blank"><img width="40px" title="驻讜专讜诐 讗讜驻讬住" src="/assets/uploads/files/1616989720045-4.png"></a>' + '<a href="https://f2.freeivr.co.il" target="_blank"><img width="40px" title="驻讜专讜诐 讬诪讜转 讛诪砖讬讞" src="/assets/uploads/files/1616989720065-5.png"></a>' + '<br><br><a href="https://www.tora-forum.co.il" target="_blank"><img width="40px" title="驻讜专讜诐 诇转讜专讛" src="/assets/uploads/files/1616989720081-6.png"></a>' + '<a href="https://meatzvim.cf" target="_blank"><img width="40px" title="诪注爪讘讬诐" src="/assets/uploads/files/1616989720101-7.png"></a>' + '<a href="https://www.techno-tech.cf" target="_blank"><img width="40px" title="转讻谞讜讟拽" src="/assets/uploads/files/1616989720122-8.png"></a>' + '<a href="http://forum.netfree.link" target="_blank"><img width="40px" title="驻讜专讜诐 谞讟驻专讬" src="/assets/uploads/files/1617018043234-9.png"></a>' }) } image9.style.display = 'block'; image9.style.margin = 'auto'; image9.style.width = '37px'; image9.style.marginBottom = '15px'; deletingChanges.classList.add('images'); image1.classList.add('images'); image2.classList.add('images'); image3.classList.add('images'); image4.classList.add('images'); image5.classList.add('images'); image6.classList.add('images'); image7.classList.add('images'); image8.classList.add('images'); image9.classList.add('images'); image4.appendChild(colorInput); panel.appendChild(deletingChanges); panel.appendChild(image1); panel.appendChild(image2); panel.appendChild(image3); panel.appendChild(image4); panel.appendChild(image5); panel.appendChild(image6); panel.appendChild(image7); panel.appendChild(image8); panel.appendChild(image9); document.body.appendChild(panel); dragElement(document.getElementById('movePanel')); function dragElement(elmnt) { var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; elmnt.onmousedown = dragMouseDown; function dragMouseDown(e) { e = e || window.event; e.preventDefault(); pos3 = e.clientX; pos4 = e.clientY; document.onmouseup = closeDragElement; document.onmousemove = elementDrag; } function elementDrag(e) { e = e || window.event; e.preventDefault(); pos1 = pos3 - e.clientX; pos2 = pos4 - e.clientY; pos3 = e.clientX; pos4 = e.clientY; elmnt.style.top = (elmnt.offsetTop - pos2) + "px"; elmnt.style.left = (elmnt.offsetLeft - pos1) + "px"; } function closeDragElement() { document.onmouseup = null; document.onmousemove = null; } } let removeMsoNormal = document.createElement('style'); removeMsoNormal.appendChild(document.createTextNode('.MsoNormal { display: none; }')); document.getElementsByTagName('head')[0].appendChild(removeMsoNormal); if (!localStorage.alreadyInstalled) { localStorage.alreadyInstalled = ' '; app.alert({ type: 'success', message: '<div style="text-align: center"><h3 style="color: black">转讜讚讛 砖讛转拽谞转 讗转 讛转讜住祝!</h3><hr><a href="/user/诪讜讟讬-讗讜专谉"><img width="70px" style="border-radius: 40px; box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2), 0 0 20px 0 rgba(0, 0, 0, 0.19)" src="/assets/uploads/profile/886-profileavatar-1603289895083.jpeg"></a>' + '<a href="/user/谞-谞讞"><img width="70px" style="margin-right: 15px; border-radius: 40px; box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2), 0 0 20px 0 rgba(0, 0, 0, 0.19)" src="/assets/uploads/profile/5246-profileavatar-1614689486244.png"></a></div><p style="margin-top: 20px; text-align: left; color: gray">诪讜讟讬 讗讜专谉 & 谞 谞讞</p>' }) } // ==UserScript== // @name 住专讙诇 讻诇讬诐 // @version 0.2 // @author 诪讜讟讬 讗讜专谉 & 谞 谞讞 // @description 馃榾 讛讜住驻转 住专讙诇 讻诇讬诐 诇驻讜专讜诐 // @include https://mitmachim.top/* // @icon https://mitmachim.top/assets/uploads/files/1616983314128-tools-solid.svg // @homepage https://mitmachim.top/topic/21073 // @supportURL https://mitmachim.top/topic/21073 // @noframes // ==/UserScript==
诇讗 注讜讘讚
讛讜讗 诪专讗讛 砖讙讬讗讛 诪砖讛讜讗 讘注讝讜专 讛讝讛} function elementDrag(e) { e = e window.event; e.preventDefault(); pos1 = pos3 - e.clientX; pos2 = pos4 - e.clientY; pos3 = e.clientX; pos4 = e.clientY; elmnt.style.top = (elmnt.offsetTop - pos2) + "px"; elmnt.style.left = (elmnt.offsetLeft - pos1) + "px"; }
-
@诇诪讛-诪讛-拽专讛 讗诪专 讘 住拽专讬驻讟 Tampermonky | 讛讜住驻转 住专讙诇 讻诇讬诐 :
诪讛 讛注谞讬讬谉 讘注专讬讻转 讛驻讜专讜诐?
讛诐 诇拽讞讜 讻诇 诪讬谞讬 讞诇拽讬 JS 砖驻专住诪讜 驻讛 讘驻讜专讜诐 讜讬爪讜 住专讙诇 砖诪讗讞讚 讗转 讻讜诇诐 讗讙讘 讛诐 讛讬讜 爪专讬讻讬诐 诇讘谞讜转 讗转 讝讛 诇 XDA 讗讜 4PDA 砖诐 讝讛 讛专讘讛 讬讜转专 砖讬诪讜砖讬 讘谞讜住祝 讻讚讬 诇讛讜住讬祝 砖讬讛讬讛 诇讞爪谉 诇讛驻讜讱 讗转 讛讚祝 诇讬诪讬谉 (RTL)
-
@住讜讚讬-住讜讚讬 讗谞讬 讗诐 讛住拽专讬驻讟 讛讝讛 住讬讬诪转讬 讜讻谞专讗讛 砖讙诐 @诪讜讟讬-讗讜专谉 (讗讜诇讬 讘注转讬讚 讗谞讞谞讜 谞砖驻专 讗讜转讜)
诪讬 砖专讜爪讛 讬讻讜诇 诇注专讜讱 讗转 讛住拽专讬驻讟.