Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Poprawiono współpracę ze stroną wpolityce.pl
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Szymanski committed Jan 21, 2015
1 parent 3ca7fbf commit 0a0637b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.crx
*.nex
*.pem
*.pem
*.zip
5 changes: 4 additions & 1 deletion Blink/dlabeki.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
(function() {
var image_element = document.createElement('img');
document.body.appendChild(image_element);
image_element.id = "dla-beki-ribbon";
image_element.src = chrome.extension.getURL("ribbon1_red_top_right.png");
image_element.style.position = "fixed";
image_element.style.top = "0px";
image_element.style.right = "0px";
image_element.style.border = "0px";
image_element.style.zIndex = "10000";
// delete itself upon clicking
image_element.onclick = function() {document.body.removeChild(document.getElementById("dla-beki-ribbon"))};
document.body.appendChild(image_element);
}) ();
2 changes: 1 addition & 1 deletion Blink/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "Czytam Prawicowe Strony Dla Beki",
"description": "Pokazuje pasek 'Czytam Dla Beki' na mocno prawicowych serwisach.",
"version": "1.1",
"version": "1.2",

"content_scripts": [
{
Expand Down
3 changes: 3 additions & 0 deletions XPI/data/dlabeki.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
(function() {
var image_element = document.createElement('img');
image_element.id = "dla-beki-ribbon";
image_element.src = self.options.imageURL;
image_element.style.position = "fixed";
image_element.style.top = "0px";
image_element.style.right = "0px";
image_element.style.border = "0px";
image_element.style.zIndex = "10000";
// delete itself upon clicking
image_element.onclick = function() {document.body.removeChild(document.getElementById("dla-beki-ribbon"))};
document.body.appendChild(image_element);
}) ();
6 changes: 3 additions & 3 deletions XPI/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Pokazuje pasek 'Czytam Dla Beki' na mocno prawicowych serwisach.",
"author": "",
"license": "MIT",
"version": "1.0",
"icon": "icon48.png",
"icon64": "icon64.png"
"version": "1.2",
"icon": "Icon48.png",
"icon64": "Icon64.png"
}

0 comments on commit 0a0637b

Please sign in to comment.