Softpedia Minimalist

Softpedia Minimalist - http://pushka.com/coding-donation

当前为 2015-05-15 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Softpedia Minimalist
  3. // @namespace english
  4. // @description Softpedia Minimalist - http://pushka.com/coding-donation
  5. // @include http*://*softpedia.com*
  6. // @version 1.11
  7. // @run-at document-start
  8. // @grant GM_addStyle
  9. // ==/UserScript==
  10.  
  11. // Main - CSS hides two classes - video add box, and call to action box under it. - also social media
  12.  
  13.  
  14. var text2 = "";
  15. if((window.location.href == "http://www.softpedia.com/")||(window.location.href == "http://softpedia.com/")||(window.location.href == "http://www.softpedia.com")||(window.location.href == "http://softpedia.com")||(window.location.href == "https://softpedia.com")||(window.location.href == "https://www.softpedia.com")){
  16. text2 = ".container_48{display:none;}";
  17. /*
  18. var node = document.createElement("p"); // Create a <li> node
  19. var textnode = document.createTextNode(" "); // Create a text node
  20. node.appendChild(textnode); // Append the text to <li>
  21. document.body.appendChild(node); // Append <li> to <ul> with id="myList"
  22. */
  23. document.body.innerHTML += '<form id="hps_form" action="/dyn-search.php" method="GET" class="hp-search grid_48" _lpchecked="1"> <i class="hp-search-icon fl" onclick="$(\'#hps_input\').focus();">Search</i> <input id="hps_input" type="text" value="our software encyclopedia!" name="search_term" onkeydown="if(this.value==\'our software encyclopedia!\') this.value=\'\';" onclick="if(this.value==\'our software encyclopedia!\') this.value=\'\';" onblur="if(this.value==\'\') this.value=\'our software encyclopedia!\';" onfocus="if(this.value==\'our software encyclopedia!\') this.value=\'\';"> <ul id="hps_search" class="hp-search-select overhide"> <li id="hps_selection">Windows Apps</li> <li class="sel" data-type="www">Windows Apps</li> <li class="sel" data-type="drivers">Windows Drivers</li> <li class="sel" data-type="mac">Mac Apps</li> <li class="sel" data-type="linux">Linux Apps</li> <li class="sel" data-type="mobile" data-other="mobileapps=0">Mobile Apps</li> <li class="sel" data-type="webscripts">Webscripts</li> <li class="sel" data-type="mobile">Phones &amp; Tablets</li> <li class="sel" data-type="news">News</li> </ul> </form>';
  24.  
  25. }
  26.  
  27.  
  28. var style = document.createElement('style');
  29. style.type = 'text/css';
  30. style.innerHTML = text2 + ' #flashsale,.copyright_cnt,.social{display: none !important;}/*\n*//*\n*//*We work hard every day to bring you the latest software & games, tech news and reviews.If our site is useful to you, please consider whitelisting us in your ad blocker.*//*\n*/.grid_17, .mgtop_10, .mgbot_40 {display: none !important;}/*\n*//*\n*//*Did you know that.... ...has been downloaded 70,180 times so far?*//*\n*/.grid_29, .prefix_2, .mgtop_30 {display: none !important;} ' ;
  31.  
  32. document.getElementsByTagName('head')[0].appendChild(style);
  33.