songsterr print enable

ReEnable Print!

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         songsterr print enable
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  ReEnable Print!
// @author       Peppie
// @match        *://www.songsterr.com/a/wsa/*
// @match        *://www.songsterr.com/a/wa/enabledFeatures*
// @grant        none
// 
// Ways to get Plus for free
//
// 1. Promo 2 weeks of Plus free via referlink
// -> http://www.songsterr.com/a/wa/plus
// -> on the right click the green 'GET PLUS free' button
// -> open the referlink in some other browser, private tab or browser profile
// Email->[Songsterr] You've got 2 weeks of Plus free / Congrats! Your friend has just clicked on your referral link and you both got 2 weeks of Plus free.
//
// 2. Via Proxy (Charles Proxy or Burp)
// -> Remap all //www.songsterr.com/a/wa/enabledFeatures* to
// //www.songsterr.com/a/wa/enabledFeatures?songId=269
// since that is the demosong(http://www.songsterr.com/a/wsa/nirvana-smells-like-teen-spirit-tab-s269t0) with all allowed
//
// To compare and better understand check for ex //www.songsterr.com/a/wa/enabledFeatures?songId=47630
// it is //www.songsterr.com/a/wsa/monty-python-always-look-on-the-bright-side-of-life-tab-s47630t1
// and it's limited
//<enabledFeatures>
//<playback/>
//<mute/>
//<countIn/>
//</enabledFeatures>

// ==/UserScript==
    
(function() {
    'use strict';
debugger
try {
    // Enable printing
    var NO  = 'deny-print'  ;
    var YES = 'allow-print' ;
    var NoPrint = document.getElementsByClassName( NO )[0] ;
    NoPrint.className = NoPrint.className
        .replace( NO , YES );
} catch (e) {}    
try {
   
    // Enable print button
    var PrintButton = document.getElementsByClassName( 'print-button' )[0] ;
    PrintButton.className = PrintButton.className
        .replace( 'forbidden', 'enabled' );
    
    PrintButton.removeAttribute(  'rel'                       );
    PrintButton   .setAttribute( 'href', 'javascript:print()' );
} catch (e) {}    
try {
    
    // No Ads
    var Ads = document.getElementsByClassName( 'Ads' )
    
    var forEach = Array.prototype.forEach;
    forEach.call(Ads, function(item) {
        debugger
        item.remove();
    });
} catch (e) {}    
try {
    
    // No © 2016, Songsterr.com
    document.getElementById( 'print-ft' ).remove();
} catch (e) {}    
    
    
})();