Technopat Sosyal Utils

Technopat Sosyal deneyimini iyilestiren bazi ozellikler

目前為 2022-04-22 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Technopat Sosyal Utils
// @version      0.2
// @description  Technopat Sosyal deneyimini iyilestiren bazi ozellikler
// @author       Cinar Yilmaz <[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        none
// @namespace tps-utils
// ==/UserScript==

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("Kopyalandi!");}';
document.body.appendChild(scriptElem);

// URL: https://www.technopat.net/sosyal/hesap/ignored
// Kara listede bulunan uye sayisini gosterir. Metin olarak indirme imkani 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 kullanicinin icerigini gormezden geliyorsunuz' kutularini daha az goze batan hale getirir.
$('.messageNotice--ignored').css({"padding-left": "10px", "border-left": "3px solid #366484", "margin-top": "5px", "margin-bottom": "5px"});
$('.messageNotice--ignored').removeClass("messageNotice--ignored messageNotice");

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址