您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Technopat Sosyal deneyimini iyilestiren bazi ozellikler
当前为
// ==UserScript== // @name Technopat Sosyal Utils // @version 1.3.4 // @description Technopat Sosyal deneyimini iyilestiren bazi ozellikler // @author Çınar Yılmaz <[email protected]> // @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js // @match https://www.technopat.net/sosyal/* // @icon https://camroku.tech/tpsutils.png // @license GPLv3 // @grant GM_setValue // @grant GM_getValue // @namespace tps-utils // ==/UserScript== var $ = window.jQuery; if (GM_getValue('gozardiguzellestir', 'none') === 'none') { GM_setValue('gozardiguzellestir', 'true'); } if (GM_getValue('dersmodu', 'none') === 'none') { GM_setValue('dersmodu', 'false'); } var scriptElem = document.createElement('script'); scriptElem.innerHTML = 'function copy(text) {var tmp = document.createElement("input");tmp.value = text;document.body.appendChild(tmp);tmp.select();document.execCommand("copy");document.body.removeChild(tmp);alert("Kopyalandı!");}'; document.body.appendChild(scriptElem); // URL: https://www.technopat.net/sosyal/hesap/ignored // Kara listede bulunan üye sayısını gösterir. Metin olarak indirme imkanı sunar. if (window.location.pathname == "/sosyal/hesap/ignored") { var blocked = $("a:contains('Görünür Yap')").length; let userstext = ""; $("h3.contentRow-header a.username").each(function(){ userstext += "ID: " + $(this).attr("data-user-id") + ", Username: " + $(this).text() + " | "; }); $(".p-title-value").html("Kara Liste (" + blocked + " üye) <span onclick=\"copy('" + userstext + "')\" style=\"color: #70abcb;\">Listeyi metin olarak kopyala</a>"); } // URL: https://www.technopat.net/sosyal/* // 'Bu kullanıcının içeriğini görmezden geliyorsunuz' kutularını daha az göze batan hale getirir. if (GM_getValue('gozardiguzellestir') === "true") { $('.messageNotice--ignored').css({"padding-left": "10px", "margin-top": "5px", "margin-bottom": "5px"}); $('.messageNotice--ignored').removeClass("messageNotice--ignored messageNotice"); $('.messageNotice--ignored').addClass("bbCodeBlock"); } // URL: https://www.technopat.net/sosyal/* // TPS Araçlar Ayarları linkini menüye ekler $('ul.p-nav-list > li:nth-child(2)').after('<li><div class="p-navEl" data-has-children="false"><a href="/sosyal/hesap?tps-utils" class="p-navEl-link" data-nav-id="tps-utils">TPS Araçlar Ayarları</a></div></li>'); // URL: https://www.technopat.net/sosyal/hesap?tps-utils // TPS Araçlar Ayarları var url = new URL(window.location.href); if (window.location.pathname == "/sosyal/hesap" && url.searchParams.has('tps-utils')) { console.log(GM_getValue('gozardiguzellestir')); $('.block-body *, .p-body-sideNav, .p-body-sideNavCol').remove(); $('.p-title-value').text('Technopat Sosyal Araçlar Ayarları'); $('span:contains("Hesabınız")').parent().attr('href', 'https://www.technopat.net/sosyal/hesap?tps-utils'); $('span:contains("Hesabınız")').text('TPS Araçlar'); var gozardiguzellestir_sel = ""; if (GM_getValue('gozardiguzellestir') === "true") { gozardiguzellestir_sel = " checked"; } var dersmodu_sel = ""; if (GM_getValue('dersmodu') === "true") { dersmodu_sel = " checked"; } $('.block-body').html(`<dl class="formRow"> <dt> <div class="formRow-labelWrapper"> <label class="formRow-label">Mod seçenekleri</label> </div> </dt><dd> <ul class="inputChoices" role="group"> <li class="inputChoices-choice"> <label class="iconic"> <input type="checkbox" name="gozardiguzellestir" value="1"` + gozardiguzellestir_sel + `> <i aria-hidden="true"></i> <span class="iconic-label">Göz ardı uyarılarını sadeleştir</span> </label> </li><li class="inputChoices-choice"> <label class="iconic"> <input type="checkbox" name="dersmodu" value="1"` + dersmodu_sel + `> <i aria-hidden="true"></i> <span class="iconic-label">Ders Modu</span> </label> </li> </ul> </dd> </dl> <hr class="formRowSep"> <dl class="formRow"> <dt> <div class="formRow-labelWrapper"> <label class="formRow-label">TPS Araçlar Versiyonu</label> </div> </dt> <dd>` + GM.info.script.version + `</dd> </dl> <dl class="formRow"> <dt> <div class="formRow-labelWrapper"> <label class="formRow-label">` + GM.info.scriptHandler + ` versiyonu</label> </div> </dt> <dd>` + GM.info.version + `</dd> </dl>`); $('title').text("TPS Araçlar Ayarları | Technopat Sosyal"); $('.button--icon--save').click(function(){ if ($('[name="gozardiguzellestir"]').is(':checked')) { GM_setValue('gozardiguzellestir', "true") } else { GM_setValue('gozardiguzellestir', "false") } if ($('[name="dersmodu"]').is(':checked')) { GM_setValue('dersmodu', "true") } else { GM_setValue('dersmodu', "false") } location.reload(); }); $('form.block').attr({ action: '/sosyal/hesap?tps-utils', method: 'get' }); } // URL: https://www.technopat.net/sosyal/* // Ders modu if (!(window.location.pathname == "/sosyal/hesap" && url.searchParams.has('tps-utils')) && GM_getValue('dersmodu') === "true") { $('head *').remove(); $('head').html('<meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"><title>Ders modu aktif | Technopat Sosyal</title><meta name="theme-color" content="#1e1e1e"><style>html{font:15px / 1.4 sans-serif;font-family:\'Segoe UI\',\'Helvetica Neue\',Helvetica,Roboto,Oxygen,Ubuntu,Cantarell,\'Fira Sans\',\'Droid Sans\',sans-serif;font-weight:400;color:#c8c8c8;margin:0;padding:0;word-wrap:break-word;background-color:#191919}body{max-width:1200px;padding:0 10px;margin:0 auto}a{color:#70abcb;text-decoration:none}a:hover{color:#c8c8c8;text-decoration:underline}.p-offline-header{padding:0;font-size:24px;font-weight:400}.p-offline-main{margin-bottom:20px;padding:6px 10px;color:#c8c8c8;background:#282828;border:1px solid #c8c8c8;border-top-color:#373737;border-right-color:#373737;border-bottom-color:#373737;border-left-color:#373737;border-radius:4px;background-image:none}.p-offline-main:before,.p-offline-main:after{content:" ";display:table}.p-offline-main:after{clear:both}.button,a.button{display:inline-block;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;border:1px solid transparent;white-space:nowrap;-webkit-transition: background-color .125s ease, border-color .125s ease, color .125s ease;transition: background-color .125s ease, border-color .125s ease, color .125s ease;font-size:13px;border-radius:4px;padding-top:5px;padding-right:10px;padding-bottom:5px;padding-left:10px;text-align:center;color:#fff;background:#185886;border-color:#282828 !important;border-color:#144a70 #1c669c #1c669c #144a70}.button.button--splitTrigger>.button-text,a.button.button--splitTrigger>.button-text{border-right-color:#1c669c}.button.button--splitTrigger>.button-menu,a.button.button--splitTrigger>.button-menu{border-left-color:#144a70}.button:not(.button--splitTrigger):hover,a.button:not(.button--splitTrigger):hover,.button.button--splitTrigger>.button-text:hover,a.button.button--splitTrigger>.button-text:hover,.button.button--splitTrigger>.button-menu:hover,a.button.button--splitTrigger>.button-menu:hover,.button:not(.button--splitTrigger):focus,a.button:not(.button--splitTrigger):focus,.button.button--splitTrigger>.button-text:focus,a.button.button--splitTrigger>.button-text:focus,.button.button--splitTrigger>.button-menu:focus,a.button.button--splitTrigger>.button-menu:focus,.button:not(.button--splitTrigger):active,a.button:not(.button--splitTrigger):active,.button.button--splitTrigger>.button-text:active,a.button.button--splitTrigger>.button-text:active,.button.button--splitTrigger>.button-menu:active,a.button.button--splitTrigger>.button-menu:active{background-color:#1e6fa9}</style>'); $('body *').remove(); $('body').html('<h1 class="p-offline-header">Technopat Sosyal</h1><div class="p-offline-main">Ders Modu aktif. Technopat Sosyal\'i Ders Modu aktifken kullanamazsınız.<br><a href="/sosyal/hesap?tps-utils" class="button">TPS Araclar Ayarlari</a></div>'); } // URL: https://www.technopat.net/sosyal/* // Footer'a TPS Araçlar yazısı $('.p-footer-copyright').append('<br /><a href="https://gf.qytechs.cn/en/scripts/443823-technopat-sosyal-utils" class="u-concealed" dir="ltr" target="_blank" rel="sponsored noopener">TPS Araçlar ' + GM.info.script.version + '</a>')
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址