Backlinks

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.

目前為 2024-05-01 提交的版本,檢視 最新版本

// ==UserScript==
// @name Backlinks
// @name:de Rückverweise
// @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.
// @version 1.0.0.6
// @icon https://translate.google.com/favicon.ico
// @author JAS1998
// @copyright 2023+ , JAS1998
// @namespace https://gf.qytechs.cn/users/4792
// @license CC BY-NC-ND 4.0; http://creativecommons.org/licenses/by-nc-nd/4.0/
// @compatible Chrome tested with Tampermonkey
// @contributionURL https://www.paypal.com/donate?hosted_button_id=9JEGCDFJJHWU8
// @run-at document-end
// @match *://*/*
// @grant GM_registerMenuCommand
// @grant GM_notification
// @grant GM_xmlhttpRequest
// ==/UserScript==

/* jshint esversion: 9 */

function checkBacklinks() {
    var website = prompt("Please enter your Website:", document.URL);
    if (website == null) {
        alert("User cancelled the prompt.");
    }
    else if (website == "") {
        alert("Input field must not be empty.");
    }
    else if (website.match(/^(http.?:\/\/|)\w*\.*[A-Z]*(\.\w*($|\/.*|\?)|\?.*|\d*|$)($|\:\d*($|\/|\?))/gim)) {
        var websitereplace = website.replace(/.*(\/\/|www.)/gim, '').split(/\/$/gim)[0];
        GM_xmlhttpRequest({
            method: "GET",
            url: 'https://www.google.com/search?q="' + websitereplace + '" -site:' + websitereplace,
            onload: function (response) {
                var popularity = response.responseText.split('<div id="result-stats">').pop().split('<nobr>')[0];
                alert(popularity);
            }
        });
    }
    else {
        alert("Invalid URL");
    }
}

GM_registerMenuCommand("Check Backlinks", checkBacklinks);

QingJ © 2025

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