Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Reddit De-vigilink
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Fuck Reddit
- // @author AmProbablyPooping
- // @match https://www.reddit.com/*
- // @require http://code.jquery.com/jquery-latest.js
- // @require https://gist.github.com/raw/2625891/waitForKeyElements.js
- // @grant none
- // ==/UserScript==
- /* jshint -W097 */
- 'use strict';
- window.console.log("Running Reddit Delinker");
- this.$ = this.jQuery = jQuery.noConflict(true);
- function cleanIt(){
- $("a").each(function() {
- var attribute = $(this).attr("data-outbound-url");
- if(attribute){
- $(this).attr("data-outbound-url",$(this).attr('href'));
- }
- })
- }
- setTimeout(function () {
- cleanIt();
- }, 1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement