-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 307ff58
Showing
4 changed files
with
163 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"manifest_version": 2, | ||
|
||
"name": "LALERext", | ||
"version": "1.0", | ||
"description": "Serikat Anti Laler", | ||
|
||
"background": { | ||
"scripts": ["background.js"], | ||
"persistent": false | ||
}, | ||
"content_scripts": [ | ||
{ | ||
"matches": ["<all_urls>"], | ||
"js": ["jquery-2.1.3.min.js", "app.js"] | ||
} | ||
], | ||
"permissions": ["<all_urls>"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
//$('iframe').remove(); | ||
|
||
if(location.href.match('awsubs.co')){ | ||
///iklan//// | ||
$('#if_abd_media_1526894765').empty(); | ||
$('#adbBgOverlay').empty(); | ||
$('.iklansamping').empty(); | ||
$('iframe').empty(); | ||
$('.iklanhead').empty(); | ||
$('.iklanpusat').empty(); | ||
$('.sidebar_right').html(''); | ||
}; | ||
/////////// | ||
|
||
if(location.href.match('oploverz.in')){ | ||
///iklan//// | ||
$('#if_abd_media_1526894765').empty(); | ||
$('#adbBgOverlay').empty(); | ||
$('script').remove(); | ||
$('iframe').remove(); | ||
$('#sidebar').remove(); | ||
$('.left').remove(); | ||
$('#btm_banner').remove(); | ||
$('.headads').remove(); | ||
}; | ||
/////////// | ||
|
||
$(function(){ | ||
|
||
$('#bsamFB7sUI').remove(); | ||
$('s').remove(); | ||
$('b').remove(); | ||
|
||
function decode(x){ | ||
var val=x.replace('%3A',':'); | ||
var val=val.replace('%2F%2F','//'); | ||
var val=val.replace('%2F','/'); | ||
return val; | ||
}; | ||
|
||
let urls=location.href; | ||
if(urls.match('94lauin')){ | ||
var a=$('script'); | ||
for(i=0;i<a.length;i++){ | ||
if(a[i]['outerHTML'].match('#pleasewait')){ | ||
var index=i; | ||
} | ||
else{ | ||
console.log(i); | ||
} | ||
}; | ||
let script=$("script")[index]['outerHTML']; | ||
let link=/window.location=\"([^\"]+)\";/.exec(script)[1]; | ||
$("head").empty(); | ||
$("body").empty(); | ||
location.href=link; | ||
}; | ||
|
||
if(urls.match('bolaoke')){ | ||
var a=$('script'); | ||
for(i=0;i<a.length;i++){ | ||
if(a[i]['outerHTML'].match('window.open')){ | ||
var index=i; | ||
} | ||
else{ | ||
console.log(i); | ||
} | ||
}; | ||
let script=$('script')[index]['innerHTML']; | ||
let link=/var a='(.*)';window.open/.exec(script)[1]; | ||
$("head").empty(); | ||
$("body").empty(); | ||
location.href=link; | ||
}; | ||
|
||
if(urls.match('short.awsubs')){ | ||
let script=$('a')[4]['href']; | ||
$("head").empty(); | ||
$("body").empty(); | ||
location.href=script; | ||
}; | ||
|
||
if(urls.match('awsubsco.cf')){ | ||
for(x=0;x<$('script').length;x++){ | ||
var a=$('script')[x]['outerHTML']; | ||
if(a.match('p_name')){ | ||
var index=x; | ||
} | ||
else{ | ||
console.log(x); | ||
} | ||
} | ||
var a=$('script')[index]['outerHTML']; | ||
var b=/d_link = \'(.*)\';/.exec(a)[1]; | ||
var val=decode(b); | ||
$("head").empty(); | ||
$("body").empty(); | ||
location.href=val; | ||
}; | ||
|
||
if(urls.match('siotong')){ | ||
var a=$('script'); | ||
for(i=0;i<a.length;i++){ | ||
if(a[i]['outerHTML'].match('window.location')){ | ||
var index=i; | ||
} | ||
else{ | ||
console.log(i); | ||
} | ||
}; | ||
let script=a[index]['innerHTML']; | ||
let link=/window.location=\"([^\"]+)\";/.exec(script)[1]; | ||
location.href=link; | ||
}; | ||
|
||
if(urls.match('greget.space')){ | ||
var a=$('script'); | ||
for(i=0;i<a.length;i++){ | ||
if(a[i]['outerHTML'].match('window.location')){ | ||
var index=i; | ||
} | ||
else{ | ||
console.log(i); | ||
} | ||
}; | ||
let script=$('script')[index]['outerHTML']; | ||
let link=/window.location=\"([^\"]+)\";/.exec(script)[1]; | ||
location.href=link; | ||
}; | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
function loadChapter () { | ||
chrome.tabs.executeScript(null, { file: "jquery-2.1.3.min.js" }, function() { | ||
chrome.tabs.executeScript(null, { file: "app.js" }); | ||
}); | ||
} | ||
|
||
|
||
chrome.browserAction.onClicked.addListener(loadChapter); |
Large diffs are not rendered by default.
Oops, something went wrong.