TOI reader

Read Times of india e-paper on smaller screen easy

当前为 2014-08-20 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name TOI reader
  3. // @namespace http://www.cpdm.iisc.ernet.in/~biplab
  4. // @description Read Times of india e-paper on smaller screen easy
  5. // @include http://epaperbeta.timesofindia.com/index.aspx?*
  6. // @require http://code.jquery.com/jquery-latest.min.js
  7. // @version 1
  8. // @grant none
  9. // ==/UserScript==
  10. // Load jQuery script explicitly. Required for google chrome
  11. function addJQuery(callback) {
  12. var script = document.createElement("script");
  13. script.setAttribute("src", "//code.jquery.com/jquery-latest.min.js");
  14. script.addEventListener('load', function() {
  15. var script = document.createElement("script");
  16. script.textContent = "(" + callback.toString() + ")();";
  17. document.body.appendChild(script);
  18. }, false);
  19. document.body.appendChild(script);
  20. }
  21.  
  22. addJQuery(function () {
  23. jQuery(".header, .logo").each(function() {
  24. $(this).css("display", "none");
  25. });
  26. });
  27.