Advertisement
Guest User

Untitled

a guest
Jul 7th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Reddit De-vigilink
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Fuck Reddit
  6. // @author AmProbablyPooping
  7. // @match https://www.reddit.com/*
  8. // @require http://code.jquery.com/jquery-latest.js
  9. // @require https://gist.github.com/raw/2625891/waitForKeyElements.js
  10. // @grant none
  11. // ==/UserScript==
  12. /* jshint -W097 */
  13. 'use strict';
  14. window.console.log("Running Reddit Delinker");
  15. this.$ = this.jQuery = jQuery.noConflict(true);
  16. function cleanIt(){
  17. $("a").each(function() {
  18. var attribute = $(this).attr("data-outbound-url");
  19. if(attribute){
  20. $(this).attr("data-outbound-url",$(this).attr('href'));
  21. }
  22. })
  23. }
  24. setTimeout(function () {
  25. cleanIt();
  26. }, 1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement