Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Pcpkomputer committed May 30, 2018
0 parents commit 307ff58
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Manifest.json
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>"]
}
131 changes: 131 additions & 0 deletions app.js
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;
};

});
9 changes: 9 additions & 0 deletions background.js
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);
4 changes: 4 additions & 0 deletions jquery-2.1.3.min.js

Large diffs are not rendered by default.

0 comments on commit 307ff58

Please sign in to comment.