mleugh

Demonoid Big Download Link

Apr 9th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name           Demonoid Big Download Link
  3. // @version        1.2
  4. // @description    Makes the download link BIG and easy to click
  5. // @license        Public Domain
  6. // @include        http://www.demonoid.com/*
  7. // @include        http://demonoid.com/*
  8. // @include        https://www.demonoid.com/*
  9. // @include        https://demonoid.com/*
  10. // @include        http://www.demonoid.me/*
  11. // @include        http://demonoid.me/*
  12. // @include        https://www.demonoid.me/*
  13. // @include        https://demonoid.me/*
  14. // ==/UserScript==
  15.  
  16. //
  17. // This code is in Public Domain. Any part of this script can be used for any purpose.
  18. //
  19. // Credits:
  20. // Orange button css taken from http://www.webdesignerwall.com/tutorials/css3-gradient-buttons/
  21. //
  22.  
  23. (function(){
  24.     var link = document.evaluate("//a[contains(@href,'/files/download/')][contains(.,'Download the torrent')]",
  25.         document, null, 9, null).singleNodeValue;
  26.     if (link) {
  27.         var style = document.createElement('style');
  28.         style.textContent = "\
  29.            a.link875 > img {\
  30.                width: 0;\
  31.            }\
  32.            a.link875 {\
  33.                display: inline-block;\
  34.                font-size: 20px;\
  35.                font-weight: bold;\
  36.                padding: 20px;\
  37.                margin: 5px 15px;\
  38.                text-decoration: none;\
  39.                -moz-border-radius: 10px;\
  40.                -webkit-border-radius: 10px;\
  41.                border-radius: 10px;\
  42.                -moz-box-shadow: 5px 5px 5px #888;\
  43.                -webkit-box-shadow: 5px 5px 5px #888;\
  44.                box-shadow: 5px 5px 5px #888;\
  45.                text-shadow: 3px 3px 3px rgba(0,0,0,0.4);\
  46.                color: #fef4e9;\
  47.                border: solid 1px #da7c0c;\
  48.                background: #f78d1d;\
  49.                background: -webkit-gradient(linear, left top, left bottom, from(#faa51a), to(#f47a20));\
  50.                background: -moz-linear-gradient(top, #faa51a, #f47a20);\
  51.                filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#faa51a', endColorstr='#f47a20');\
  52.                \
  53.            }\
  54.            a.link875:hover {\
  55.                background: #f47c20;\
  56.                background: -webkit-gradient(linear, left top, left bottom, from(#f88e11), to(#f06015));\
  57.                background: -moz-linear-gradient(top, #f88e11, #f06015);\
  58.                filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f88e11', endColorstr='#f06015');\
  59.                \
  60.            }\
  61.            a.link875:active {\
  62.                color: #fcd3a5;\
  63.                background: -webkit-gradient(linear, left top, left bottom, from(#f47a20), to(#faa51a));\
  64.                background: -moz-linear-gradient(top, #f47a20, #faa51a);\
  65.                filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f47a20', endColorstr='#faa51a');\
  66.                \
  67.            }\
  68.        ";
  69.         document.evaluate("//head", document, null, 9, null).singleNodeValue.appendChild(style);
  70.         link.className = 'link875';
  71.     }
  72. }());
Add Comment
Please, Sign In to add comment