songsterr print enable

ReEnable Print!

  1. // ==UserScript==
  2. // @name songsterr print enable
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description ReEnable Print!
  6. // @author Peppie
  7. // @match *://www.songsterr.com/a/wsa/*
  8. // @match *://www.songsterr.com/a/wa/enabledFeatures*
  9. // @grant none
  10. //
  11. // Ways to get Plus for free
  12. //
  13. // 1. Promo 2 weeks of Plus free via referlink
  14. // -> http://www.songsterr.com/a/wa/plus
  15. // -> on the right click the green 'GET PLUS free' button
  16. // -> open the referlink in some other browser, private tab or browser profile
  17. // 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.
  18. //
  19. // 2. Via Proxy (Charles Proxy or Burp)
  20. // -> Remap all //www.songsterr.com/a/wa/enabledFeatures* to
  21. // //www.songsterr.com/a/wa/enabledFeatures?songId=269
  22. // since that is the demosong(http://www.songsterr.com/a/wsa/nirvana-smells-like-teen-spirit-tab-s269t0) with all allowed
  23. //
  24. // To compare and better understand check for ex //www.songsterr.com/a/wa/enabledFeatures?songId=47630
  25. // it is //www.songsterr.com/a/wsa/monty-python-always-look-on-the-bright-side-of-life-tab-s47630t1
  26. // and it's limited
  27. //<enabledFeatures>
  28. //<playback/>
  29. //<mute/>
  30. //<countIn/>
  31. //</enabledFeatures>
  32.  
  33. // ==/UserScript==
  34. (function() {
  35. 'use strict';
  36. debugger
  37. try {
  38. // Enable printing
  39. var NO = 'deny-print' ;
  40. var YES = 'allow-print' ;
  41. var NoPrint = document.getElementsByClassName( NO )[0] ;
  42. NoPrint.className = NoPrint.className
  43. .replace( NO , YES );
  44. } catch (e) {}
  45. try {
  46. // Enable print button
  47. var PrintButton = document.getElementsByClassName( 'print-button' )[0] ;
  48. PrintButton.className = PrintButton.className
  49. .replace( 'forbidden', 'enabled' );
  50. PrintButton.removeAttribute( 'rel' );
  51. PrintButton .setAttribute( 'href', 'javascript:print()' );
  52. } catch (e) {}
  53. try {
  54. // No Ads
  55. var Ads = document.getElementsByClassName( 'Ads' )
  56. var forEach = Array.prototype.forEach;
  57. forEach.call(Ads, function(item) {
  58. debugger
  59. item.remove();
  60. });
  61. } catch (e) {}
  62. try {
  63. // No © 2016, Songsterr.com
  64. document.getElementById( 'print-ft' ).remove();
  65. } catch (e) {}
  66. })();