Skip to content

Commit

Permalink
Support 4pda
Browse files Browse the repository at this point in the history
- Support new 4pda url
- Add workaround data-notrack (nokeya#10)
  • Loading branch information
Loskir authored Oct 12, 2021
1 parent 3190792 commit 9d7eb38
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion direct-links-out.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @author nokeya
// @update https://github.com/nokeya/direct-links-out/raw/master/direct-links-out.user.js
// @icon https://raw.githubusercontent.com/nokeya/direct-links-out/master/icon.png
// @version 2.19
// @version 2.20
// @grant none
//google
// @include *://google.*
Expand Down Expand Up @@ -59,6 +59,8 @@
//4pda
// @match *://4pda.ru/*
// @match *://*.4pda.ru/*
// @match *://4pda.to/*
// @match *://*.4pda.to/*
//kickass
// @match *://kat.cr/*
// @match *://kickassto.co/*
Expand Down Expand Up @@ -238,6 +240,11 @@
link.removeAttribute('onclick');
link.removeAttribute('onmouseover');
}

function rw4pda(link) {
link.setAttribute('data-notrack', 'true')
rwSimple(link)
}

// determine anchors, functions and listeners
(function ()
Expand Down Expand Up @@ -297,6 +304,7 @@
else if (/4pda/i.test(loc)){
anchor = 'go/?u=';
after = '&e=';
rwLink = rw4pda;
}
else if (/mozilla/i.test(loc))
rwLink = rwAMO;
Expand Down

0 comments on commit 9d7eb38

Please sign in to comment.