FuckQQ

拦你妈呢死妈 QQ 管家

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name            FuckQQ
// @namespace       https://github.com/Cierra-Runis/FuckQQ
// @version         1.2
// @description     拦你妈呢死妈 QQ 管家
// @connect         raw.githubusercontent.com
// @connect         github.com
// @connect         cdn.jsdelivr.net
// @author          https://github.com/Cierra-Runis
// @match           https://c.pc.qq.com/*
// @icon            https://raw.githubusercontent.com/Cierra-Runis/FuckQQ/master/.github/icon.png
// @grant           none
// ==/UserScript==

(function () {
  "use strict";
  let urlBlock = document.getElementById("url");

  const getQuery = (url, query) => {
    const str = url.substr(url.indexOf("?") + 1);
    const arr = str.split("&");
    const result = {};
    for (let i = 0; i < arr.length; i++) {
      const item = arr[i].split("=");
      result[item[0]] = item[1];
    }
    return result[query];
  };

  if (urlBlock == null) {
    window.location.href = decodeURIComponent(
      getQuery(window.location.href, "url")
    );
  }
  window.location.href = urlBlock.textContent;
})();