Backlink

A backlink for a given web resource is a link from some other website (the referrer) to that web resource (the referent). A web resource may be (for example) a website, web page, or web directory.

目前為 2021-03-20 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @version 0.0.0.4
// @name Backlink
// @name:de Rückverweis
// @description A backlink for a given web resource is a link from some other website (the referrer) to that web resource (the referent). A web resource may be (for example) a website, web page, or web directory.
// @description:de Ein Rückverweis oder Backlink bezeichnet einen Link, der von einer anderen Webseite ausgehend zu einer bestimmten Webseite führt. In vielen Suchmaschinen wird die Anzahl und Beschaffenheit der Rückverweise als Maß für die Linkpopularität oder Wichtigkeit einer Webseite verwendet.
// @author wack.3gp
// @copyright 2021+ , wack.3gp (https://greasyfork.org/users/4792)
// @namespace https://greasyfork.org/users/4792
// @supportURL https://greasyfork.org/scripts/423644/feedback
// @license CC BY-NC-ND 4.0; http://creativecommons.org/licenses/by-nc-nd/4.0/
// @noframes
// @compatible Chrome tested with Tampermonkey
// @contributionURL https://www.paypal.com/donate?hosted_button_id=9JEGCDFJJHWU8
// @contributionAmount €1.00
// @resource meta https://greasyfork.org/scripts/423644/code/meta.js
// @grant GM_registerMenuCommand
// @grant GM_notification
// @grant GM_getResourceText
// @grant GM_xmlhttpRequest
// @include *
// ==/UserScript==

/* jshint esversion: 9 */

GM_registerMenuCommand("Check " + GM_info.script.name, function () {
  if (GM_getResourceText("meta").indexOf(GM_info.script.version) > -1) {
    var website = prompt("Please enter your Website:", "example.com");
    if (website == null || website == "") {
      alert("User cancelled the prompt.");
    }
    else {
      GM_xmlhttpRequest({
        method: "GET",
        url: 'https://www.google.com/search?q=' + website + ' -site:' + website,
        onload: function (response) {
          var popularity = response.responseText.split('<div id="result-stats">').pop().split('<nobr>')[0];
          alert(popularity);
        }
      });
    }
  }
  else {
    console.warn("Please download " + GM_getResourceText("meta").replace(/.*(?=v.*\d\D\d\D\d\D\d)/gims, '').split('/')[0] + GM_info.script.supportURL.replace("feedback", ""));
    GM_notification({
      title: "Update!",
      text: "Please download " + GM_getResourceText("meta").replace(/.*(?=v.*\d\D\d\D\d\D\d)/gims, '').split('/')[0],
      onclick: function () {
        location.href = GM_info.script.supportURL.replace("feedback", "");
      },
    });
  }
});
// ==============