remove primewire fake_hosts

remove primewire fake hosts

  1. // ==UserScript==
  2. // @description remove primewire fake hosts
  3. // @name remove primewire fake_hosts
  4. // @include *primewire.ag*
  5. // @require https://code.jquery.com/jquery-2.1.3.min.js
  6. // @version 1.1
  7. // @namespace remove primewire fake hosts
  8. // ==/UserScript==
  9.  
  10. function addJQuery(callback) {
  11. var script = document.createElement("script");
  12. script.setAttribute("src", "https://code.jquery.com/jquery-2.1.3.min.js");
  13. script.addEventListener('load', function() {
  14. var script = document.createElement("script");
  15. script.textContent = "(" + callback.toString() + ")();";
  16. document.body.appendChild(script);
  17. }, false);
  18. document.body.appendChild(script);
  19. }
  20.  
  21. function main() {
  22. $('table.movie_version:contains("Sponsor")').hide()
  23. $('table.movie_version:contains("Promo")').hide()
  24. }
  25.  
  26. // load jQuery and execute the main function
  27. addJQuery(main);