Last.fm Interference Inhibitor

Crudely removes anti-adblock modal from Last.fm's radio waves.

目前為 2016-10-26 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Last.fm Interference Inhibitor
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Crudely removes anti-adblock modal from Last.fm's radio waves.
// @author       thebspatrol
// @match        http*://last.fm/*
// @match        http*://*.last.fm/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

function genTag()
{
    var text = "";
    var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";

    for (var i=0; i < 5; i++ ){
        text += possible.charAt(Math.floor(Math.random() * possible.length));
    }
    return text;
}
    
    var _html = document.getElementsByTagName("html")[0];
    var b = document.body;
    var d = document.createElement(genTag());

    // transfer body and respective CSS to randomly tagged element
    d.innerHTML = document.body.innerHTML;
    d.style.cssText = document.defaultView.getComputedStyle(b, "").cssText;
    d.style.webkitTextFillColor = ""
    _html.replaceChild(d, b);
})();

QingJ © 2025

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