Advertisement
Guest User

Rescope - Remove unnecessary elements

a guest
Oct 22nd, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.96 KB | None | 0 0
  1. // ==UserScript==
  2. // @name         Rescope - Remove unnecessary elements
  3. // @namespace    https://rescope.xyz
  4. // @version      1.0
  5. // @description  Removing unnecessary elements from rescope.xyz
  6. // @author       God
  7. // @match        https://rescope.xyz/*
  8. // @grant        none
  9. // @require  http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  10. // ==/UserScript==
  11.          
  12. $(document).ready(function() {
  13.     jQuery.noop();
  14. });
  15.  
  16. $('.row a').each(function () {
  17.     $link = $(this).attr("href");
  18.     $splitted = $link.split("?username=")[1];
  19.     $(this).attr("target", "_blank");
  20.     $(this).attr("href", "https://periscope.tv/" + $splitted);
  21.     $(this).text($splitted);
  22. });
  23.  
  24. $("body").find(".affix").remove();
  25. $("body").find(".alert").remove();
  26. $("body").find(".label-success").remove();
  27. $("body").find(".btn-primary").remove();
  28. $("body").find(".col-sm-6").remove();
  29. $("body").find(".col-sm-12 p").remove();
  30.  
  31. $("body").find("h1")[0].remove();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement